AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
ComponentFailureContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace imagebuilder {
20namespace Model {
21
30 public:
31 AWS_IMAGEBUILDER_API ComponentFailureContext() = default;
32 AWS_IMAGEBUILDER_API ComponentFailureContext(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetComponentArn() const { return m_componentArn; }
42 inline bool ComponentArnHasBeenSet() const { return m_componentArnHasBeenSet; }
43 template <typename ComponentArnT = Aws::String>
44 void SetComponentArn(ComponentArnT&& value) {
45 m_componentArnHasBeenSet = true;
46 m_componentArn = std::forward<ComponentArnT>(value);
47 }
48 template <typename ComponentArnT = Aws::String>
49 ComponentFailureContext& WithComponentArn(ComponentArnT&& value) {
50 SetComponentArn(std::forward<ComponentArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetPhaseName() const { return m_phaseName; }
61 inline bool PhaseNameHasBeenSet() const { return m_phaseNameHasBeenSet; }
62 template <typename PhaseNameT = Aws::String>
63 void SetPhaseName(PhaseNameT&& value) {
64 m_phaseNameHasBeenSet = true;
65 m_phaseName = std::forward<PhaseNameT>(value);
66 }
67 template <typename PhaseNameT = Aws::String>
69 SetPhaseName(std::forward<PhaseNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetStepName() const { return m_stepName; }
79 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
80 template <typename StepNameT = Aws::String>
81 void SetStepName(StepNameT&& value) {
82 m_stepNameHasBeenSet = true;
83 m_stepName = std::forward<StepNameT>(value);
84 }
85 template <typename StepNameT = Aws::String>
87 SetStepName(std::forward<StepNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetAction() const { return m_action; }
98 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
99 template <typename ActionT = Aws::String>
100 void SetAction(ActionT&& value) {
101 m_actionHasBeenSet = true;
102 m_action = std::forward<ActionT>(value);
103 }
104 template <typename ActionT = Aws::String>
106 SetAction(std::forward<ActionT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
118 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
119 template <typename ErrorMessageT = Aws::String>
120 void SetErrorMessage(ErrorMessageT&& value) {
121 m_errorMessageHasBeenSet = true;
122 m_errorMessage = std::forward<ErrorMessageT>(value);
123 }
124 template <typename ErrorMessageT = Aws::String>
126 SetErrorMessage(std::forward<ErrorMessageT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_componentArn;
132
133 Aws::String m_phaseName;
134
135 Aws::String m_stepName;
136
137 Aws::String m_action;
138
139 Aws::String m_errorMessage;
140 bool m_componentArnHasBeenSet = false;
141 bool m_phaseNameHasBeenSet = false;
142 bool m_stepNameHasBeenSet = false;
143 bool m_actionHasBeenSet = false;
144 bool m_errorMessageHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace imagebuilder
149} // namespace Aws
ComponentFailureContext & WithComponentArn(ComponentArnT &&value)
AWS_IMAGEBUILDER_API ComponentFailureContext(Aws::Utils::Json::JsonView jsonValue)
ComponentFailureContext & WithErrorMessage(ErrorMessageT &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API ComponentFailureContext & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentFailureContext & WithAction(ActionT &&value)
ComponentFailureContext & WithPhaseName(PhaseNameT &&value)
AWS_IMAGEBUILDER_API ComponentFailureContext()=default
ComponentFailureContext & WithStepName(StepNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue