AWS SDK for C++

AWS SDK for C++ Version 1.11.838

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
84 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
85 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
86 template <typename ExecutionRoleT = Aws::String>
87 void SetExecutionRole(ExecutionRoleT&& value) {
88 m_executionRoleHasBeenSet = true;
89 m_executionRole = std::forward<ExecutionRoleT>(value);
90 }
91 template <typename ExecutionRoleT = Aws::String>
93 SetExecutionRole(std::forward<ExecutionRoleT>(value));
94 return *this;
95 }
97
99
109 inline const ResourceStateUpdateIncludeResources& GetIncludeResources() const { return m_includeResources; }
110 inline bool IncludeResourcesHasBeenSet() const { return m_includeResourcesHasBeenSet; }
111 template <typename IncludeResourcesT = ResourceStateUpdateIncludeResources>
112 void SetIncludeResources(IncludeResourcesT&& value) {
113 m_includeResourcesHasBeenSet = true;
114 m_includeResources = std::forward<IncludeResourcesT>(value);
115 }
116 template <typename IncludeResourcesT = ResourceStateUpdateIncludeResources>
118 SetIncludeResources(std::forward<IncludeResourcesT>(value));
119 return *this;
120 }
122
124
128 inline const ResourceStateUpdateExclusionRules& GetExclusionRules() const { return m_exclusionRules; }
129 inline bool ExclusionRulesHasBeenSet() const { return m_exclusionRulesHasBeenSet; }
130 template <typename ExclusionRulesT = ResourceStateUpdateExclusionRules>
131 void SetExclusionRules(ExclusionRulesT&& value) {
132 m_exclusionRulesHasBeenSet = true;
133 m_exclusionRules = std::forward<ExclusionRulesT>(value);
134 }
135 template <typename ExclusionRulesT = ResourceStateUpdateExclusionRules>
137 SetExclusionRules(std::forward<ExclusionRulesT>(value));
138 return *this;
139 }
141
143
148 inline const Aws::Utils::DateTime& GetUpdateAt() const { return m_updateAt; }
149 inline bool UpdateAtHasBeenSet() const { return m_updateAtHasBeenSet; }
150 template <typename UpdateAtT = Aws::Utils::DateTime>
151 void SetUpdateAt(UpdateAtT&& value) {
152 m_updateAtHasBeenSet = true;
153 m_updateAt = std::forward<UpdateAtT>(value);
154 }
155 template <typename UpdateAtT = Aws::Utils::DateTime>
157 SetUpdateAt(std::forward<UpdateAtT>(value));
158 return *this;
159 }
161
163
169 inline const Aws::String& GetClientToken() const { return m_clientToken; }
170 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
171 template <typename ClientTokenT = Aws::String>
172 void SetClientToken(ClientTokenT&& value) {
173 m_clientTokenHasBeenSet = true;
174 m_clientToken = std::forward<ClientTokenT>(value);
175 }
176 template <typename ClientTokenT = Aws::String>
178 SetClientToken(std::forward<ClientTokenT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_resourceArn;
184
185 ResourceState m_state;
186
187 Aws::String m_executionRole;
188
189 ResourceStateUpdateIncludeResources m_includeResources;
190
191 ResourceStateUpdateExclusionRules m_exclusionRules;
192
193 Aws::Utils::DateTime m_updateAt{};
194
196 bool m_resourceArnHasBeenSet = false;
197 bool m_stateHasBeenSet = false;
198 bool m_executionRoleHasBeenSet = false;
199 bool m_includeResourcesHasBeenSet = false;
200 bool m_exclusionRulesHasBeenSet = false;
201 bool m_updateAtHasBeenSet = false;
202 bool m_clientTokenHasBeenSet = true;
203};
204
205} // namespace Model
206} // namespace imagebuilder
207} // 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