AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLifecyclePolicyArn(const Aws::String& value) { m_lifecyclePolicyArnHasBeenSet = true; m_lifecyclePolicyArn = value; }
48 inline void SetLifecyclePolicyArn(Aws::String&& value) { m_lifecyclePolicyArnHasBeenSet = true; m_lifecyclePolicyArn = std::move(value); }
49 inline void SetLifecyclePolicyArn(const char* value) { m_lifecyclePolicyArnHasBeenSet = true; m_lifecyclePolicyArn.assign(value); }
51 inline UpdateLifecyclePolicyRequest& WithLifecyclePolicyArn(Aws::String&& value) { SetLifecyclePolicyArn(std::move(value)); return *this;}
52 inline UpdateLifecyclePolicyRequest& WithLifecyclePolicyArn(const char* value) { SetLifecyclePolicyArn(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline UpdateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline UpdateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline UpdateLifecyclePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const LifecyclePolicyStatus& GetStatus() const{ return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(const LifecyclePolicyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
76 inline void SetStatus(LifecyclePolicyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
77 inline UpdateLifecyclePolicyRequest& WithStatus(const LifecyclePolicyStatus& value) { SetStatus(value); return *this;}
78 inline UpdateLifecyclePolicyRequest& WithStatus(LifecyclePolicyStatus&& value) { SetStatus(std::move(value)); return *this;}
80
82
86 inline const Aws::String& GetExecutionRole() const{ return m_executionRole; }
87 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
88 inline void SetExecutionRole(const Aws::String& value) { m_executionRoleHasBeenSet = true; m_executionRole = value; }
89 inline void SetExecutionRole(Aws::String&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::move(value); }
90 inline void SetExecutionRole(const char* value) { m_executionRoleHasBeenSet = true; m_executionRole.assign(value); }
91 inline UpdateLifecyclePolicyRequest& WithExecutionRole(const Aws::String& value) { SetExecutionRole(value); return *this;}
92 inline UpdateLifecyclePolicyRequest& WithExecutionRole(Aws::String&& value) { SetExecutionRole(std::move(value)); return *this;}
93 inline UpdateLifecyclePolicyRequest& WithExecutionRole(const char* value) { SetExecutionRole(value); return *this;}
95
97
100 inline const LifecyclePolicyResourceType& GetResourceType() const{ return m_resourceType; }
101 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
102 inline void SetResourceType(const LifecyclePolicyResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
103 inline void SetResourceType(LifecyclePolicyResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
107
109
112 inline const Aws::Vector<LifecyclePolicyDetail>& GetPolicyDetails() const{ return m_policyDetails; }
113 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
114 inline void SetPolicyDetails(const Aws::Vector<LifecyclePolicyDetail>& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
115 inline void SetPolicyDetails(Aws::Vector<LifecyclePolicyDetail>&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
118 inline UpdateLifecyclePolicyRequest& AddPolicyDetails(const LifecyclePolicyDetail& value) { m_policyDetailsHasBeenSet = true; m_policyDetails.push_back(value); return *this; }
119 inline UpdateLifecyclePolicyRequest& AddPolicyDetails(LifecyclePolicyDetail&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails.push_back(std::move(value)); return *this; }
121
123
126 inline const LifecyclePolicyResourceSelection& GetResourceSelection() const{ return m_resourceSelection; }
127 inline bool ResourceSelectionHasBeenSet() const { return m_resourceSelectionHasBeenSet; }
128 inline void SetResourceSelection(const LifecyclePolicyResourceSelection& value) { m_resourceSelectionHasBeenSet = true; m_resourceSelection = value; }
129 inline void SetResourceSelection(LifecyclePolicyResourceSelection&& value) { m_resourceSelectionHasBeenSet = true; m_resourceSelection = std::move(value); }
133
135
141 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
142 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
143 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
144 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
145 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
146 inline UpdateLifecyclePolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
147 inline UpdateLifecyclePolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
148 inline UpdateLifecyclePolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
150 private:
151
152 Aws::String m_lifecyclePolicyArn;
153 bool m_lifecyclePolicyArnHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
158 LifecyclePolicyStatus m_status;
159 bool m_statusHasBeenSet = false;
160
161 Aws::String m_executionRole;
162 bool m_executionRoleHasBeenSet = false;
163
164 LifecyclePolicyResourceType m_resourceType;
165 bool m_resourceTypeHasBeenSet = false;
166
168 bool m_policyDetailsHasBeenSet = false;
169
170 LifecyclePolicyResourceSelection m_resourceSelection;
171 bool m_resourceSelectionHasBeenSet = false;
172
173 Aws::String m_clientToken;
174 bool m_clientTokenHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace imagebuilder
179} // namespace Aws
UpdateLifecyclePolicyRequest & WithClientToken(const Aws::String &value)
void SetResourceSelection(const LifecyclePolicyResourceSelection &value)
UpdateLifecyclePolicyRequest & WithExecutionRole(const Aws::String &value)
UpdateLifecyclePolicyRequest & WithExecutionRole(const char *value)
UpdateLifecyclePolicyRequest & WithResourceType(LifecyclePolicyResourceType &&value)
UpdateLifecyclePolicyRequest & WithPolicyDetails(Aws::Vector< LifecyclePolicyDetail > &&value)
UpdateLifecyclePolicyRequest & WithLifecyclePolicyArn(Aws::String &&value)
const LifecyclePolicyResourceType & GetResourceType() const
UpdateLifecyclePolicyRequest & WithClientToken(const char *value)
const LifecyclePolicyResourceSelection & GetResourceSelection() const
UpdateLifecyclePolicyRequest & WithPolicyDetails(const Aws::Vector< LifecyclePolicyDetail > &value)
UpdateLifecyclePolicyRequest & WithResourceSelection(LifecyclePolicyResourceSelection &&value)
UpdateLifecyclePolicyRequest & WithExecutionRole(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithStatus(LifecyclePolicyStatus &&value)
UpdateLifecyclePolicyRequest & WithClientToken(Aws::String &&value)
void SetPolicyDetails(Aws::Vector< LifecyclePolicyDetail > &&value)
UpdateLifecyclePolicyRequest & WithDescription(const char *value)
void SetResourceSelection(LifecyclePolicyResourceSelection &&value)
const Aws::Vector< LifecyclePolicyDetail > & GetPolicyDetails() const
UpdateLifecyclePolicyRequest & WithResourceType(const LifecyclePolicyResourceType &value)
UpdateLifecyclePolicyRequest & AddPolicyDetails(const LifecyclePolicyDetail &value)
UpdateLifecyclePolicyRequest & WithLifecyclePolicyArn(const Aws::String &value)
void SetResourceType(const LifecyclePolicyResourceType &value)
UpdateLifecyclePolicyRequest & WithLifecyclePolicyArn(const char *value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
UpdateLifecyclePolicyRequest & WithResourceSelection(const LifecyclePolicyResourceSelection &value)
void SetPolicyDetails(const Aws::Vector< LifecyclePolicyDetail > &value)
UpdateLifecyclePolicyRequest & WithStatus(const LifecyclePolicyStatus &value)
UpdateLifecyclePolicyRequest & WithDescription(Aws::String &&value)
UpdateLifecyclePolicyRequest & AddPolicyDetails(LifecyclePolicyDetail &&value)
UpdateLifecyclePolicyRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector