AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
CleanupStepMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/CleanupFailure.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API CleanupStepMetadata() = default;
33 AWS_SAGEMAKER_API CleanupStepMetadata(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Aws::String>& GetCleanedSteps() const { return m_cleanedSteps; }
43 inline bool CleanedStepsHasBeenSet() const { return m_cleanedStepsHasBeenSet; }
44 template <typename CleanedStepsT = Aws::Vector<Aws::String>>
45 void SetCleanedSteps(CleanedStepsT&& value) {
46 m_cleanedStepsHasBeenSet = true;
47 m_cleanedSteps = std::forward<CleanedStepsT>(value);
48 }
49 template <typename CleanedStepsT = Aws::Vector<Aws::String>>
50 CleanupStepMetadata& WithCleanedSteps(CleanedStepsT&& value) {
51 SetCleanedSteps(std::forward<CleanedStepsT>(value));
52 return *this;
53 }
54 template <typename CleanedStepsT = Aws::String>
55 CleanupStepMetadata& AddCleanedSteps(CleanedStepsT&& value) {
56 m_cleanedStepsHasBeenSet = true;
57 m_cleanedSteps.emplace_back(std::forward<CleanedStepsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<CleanupFailure>& GetFailedSteps() const { return m_failedSteps; }
68 inline bool FailedStepsHasBeenSet() const { return m_failedStepsHasBeenSet; }
69 template <typename FailedStepsT = Aws::Vector<CleanupFailure>>
70 void SetFailedSteps(FailedStepsT&& value) {
71 m_failedStepsHasBeenSet = true;
72 m_failedSteps = std::forward<FailedStepsT>(value);
73 }
74 template <typename FailedStepsT = Aws::Vector<CleanupFailure>>
75 CleanupStepMetadata& WithFailedSteps(FailedStepsT&& value) {
76 SetFailedSteps(std::forward<FailedStepsT>(value));
77 return *this;
78 }
79 template <typename FailedStepsT = CleanupFailure>
80 CleanupStepMetadata& AddFailedSteps(FailedStepsT&& value) {
81 m_failedStepsHasBeenSet = true;
82 m_failedSteps.emplace_back(std::forward<FailedStepsT>(value));
83 return *this;
84 }
86
88
93 inline const Aws::Vector<Aws::String>& GetSkippedSteps() const { return m_skippedSteps; }
94 inline bool SkippedStepsHasBeenSet() const { return m_skippedStepsHasBeenSet; }
95 template <typename SkippedStepsT = Aws::Vector<Aws::String>>
96 void SetSkippedSteps(SkippedStepsT&& value) {
97 m_skippedStepsHasBeenSet = true;
98 m_skippedSteps = std::forward<SkippedStepsT>(value);
99 }
100 template <typename SkippedStepsT = Aws::Vector<Aws::String>>
101 CleanupStepMetadata& WithSkippedSteps(SkippedStepsT&& value) {
102 SetSkippedSteps(std::forward<SkippedStepsT>(value));
103 return *this;
104 }
105 template <typename SkippedStepsT = Aws::String>
106 CleanupStepMetadata& AddSkippedSteps(SkippedStepsT&& value) {
107 m_skippedStepsHasBeenSet = true;
108 m_skippedSteps.emplace_back(std::forward<SkippedStepsT>(value));
109 return *this;
110 }
112 private:
113 Aws::Vector<Aws::String> m_cleanedSteps;
114
115 Aws::Vector<CleanupFailure> m_failedSteps;
116
117 Aws::Vector<Aws::String> m_skippedSteps;
118 bool m_cleanedStepsHasBeenSet = false;
119 bool m_failedStepsHasBeenSet = false;
120 bool m_skippedStepsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace SageMaker
125} // namespace Aws
CleanupStepMetadata & AddCleanedSteps(CleanedStepsT &&value)
const Aws::Vector< CleanupFailure > & GetFailedSteps() const
CleanupStepMetadata & AddFailedSteps(FailedStepsT &&value)
CleanupStepMetadata & WithFailedSteps(FailedStepsT &&value)
AWS_SAGEMAKER_API CleanupStepMetadata()=default
AWS_SAGEMAKER_API CleanupStepMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API CleanupStepMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetCleanedSteps() const
CleanupStepMetadata & WithCleanedSteps(CleanedStepsT &&value)
const Aws::Vector< Aws::String > & GetSkippedSteps() const
CleanupStepMetadata & AddSkippedSteps(SkippedStepsT &&value)
CleanupStepMetadata & WithSkippedSteps(SkippedStepsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue