AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
ImageFailureContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/ComponentFailureContext.h>
10#include <aws/imagebuilder/model/DistributionFailureContext.h>
11#include <aws/imagebuilder/model/ImageStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder {
23namespace Model {
24
33 public:
34 AWS_IMAGEBUILDER_API ImageFailureContext() = default;
35 AWS_IMAGEBUILDER_API ImageFailureContext(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline ImageStatus GetImageStatus() const { return m_imageStatus; }
46 inline bool ImageStatusHasBeenSet() const { return m_imageStatusHasBeenSet; }
47 inline void SetImageStatus(ImageStatus value) {
48 m_imageStatusHasBeenSet = true;
49 m_imageStatus = value;
50 }
52 SetImageStatus(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetWorkflowExecutionId() const { return m_workflowExecutionId; }
63 inline bool WorkflowExecutionIdHasBeenSet() const { return m_workflowExecutionIdHasBeenSet; }
64 template <typename WorkflowExecutionIdT = Aws::String>
65 void SetWorkflowExecutionId(WorkflowExecutionIdT&& value) {
66 m_workflowExecutionIdHasBeenSet = true;
67 m_workflowExecutionId = std::forward<WorkflowExecutionIdT>(value);
68 }
69 template <typename WorkflowExecutionIdT = Aws::String>
70 ImageFailureContext& WithWorkflowExecutionId(WorkflowExecutionIdT&& value) {
71 SetWorkflowExecutionId(std::forward<WorkflowExecutionIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetWorkflowArn() const { return m_workflowArn; }
82 inline bool WorkflowArnHasBeenSet() const { return m_workflowArnHasBeenSet; }
83 template <typename WorkflowArnT = Aws::String>
84 void SetWorkflowArn(WorkflowArnT&& value) {
85 m_workflowArnHasBeenSet = true;
86 m_workflowArn = std::forward<WorkflowArnT>(value);
87 }
88 template <typename WorkflowArnT = Aws::String>
89 ImageFailureContext& WithWorkflowArn(WorkflowArnT&& value) {
90 SetWorkflowArn(std::forward<WorkflowArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetStepExecutionId() const { return m_stepExecutionId; }
100 inline bool StepExecutionIdHasBeenSet() const { return m_stepExecutionIdHasBeenSet; }
101 template <typename StepExecutionIdT = Aws::String>
102 void SetStepExecutionId(StepExecutionIdT&& value) {
103 m_stepExecutionIdHasBeenSet = true;
104 m_stepExecutionId = std::forward<StepExecutionIdT>(value);
105 }
106 template <typename StepExecutionIdT = Aws::String>
107 ImageFailureContext& WithStepExecutionId(StepExecutionIdT&& value) {
108 SetStepExecutionId(std::forward<StepExecutionIdT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetFailedStep() const { return m_failedStep; }
119 inline bool FailedStepHasBeenSet() const { return m_failedStepHasBeenSet; }
120 template <typename FailedStepT = Aws::String>
121 void SetFailedStep(FailedStepT&& value) {
122 m_failedStepHasBeenSet = true;
123 m_failedStep = std::forward<FailedStepT>(value);
124 }
125 template <typename FailedStepT = Aws::String>
126 ImageFailureContext& WithFailedStep(FailedStepT&& value) {
127 SetFailedStep(std::forward<FailedStepT>(value));
128 return *this;
129 }
131
133
137 inline const ComponentFailureContext& GetComponentFailure() const { return m_componentFailure; }
138 inline bool ComponentFailureHasBeenSet() const { return m_componentFailureHasBeenSet; }
139 template <typename ComponentFailureT = ComponentFailureContext>
140 void SetComponentFailure(ComponentFailureT&& value) {
141 m_componentFailureHasBeenSet = true;
142 m_componentFailure = std::forward<ComponentFailureT>(value);
143 }
144 template <typename ComponentFailureT = ComponentFailureContext>
145 ImageFailureContext& WithComponentFailure(ComponentFailureT&& value) {
146 SetComponentFailure(std::forward<ComponentFailureT>(value));
147 return *this;
148 }
150
152
156 inline const DistributionFailureContext& GetDistributionFailure() const { return m_distributionFailure; }
157 inline bool DistributionFailureHasBeenSet() const { return m_distributionFailureHasBeenSet; }
158 template <typename DistributionFailureT = DistributionFailureContext>
159 void SetDistributionFailure(DistributionFailureT&& value) {
160 m_distributionFailureHasBeenSet = true;
161 m_distributionFailure = std::forward<DistributionFailureT>(value);
162 }
163 template <typename DistributionFailureT = DistributionFailureContext>
164 ImageFailureContext& WithDistributionFailure(DistributionFailureT&& value) {
165 SetDistributionFailure(std::forward<DistributionFailureT>(value));
166 return *this;
167 }
169 private:
170 ImageStatus m_imageStatus{ImageStatus::NOT_SET};
171
172 Aws::String m_workflowExecutionId;
173
174 Aws::String m_workflowArn;
175
176 Aws::String m_stepExecutionId;
177
178 Aws::String m_failedStep;
179
180 ComponentFailureContext m_componentFailure;
181
182 DistributionFailureContext m_distributionFailure;
183 bool m_imageStatusHasBeenSet = false;
184 bool m_workflowExecutionIdHasBeenSet = false;
185 bool m_workflowArnHasBeenSet = false;
186 bool m_stepExecutionIdHasBeenSet = false;
187 bool m_failedStepHasBeenSet = false;
188 bool m_componentFailureHasBeenSet = false;
189 bool m_distributionFailureHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace imagebuilder
194} // namespace Aws
ImageFailureContext & WithFailedStep(FailedStepT &&value)
const ComponentFailureContext & GetComponentFailure() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDistributionFailure(DistributionFailureT &&value)
void SetComponentFailure(ComponentFailureT &&value)
AWS_IMAGEBUILDER_API ImageFailureContext & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageFailureContext & WithWorkflowArn(WorkflowArnT &&value)
ImageFailureContext & WithWorkflowExecutionId(WorkflowExecutionIdT &&value)
ImageFailureContext & WithComponentFailure(ComponentFailureT &&value)
void SetWorkflowExecutionId(WorkflowExecutionIdT &&value)
ImageFailureContext & WithDistributionFailure(DistributionFailureT &&value)
AWS_IMAGEBUILDER_API ImageFailureContext()=default
const DistributionFailureContext & GetDistributionFailure() const
AWS_IMAGEBUILDER_API ImageFailureContext(Aws::Utils::Json::JsonView jsonValue)
ImageFailureContext & WithImageStatus(ImageStatus value)
void SetStepExecutionId(StepExecutionIdT &&value)
ImageFailureContext & WithStepExecutionId(StepExecutionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue