AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateLifecyclePolicyRequest.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/LifecyclePolicyStatus.h>
11#include <aws/imagebuilder/model/LifecyclePolicyResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/imagebuilder/model/LifecyclePolicyResourceSelection.h>
14#include <aws/imagebuilder/model/LifecyclePolicyDetail.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace imagebuilder
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IMAGEBUILDER_API UpdateLifecyclePolicyRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateLifecyclePolicy"; }
37
38 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetLifecyclePolicyArn() const { return m_lifecyclePolicyArn; }
46 inline bool LifecyclePolicyArnHasBeenSet() const { return m_lifecyclePolicyArnHasBeenSet; }
47 template<typename LifecyclePolicyArnT = Aws::String>
48 void SetLifecyclePolicyArn(LifecyclePolicyArnT&& value) { m_lifecyclePolicyArnHasBeenSet = true; m_lifecyclePolicyArn = std::forward<LifecyclePolicyArnT>(value); }
49 template<typename LifecyclePolicyArnT = Aws::String>
50 UpdateLifecyclePolicyRequest& WithLifecyclePolicyArn(LifecyclePolicyArnT&& value) { SetLifecyclePolicyArn(std::forward<LifecyclePolicyArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 UpdateLifecyclePolicyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline LifecyclePolicyStatus GetStatus() const { return m_status; }
70 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
71 inline void SetStatus(LifecyclePolicyStatus value) { m_statusHasBeenSet = true; m_status = value; }
74
76
80 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
81 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
82 template<typename ExecutionRoleT = Aws::String>
83 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
84 template<typename ExecutionRoleT = Aws::String>
85 UpdateLifecyclePolicyRequest& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
87
89
92 inline LifecyclePolicyResourceType GetResourceType() const { return m_resourceType; }
93 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
94 inline void SetResourceType(LifecyclePolicyResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
97
99
102 inline const Aws::Vector<LifecyclePolicyDetail>& GetPolicyDetails() const { return m_policyDetails; }
103 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
104 template<typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
105 void SetPolicyDetails(PolicyDetailsT&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::forward<PolicyDetailsT>(value); }
106 template<typename PolicyDetailsT = Aws::Vector<LifecyclePolicyDetail>>
107 UpdateLifecyclePolicyRequest& WithPolicyDetails(PolicyDetailsT&& value) { SetPolicyDetails(std::forward<PolicyDetailsT>(value)); return *this;}
108 template<typename PolicyDetailsT = LifecyclePolicyDetail>
109 UpdateLifecyclePolicyRequest& AddPolicyDetails(PolicyDetailsT&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails.emplace_back(std::forward<PolicyDetailsT>(value)); return *this; }
111
113
116 inline const LifecyclePolicyResourceSelection& GetResourceSelection() const { return m_resourceSelection; }
117 inline bool ResourceSelectionHasBeenSet() const { return m_resourceSelectionHasBeenSet; }
118 template<typename ResourceSelectionT = LifecyclePolicyResourceSelection>
119 void SetResourceSelection(ResourceSelectionT&& value) { m_resourceSelectionHasBeenSet = true; m_resourceSelection = std::forward<ResourceSelectionT>(value); }
120 template<typename ResourceSelectionT = LifecyclePolicyResourceSelection>
121 UpdateLifecyclePolicyRequest& WithResourceSelection(ResourceSelectionT&& value) { SetResourceSelection(std::forward<ResourceSelectionT>(value)); return *this;}
123
125
131 inline const Aws::String& GetClientToken() const { return m_clientToken; }
132 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
133 template<typename ClientTokenT = Aws::String>
134 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
135 template<typename ClientTokenT = Aws::String>
136 UpdateLifecyclePolicyRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
138 private:
139
140 Aws::String m_lifecyclePolicyArn;
141 bool m_lifecyclePolicyArnHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
147 bool m_statusHasBeenSet = false;
148
149 Aws::String m_executionRole;
150 bool m_executionRoleHasBeenSet = false;
151
153 bool m_resourceTypeHasBeenSet = false;
154
156 bool m_policyDetailsHasBeenSet = false;
157
158 LifecyclePolicyResourceSelection m_resourceSelection;
159 bool m_resourceSelectionHasBeenSet = false;
160
162 bool m_clientTokenHasBeenSet = true;
163 };
164
165} // namespace Model
166} // namespace imagebuilder
167} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
UpdateLifecyclePolicyRequest & WithStatus(LifecyclePolicyStatus value)
UpdateLifecyclePolicyRequest & WithLifecyclePolicyArn(LifecyclePolicyArnT &&value)
UpdateLifecyclePolicyRequest & AddPolicyDetails(PolicyDetailsT &&value)
UpdateLifecyclePolicyRequest & WithResourceType(LifecyclePolicyResourceType value)
UpdateLifecyclePolicyRequest & WithPolicyDetails(PolicyDetailsT &&value)
AWS_IMAGEBUILDER_API UpdateLifecyclePolicyRequest()=default
UpdateLifecyclePolicyRequest & WithDescription(DescriptionT &&value)
const LifecyclePolicyResourceSelection & GetResourceSelection() const
UpdateLifecyclePolicyRequest & WithExecutionRole(ExecutionRoleT &&value)
UpdateLifecyclePolicyRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< LifecyclePolicyDetail > & GetPolicyDetails() const
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
UpdateLifecyclePolicyRequest & WithResourceSelection(ResourceSelectionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector