AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartResourceStateUpdateRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/imagebuilder/model/ResourceState.h>
11#include <aws/imagebuilder/model/ResourceStateUpdateIncludeResources.h>
12#include <aws/imagebuilder/model/ResourceStateUpdateExclusionRules.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace imagebuilder
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IMAGEBUILDER_API StartResourceStateUpdateRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartResourceStateUpdate"; }
36
37 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
46 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
47 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
48 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
49 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
50 inline StartResourceStateUpdateRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
51 inline StartResourceStateUpdateRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
52 inline StartResourceStateUpdateRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
54
56
59 inline const ResourceState& GetState() const{ return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 inline void SetState(const ResourceState& value) { m_stateHasBeenSet = true; m_state = value; }
62 inline void SetState(ResourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
63 inline StartResourceStateUpdateRequest& WithState(const ResourceState& value) { SetState(value); return *this;}
64 inline StartResourceStateUpdateRequest& WithState(ResourceState&& value) { SetState(std::move(value)); return *this;}
66
68
72 inline const Aws::String& GetExecutionRole() const{ return m_executionRole; }
73 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
74 inline void SetExecutionRole(const Aws::String& value) { m_executionRoleHasBeenSet = true; m_executionRole = value; }
75 inline void SetExecutionRole(Aws::String&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::move(value); }
76 inline void SetExecutionRole(const char* value) { m_executionRoleHasBeenSet = true; m_executionRole.assign(value); }
78 inline StartResourceStateUpdateRequest& WithExecutionRole(Aws::String&& value) { SetExecutionRole(std::move(value)); return *this;}
79 inline StartResourceStateUpdateRequest& WithExecutionRole(const char* value) { SetExecutionRole(value); return *this;}
81
83
86 inline const ResourceStateUpdateIncludeResources& GetIncludeResources() const{ return m_includeResources; }
87 inline bool IncludeResourcesHasBeenSet() const { return m_includeResourcesHasBeenSet; }
88 inline void SetIncludeResources(const ResourceStateUpdateIncludeResources& value) { m_includeResourcesHasBeenSet = true; m_includeResources = value; }
89 inline void SetIncludeResources(ResourceStateUpdateIncludeResources&& value) { m_includeResourcesHasBeenSet = true; m_includeResources = std::move(value); }
93
95
99 inline const ResourceStateUpdateExclusionRules& GetExclusionRules() const{ return m_exclusionRules; }
100 inline bool ExclusionRulesHasBeenSet() const { return m_exclusionRulesHasBeenSet; }
101 inline void SetExclusionRules(const ResourceStateUpdateExclusionRules& value) { m_exclusionRulesHasBeenSet = true; m_exclusionRules = value; }
102 inline void SetExclusionRules(ResourceStateUpdateExclusionRules&& value) { m_exclusionRulesHasBeenSet = true; m_exclusionRules = std::move(value); }
106
108
112 inline const Aws::Utils::DateTime& GetUpdateAt() const{ return m_updateAt; }
113 inline bool UpdateAtHasBeenSet() const { return m_updateAtHasBeenSet; }
114 inline void SetUpdateAt(const Aws::Utils::DateTime& value) { m_updateAtHasBeenSet = true; m_updateAt = value; }
115 inline void SetUpdateAt(Aws::Utils::DateTime&& value) { m_updateAtHasBeenSet = true; m_updateAt = std::move(value); }
117 inline StartResourceStateUpdateRequest& WithUpdateAt(Aws::Utils::DateTime&& value) { SetUpdateAt(std::move(value)); return *this;}
119
121
127 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
128 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
129 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
130 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
131 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
132 inline StartResourceStateUpdateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
133 inline StartResourceStateUpdateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
134 inline StartResourceStateUpdateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
136 private:
137
138 Aws::String m_resourceArn;
139 bool m_resourceArnHasBeenSet = false;
140
141 ResourceState m_state;
142 bool m_stateHasBeenSet = false;
143
144 Aws::String m_executionRole;
145 bool m_executionRoleHasBeenSet = false;
146
147 ResourceStateUpdateIncludeResources m_includeResources;
148 bool m_includeResourcesHasBeenSet = false;
149
150 ResourceStateUpdateExclusionRules m_exclusionRules;
151 bool m_exclusionRulesHasBeenSet = false;
152
153 Aws::Utils::DateTime m_updateAt;
154 bool m_updateAtHasBeenSet = false;
155
156 Aws::String m_clientToken;
157 bool m_clientTokenHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace imagebuilder
162} // namespace Aws
void SetExclusionRules(ResourceStateUpdateExclusionRules &&value)
StartResourceStateUpdateRequest & WithUpdateAt(Aws::Utils::DateTime &&value)
StartResourceStateUpdateRequest & WithClientToken(const Aws::String &value)
StartResourceStateUpdateRequest & WithResourceArn(const char *value)
StartResourceStateUpdateRequest & WithExecutionRole(const Aws::String &value)
StartResourceStateUpdateRequest & WithClientToken(const char *value)
StartResourceStateUpdateRequest & WithExecutionRole(Aws::String &&value)
const ResourceStateUpdateIncludeResources & GetIncludeResources() const
StartResourceStateUpdateRequest & WithExclusionRules(ResourceStateUpdateExclusionRules &&value)
StartResourceStateUpdateRequest & WithIncludeResources(const ResourceStateUpdateIncludeResources &value)
StartResourceStateUpdateRequest & WithClientToken(Aws::String &&value)
StartResourceStateUpdateRequest & WithState(ResourceState &&value)
StartResourceStateUpdateRequest & WithExclusionRules(const ResourceStateUpdateExclusionRules &value)
StartResourceStateUpdateRequest & WithResourceArn(const Aws::String &value)
StartResourceStateUpdateRequest & WithExecutionRole(const char *value)
StartResourceStateUpdateRequest & WithIncludeResources(ResourceStateUpdateIncludeResources &&value)
void SetIncludeResources(ResourceStateUpdateIncludeResources &&value)
void SetExclusionRules(const ResourceStateUpdateExclusionRules &value)
StartResourceStateUpdateRequest & WithState(const ResourceState &value)
StartResourceStateUpdateRequest & WithUpdateAt(const Aws::Utils::DateTime &value)
void SetIncludeResources(const ResourceStateUpdateIncludeResources &value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
const ResourceStateUpdateExclusionRules & GetExclusionRules() const
StartResourceStateUpdateRequest & WithResourceArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String