AWS SDK for C++

AWS SDK for C++ Version 1.11.901

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
44 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
45 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
46 template <typename ResourceArnT = Aws::String>
47 void SetResourceArn(ResourceArnT&& value) {
48 m_resourceArnHasBeenSet = true;
49 m_resourceArn = std::forward<ResourceArnT>(value);
50 }
51 template <typename ResourceArnT = Aws::String>
53 SetResourceArn(std::forward<ResourceArnT>(value));
54 return *this;
55 }
57
59
65 inline const ResourceState& GetState() const { return m_state; }
66 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
67 template <typename StateT = ResourceState>
68 void SetState(StateT&& value) {
69 m_stateHasBeenSet = true;
70 m_state = std::forward<StateT>(value);
71 }
72 template <typename StateT = ResourceState>
74 SetState(std::forward<StateT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
86 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
87 template <typename ExecutionRoleT = Aws::String>
88 void SetExecutionRole(ExecutionRoleT&& value) {
89 m_executionRoleHasBeenSet = true;
90 m_executionRole = std::forward<ExecutionRoleT>(value);
91 }
92 template <typename ExecutionRoleT = Aws::String>
94 SetExecutionRole(std::forward<ExecutionRoleT>(value));
95 return *this;
96 }
98
100
107 inline const ResourceStateUpdateIncludeResources& GetIncludeResources() const { return m_includeResources; }
108 inline bool IncludeResourcesHasBeenSet() const { return m_includeResourcesHasBeenSet; }
109 template <typename IncludeResourcesT = ResourceStateUpdateIncludeResources>
110 void SetIncludeResources(IncludeResourcesT&& value) {
111 m_includeResourcesHasBeenSet = true;
112 m_includeResources = std::forward<IncludeResourcesT>(value);
113 }
114 template <typename IncludeResourcesT = ResourceStateUpdateIncludeResources>
116 SetIncludeResources(std::forward<IncludeResourcesT>(value));
117 return *this;
118 }
120
122
130 inline const ResourceStateUpdateExclusionRules& GetExclusionRules() const { return m_exclusionRules; }
131 inline bool ExclusionRulesHasBeenSet() const { return m_exclusionRulesHasBeenSet; }
132 template <typename ExclusionRulesT = ResourceStateUpdateExclusionRules>
133 void SetExclusionRules(ExclusionRulesT&& value) {
134 m_exclusionRulesHasBeenSet = true;
135 m_exclusionRules = std::forward<ExclusionRulesT>(value);
136 }
137 template <typename ExclusionRulesT = ResourceStateUpdateExclusionRules>
139 SetExclusionRules(std::forward<ExclusionRulesT>(value));
140 return *this;
141 }
143
145
154 inline const Aws::Utils::DateTime& GetUpdateAt() const { return m_updateAt; }
155 inline bool UpdateAtHasBeenSet() const { return m_updateAtHasBeenSet; }
156 template <typename UpdateAtT = Aws::Utils::DateTime>
157 void SetUpdateAt(UpdateAtT&& value) {
158 m_updateAtHasBeenSet = true;
159 m_updateAt = std::forward<UpdateAtT>(value);
160 }
161 template <typename UpdateAtT = Aws::Utils::DateTime>
163 SetUpdateAt(std::forward<UpdateAtT>(value));
164 return *this;
165 }
167
169
177 inline const Aws::String& GetClientToken() const { return m_clientToken; }
178 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
179 template <typename ClientTokenT = Aws::String>
180 void SetClientToken(ClientTokenT&& value) {
181 m_clientTokenHasBeenSet = true;
182 m_clientToken = std::forward<ClientTokenT>(value);
183 }
184 template <typename ClientTokenT = Aws::String>
186 SetClientToken(std::forward<ClientTokenT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_resourceArn;
192
193 ResourceState m_state;
194
195 Aws::String m_executionRole;
196
197 ResourceStateUpdateIncludeResources m_includeResources;
198
199 ResourceStateUpdateExclusionRules m_exclusionRules;
200
201 Aws::Utils::DateTime m_updateAt{};
202
204 bool m_resourceArnHasBeenSet = false;
205 bool m_stateHasBeenSet = false;
206 bool m_executionRoleHasBeenSet = false;
207 bool m_includeResourcesHasBeenSet = false;
208 bool m_exclusionRulesHasBeenSet = false;
209 bool m_updateAtHasBeenSet = false;
210 bool m_clientTokenHasBeenSet = true;
211};
212
213} // namespace Model
214} // namespace imagebuilder
215} // 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