AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ResourceArnT = Aws::String>
48 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
49 template<typename ResourceArnT = Aws::String>
50 StartResourceStateUpdateRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
52
54
57 inline const ResourceState& GetState() const { return m_state; }
58 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
59 template<typename StateT = ResourceState>
60 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
61 template<typename StateT = ResourceState>
62 StartResourceStateUpdateRequest& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
64
66
70 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
71 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
72 template<typename ExecutionRoleT = Aws::String>
73 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
74 template<typename ExecutionRoleT = Aws::String>
75 StartResourceStateUpdateRequest& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
77
79
82 inline const ResourceStateUpdateIncludeResources& GetIncludeResources() const { return m_includeResources; }
83 inline bool IncludeResourcesHasBeenSet() const { return m_includeResourcesHasBeenSet; }
84 template<typename IncludeResourcesT = ResourceStateUpdateIncludeResources>
85 void SetIncludeResources(IncludeResourcesT&& value) { m_includeResourcesHasBeenSet = true; m_includeResources = std::forward<IncludeResourcesT>(value); }
86 template<typename IncludeResourcesT = ResourceStateUpdateIncludeResources>
87 StartResourceStateUpdateRequest& WithIncludeResources(IncludeResourcesT&& value) { SetIncludeResources(std::forward<IncludeResourcesT>(value)); return *this;}
89
91
95 inline const ResourceStateUpdateExclusionRules& GetExclusionRules() const { return m_exclusionRules; }
96 inline bool ExclusionRulesHasBeenSet() const { return m_exclusionRulesHasBeenSet; }
97 template<typename ExclusionRulesT = ResourceStateUpdateExclusionRules>
98 void SetExclusionRules(ExclusionRulesT&& value) { m_exclusionRulesHasBeenSet = true; m_exclusionRules = std::forward<ExclusionRulesT>(value); }
99 template<typename ExclusionRulesT = ResourceStateUpdateExclusionRules>
100 StartResourceStateUpdateRequest& WithExclusionRules(ExclusionRulesT&& value) { SetExclusionRules(std::forward<ExclusionRulesT>(value)); return *this;}
102
104
108 inline const Aws::Utils::DateTime& GetUpdateAt() const { return m_updateAt; }
109 inline bool UpdateAtHasBeenSet() const { return m_updateAtHasBeenSet; }
110 template<typename UpdateAtT = Aws::Utils::DateTime>
111 void SetUpdateAt(UpdateAtT&& value) { m_updateAtHasBeenSet = true; m_updateAt = std::forward<UpdateAtT>(value); }
112 template<typename UpdateAtT = Aws::Utils::DateTime>
113 StartResourceStateUpdateRequest& WithUpdateAt(UpdateAtT&& value) { SetUpdateAt(std::forward<UpdateAtT>(value)); return *this;}
115
117
123 inline const Aws::String& GetClientToken() const { return m_clientToken; }
124 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
125 template<typename ClientTokenT = Aws::String>
126 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
127 template<typename ClientTokenT = Aws::String>
128 StartResourceStateUpdateRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
130 private:
131
132 Aws::String m_resourceArn;
133 bool m_resourceArnHasBeenSet = false;
134
135 ResourceState m_state;
136 bool m_stateHasBeenSet = false;
137
138 Aws::String m_executionRole;
139 bool m_executionRoleHasBeenSet = false;
140
141 ResourceStateUpdateIncludeResources m_includeResources;
142 bool m_includeResourcesHasBeenSet = false;
143
144 ResourceStateUpdateExclusionRules m_exclusionRules;
145 bool m_exclusionRulesHasBeenSet = false;
146
147 Aws::Utils::DateTime m_updateAt{};
148 bool m_updateAtHasBeenSet = false;
149
151 bool m_clientTokenHasBeenSet = true;
152 };
153
154} // namespace Model
155} // namespace imagebuilder
156} // 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