AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLifecyclePolicyRequest.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/core/utils/memory/stl/AWSMap.h>
15#include <aws/imagebuilder/model/LifecyclePolicyDetail.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace imagebuilder
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_IMAGEBUILDER_API CreateLifecyclePolicyRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateLifecyclePolicy"; }
38
39 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline CreateLifecyclePolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline CreateLifecyclePolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline CreateLifecyclePolicyRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline CreateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline CreateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline CreateLifecyclePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const LifecyclePolicyStatus& GetStatus() const{ return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(const LifecyclePolicyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
77 inline void SetStatus(LifecyclePolicyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
78 inline CreateLifecyclePolicyRequest& WithStatus(const LifecyclePolicyStatus& value) { SetStatus(value); return *this;}
79 inline CreateLifecyclePolicyRequest& WithStatus(LifecyclePolicyStatus&& value) { SetStatus(std::move(value)); return *this;}
81
83
87 inline const Aws::String& GetExecutionRole() const{ return m_executionRole; }
88 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
89 inline void SetExecutionRole(const Aws::String& value) { m_executionRoleHasBeenSet = true; m_executionRole = value; }
90 inline void SetExecutionRole(Aws::String&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::move(value); }
91 inline void SetExecutionRole(const char* value) { m_executionRoleHasBeenSet = true; m_executionRole.assign(value); }
92 inline CreateLifecyclePolicyRequest& WithExecutionRole(const Aws::String& value) { SetExecutionRole(value); return *this;}
93 inline CreateLifecyclePolicyRequest& WithExecutionRole(Aws::String&& value) { SetExecutionRole(std::move(value)); return *this;}
94 inline CreateLifecyclePolicyRequest& WithExecutionRole(const char* value) { SetExecutionRole(value); return *this;}
96
98
101 inline const LifecyclePolicyResourceType& GetResourceType() const{ return m_resourceType; }
102 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
103 inline void SetResourceType(const LifecyclePolicyResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
104 inline void SetResourceType(LifecyclePolicyResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
108
110
113 inline const Aws::Vector<LifecyclePolicyDetail>& GetPolicyDetails() const{ return m_policyDetails; }
114 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
115 inline void SetPolicyDetails(const Aws::Vector<LifecyclePolicyDetail>& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
116 inline void SetPolicyDetails(Aws::Vector<LifecyclePolicyDetail>&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
119 inline CreateLifecyclePolicyRequest& AddPolicyDetails(const LifecyclePolicyDetail& value) { m_policyDetailsHasBeenSet = true; m_policyDetails.push_back(value); return *this; }
120 inline CreateLifecyclePolicyRequest& AddPolicyDetails(LifecyclePolicyDetail&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails.push_back(std::move(value)); return *this; }
122
124
128 inline const LifecyclePolicyResourceSelection& GetResourceSelection() const{ return m_resourceSelection; }
129 inline bool ResourceSelectionHasBeenSet() const { return m_resourceSelectionHasBeenSet; }
130 inline void SetResourceSelection(const LifecyclePolicyResourceSelection& value) { m_resourceSelectionHasBeenSet = true; m_resourceSelection = value; }
131 inline void SetResourceSelection(LifecyclePolicyResourceSelection&& value) { m_resourceSelectionHasBeenSet = true; m_resourceSelection = std::move(value); }
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
143 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 inline CreateLifecyclePolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
146 inline CreateLifecyclePolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
147 inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
148 inline CreateLifecyclePolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
149 inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
150 inline CreateLifecyclePolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
151 inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
152 inline CreateLifecyclePolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154
156
162 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
163 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
164 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
165 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
166 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
167 inline CreateLifecyclePolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
168 inline CreateLifecyclePolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
169 inline CreateLifecyclePolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
171 private:
172
173 Aws::String m_name;
174 bool m_nameHasBeenSet = false;
175
176 Aws::String m_description;
177 bool m_descriptionHasBeenSet = false;
178
179 LifecyclePolicyStatus m_status;
180 bool m_statusHasBeenSet = false;
181
182 Aws::String m_executionRole;
183 bool m_executionRoleHasBeenSet = false;
184
185 LifecyclePolicyResourceType m_resourceType;
186 bool m_resourceTypeHasBeenSet = false;
187
189 bool m_policyDetailsHasBeenSet = false;
190
191 LifecyclePolicyResourceSelection m_resourceSelection;
192 bool m_resourceSelectionHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196
197 Aws::String m_clientToken;
198 bool m_clientTokenHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace imagebuilder
203} // namespace Aws
CreateLifecyclePolicyRequest & WithResourceType(const LifecyclePolicyResourceType &value)
CreateLifecyclePolicyRequest & WithResourceSelection(LifecyclePolicyResourceSelection &&value)
CreateLifecyclePolicyRequest & WithStatus(const LifecyclePolicyStatus &value)
CreateLifecyclePolicyRequest & WithDescription(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLifecyclePolicyRequest & WithExecutionRole(const char *value)
CreateLifecyclePolicyRequest & WithExecutionRole(const Aws::String &value)
CreateLifecyclePolicyRequest & WithResourceType(LifecyclePolicyResourceType &&value)
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateLifecyclePolicyRequest & WithPolicyDetails(Aws::Vector< LifecyclePolicyDetail > &&value)
CreateLifecyclePolicyRequest & AddPolicyDetails(LifecyclePolicyDetail &&value)
void SetResourceSelection(LifecyclePolicyResourceSelection &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLifecyclePolicyRequest & WithName(Aws::String &&value)
CreateLifecyclePolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const LifecyclePolicyResourceSelection & GetResourceSelection() const
CreateLifecyclePolicyRequest & WithDescription(const Aws::String &value)
CreateLifecyclePolicyRequest & WithClientToken(const Aws::String &value)
CreateLifecyclePolicyRequest & WithStatus(LifecyclePolicyStatus &&value)
CreateLifecyclePolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetPolicyDetails(Aws::Vector< LifecyclePolicyDetail > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLifecyclePolicyRequest & WithClientToken(Aws::String &&value)
CreateLifecyclePolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
const LifecyclePolicyResourceType & GetResourceType() const
CreateLifecyclePolicyRequest & WithClientToken(const char *value)
CreateLifecyclePolicyRequest & WithName(const char *value)
CreateLifecyclePolicyRequest & AddTags(const char *key, Aws::String &&value)
void SetResourceType(const LifecyclePolicyResourceType &value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
const Aws::Vector< LifecyclePolicyDetail > & GetPolicyDetails() const
CreateLifecyclePolicyRequest & WithDescription(const char *value)
CreateLifecyclePolicyRequest & AddPolicyDetails(const LifecyclePolicyDetail &value)
CreateLifecyclePolicyRequest & AddTags(const char *key, const char *value)
void SetResourceSelection(const LifecyclePolicyResourceSelection &value)
CreateLifecyclePolicyRequest & WithPolicyDetails(const Aws::Vector< LifecyclePolicyDetail > &value)
CreateLifecyclePolicyRequest & WithExecutionRole(Aws::String &&value)
CreateLifecyclePolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, const char *value)
CreateLifecyclePolicyRequest & WithName(const Aws::String &value)
CreateLifecyclePolicyRequest & WithResourceSelection(const LifecyclePolicyResourceSelection &value)
void SetPolicyDetails(const Aws::Vector< LifecyclePolicyDetail > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector