AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartResourceStateUpdateRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/imagebuilder/ImagebuilderRequest.h>
11#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
12#include <aws/imagebuilder/model/ResourceState.h>
13#include <aws/imagebuilder/model/ResourceStateUpdateExclusionRules.h>
14#include <aws/imagebuilder/model/ResourceStateUpdateIncludeResources.h>
15
16#include <utility>
17
18namespace Aws {
19namespace imagebuilder {
20namespace Model {
21
25 public:
26 AWS_IMAGEBUILDER_API StartResourceStateUpdateRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartResourceStateUpdate"; }
33
34 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
42 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
43 template <typename ResourceArnT = Aws::String>
44 void SetResourceArn(ResourceArnT&& value) {
45 m_resourceArnHasBeenSet = true;
46 m_resourceArn = std::forward<ResourceArnT>(value);
47 }
48 template <typename ResourceArnT = Aws::String>
50 SetResourceArn(std::forward<ResourceArnT>(value));
51 return *this;
52 }
54
56
59 inline const ResourceState& GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 template <typename StateT = ResourceState>
62 void SetState(StateT&& value) {
63 m_stateHasBeenSet = true;
64 m_state = std::forward<StateT>(value);
65 }
66 template <typename StateT = ResourceState>
68 SetState(std::forward<StateT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
79 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
80 template <typename ExecutionRoleT = Aws::String>
81 void SetExecutionRole(ExecutionRoleT&& value) {
82 m_executionRoleHasBeenSet = true;
83 m_executionRole = std::forward<ExecutionRoleT>(value);
84 }
85 template <typename ExecutionRoleT = Aws::String>
87 SetExecutionRole(std::forward<ExecutionRoleT>(value));
88 return *this;
89 }
91
93
96 inline const ResourceStateUpdateIncludeResources& GetIncludeResources() const { return m_includeResources; }
97 inline bool IncludeResourcesHasBeenSet() const { return m_includeResourcesHasBeenSet; }
98 template <typename IncludeResourcesT = ResourceStateUpdateIncludeResources>
99 void SetIncludeResources(IncludeResourcesT&& value) {
100 m_includeResourcesHasBeenSet = true;
101 m_includeResources = std::forward<IncludeResourcesT>(value);
102 }
103 template <typename IncludeResourcesT = ResourceStateUpdateIncludeResources>
105 SetIncludeResources(std::forward<IncludeResourcesT>(value));
106 return *this;
107 }
109
111
115 inline const ResourceStateUpdateExclusionRules& GetExclusionRules() const { return m_exclusionRules; }
116 inline bool ExclusionRulesHasBeenSet() const { return m_exclusionRulesHasBeenSet; }
117 template <typename ExclusionRulesT = ResourceStateUpdateExclusionRules>
118 void SetExclusionRules(ExclusionRulesT&& value) {
119 m_exclusionRulesHasBeenSet = true;
120 m_exclusionRules = std::forward<ExclusionRulesT>(value);
121 }
122 template <typename ExclusionRulesT = ResourceStateUpdateExclusionRules>
124 SetExclusionRules(std::forward<ExclusionRulesT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Utils::DateTime& GetUpdateAt() const { return m_updateAt; }
135 inline bool UpdateAtHasBeenSet() const { return m_updateAtHasBeenSet; }
136 template <typename UpdateAtT = Aws::Utils::DateTime>
137 void SetUpdateAt(UpdateAtT&& value) {
138 m_updateAtHasBeenSet = true;
139 m_updateAt = std::forward<UpdateAtT>(value);
140 }
141 template <typename UpdateAtT = Aws::Utils::DateTime>
143 SetUpdateAt(std::forward<UpdateAtT>(value));
144 return *this;
145 }
147
149
155 inline const Aws::String& GetClientToken() const { return m_clientToken; }
156 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
157 template <typename ClientTokenT = Aws::String>
158 void SetClientToken(ClientTokenT&& value) {
159 m_clientTokenHasBeenSet = true;
160 m_clientToken = std::forward<ClientTokenT>(value);
161 }
162 template <typename ClientTokenT = Aws::String>
164 SetClientToken(std::forward<ClientTokenT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_resourceArn;
170
171 ResourceState m_state;
172
173 Aws::String m_executionRole;
174
175 ResourceStateUpdateIncludeResources m_includeResources;
176
177 ResourceStateUpdateExclusionRules m_exclusionRules;
178
179 Aws::Utils::DateTime m_updateAt{};
180
182 bool m_resourceArnHasBeenSet = false;
183 bool m_stateHasBeenSet = false;
184 bool m_executionRoleHasBeenSet = false;
185 bool m_includeResourcesHasBeenSet = false;
186 bool m_exclusionRulesHasBeenSet = false;
187 bool m_updateAtHasBeenSet = false;
188 bool m_clientTokenHasBeenSet = true;
189};
190
191} // namespace Model
192} // namespace imagebuilder
193} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
StartResourceStateUpdateRequest & WithExclusionRules(ExclusionRulesT &&value)
StartResourceStateUpdateRequest & WithClientToken(ClientTokenT &&value)
StartResourceStateUpdateRequest & WithResourceArn(ResourceArnT &&value)
const ResourceStateUpdateIncludeResources & GetIncludeResources() const
AWS_IMAGEBUILDER_API StartResourceStateUpdateRequest()=default
StartResourceStateUpdateRequest & WithExecutionRole(ExecutionRoleT &&value)
StartResourceStateUpdateRequest & WithUpdateAt(UpdateAtT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
StartResourceStateUpdateRequest & WithState(StateT &&value)
const ResourceStateUpdateExclusionRules & GetExclusionRules() const
StartResourceStateUpdateRequest & WithIncludeResources(IncludeResourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String