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/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/DLMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dlm/model/SettablePolicyStateValues.h>
11#include <aws/dlm/model/PolicyDetails.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/dlm/model/DefaultPolicyTypeValues.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/dlm/model/Exclusions.h>
16#include <aws/dlm/model/CrossRegionCopyTarget.h>
17#include <utility>
18
19namespace Aws
20{
21namespace DLM
22{
23namespace Model
24{
25
29 {
30 public:
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_DLM_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
48 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
49 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
50 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
51 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
53 inline CreateLifecyclePolicyRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
54 inline CreateLifecyclePolicyRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
56
58
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline CreateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline CreateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline CreateLifecyclePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const SettablePolicyStateValues& GetState() const{ return m_state; }
77 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
78 inline void SetState(const SettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; }
79 inline void SetState(SettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
80 inline CreateLifecyclePolicyRequest& WithState(const SettablePolicyStateValues& value) { SetState(value); return *this;}
81 inline CreateLifecyclePolicyRequest& WithState(SettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;}
83
85
91 inline const PolicyDetails& GetPolicyDetails() const{ return m_policyDetails; }
92 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
93 inline void SetPolicyDetails(const PolicyDetails& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
94 inline void SetPolicyDetails(PolicyDetails&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
96 inline CreateLifecyclePolicyRequest& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;}
98
100
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
108 inline CreateLifecyclePolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
109 inline CreateLifecyclePolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
110 inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
111 inline CreateLifecyclePolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
112 inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
113 inline CreateLifecyclePolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
115 inline CreateLifecyclePolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
117
119
127 inline const DefaultPolicyTypeValues& GetDefaultPolicy() const{ return m_defaultPolicy; }
128 inline bool DefaultPolicyHasBeenSet() const { return m_defaultPolicyHasBeenSet; }
129 inline void SetDefaultPolicy(const DefaultPolicyTypeValues& value) { m_defaultPolicyHasBeenSet = true; m_defaultPolicy = value; }
130 inline void SetDefaultPolicy(DefaultPolicyTypeValues&& value) { m_defaultPolicyHasBeenSet = true; m_defaultPolicy = std::move(value); }
134
136
141 inline int GetCreateInterval() const{ return m_createInterval; }
142 inline bool CreateIntervalHasBeenSet() const { return m_createIntervalHasBeenSet; }
143 inline void SetCreateInterval(int value) { m_createIntervalHasBeenSet = true; m_createInterval = value; }
144 inline CreateLifecyclePolicyRequest& WithCreateInterval(int value) { SetCreateInterval(value); return *this;}
146
148
155 inline int GetRetainInterval() const{ return m_retainInterval; }
156 inline bool RetainIntervalHasBeenSet() const { return m_retainIntervalHasBeenSet; }
157 inline void SetRetainInterval(int value) { m_retainIntervalHasBeenSet = true; m_retainInterval = value; }
158 inline CreateLifecyclePolicyRequest& WithRetainInterval(int value) { SetRetainInterval(value); return *this;}
160
162
167 inline bool GetCopyTags() const{ return m_copyTags; }
168 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
169 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
170 inline CreateLifecyclePolicyRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
172
174
191 inline bool GetExtendDeletion() const{ return m_extendDeletion; }
192 inline bool ExtendDeletionHasBeenSet() const { return m_extendDeletionHasBeenSet; }
193 inline void SetExtendDeletion(bool value) { m_extendDeletionHasBeenSet = true; m_extendDeletion = value; }
194 inline CreateLifecyclePolicyRequest& WithExtendDeletion(bool value) { SetExtendDeletion(value); return *this;}
196
198
203 inline const Aws::Vector<CrossRegionCopyTarget>& GetCrossRegionCopyTargets() const{ return m_crossRegionCopyTargets; }
204 inline bool CrossRegionCopyTargetsHasBeenSet() const { return m_crossRegionCopyTargetsHasBeenSet; }
205 inline void SetCrossRegionCopyTargets(const Aws::Vector<CrossRegionCopyTarget>& value) { m_crossRegionCopyTargetsHasBeenSet = true; m_crossRegionCopyTargets = value; }
206 inline void SetCrossRegionCopyTargets(Aws::Vector<CrossRegionCopyTarget>&& value) { m_crossRegionCopyTargetsHasBeenSet = true; m_crossRegionCopyTargets = std::move(value); }
209 inline CreateLifecyclePolicyRequest& AddCrossRegionCopyTargets(const CrossRegionCopyTarget& value) { m_crossRegionCopyTargetsHasBeenSet = true; m_crossRegionCopyTargets.push_back(value); return *this; }
210 inline CreateLifecyclePolicyRequest& AddCrossRegionCopyTargets(CrossRegionCopyTarget&& value) { m_crossRegionCopyTargetsHasBeenSet = true; m_crossRegionCopyTargets.push_back(std::move(value)); return *this; }
212
214
220 inline const Exclusions& GetExclusions() const{ return m_exclusions; }
221 inline bool ExclusionsHasBeenSet() const { return m_exclusionsHasBeenSet; }
222 inline void SetExclusions(const Exclusions& value) { m_exclusionsHasBeenSet = true; m_exclusions = value; }
223 inline void SetExclusions(Exclusions&& value) { m_exclusionsHasBeenSet = true; m_exclusions = std::move(value); }
224 inline CreateLifecyclePolicyRequest& WithExclusions(const Exclusions& value) { SetExclusions(value); return *this;}
225 inline CreateLifecyclePolicyRequest& WithExclusions(Exclusions&& value) { SetExclusions(std::move(value)); return *this;}
227 private:
228
229 Aws::String m_executionRoleArn;
230 bool m_executionRoleArnHasBeenSet = false;
231
232 Aws::String m_description;
233 bool m_descriptionHasBeenSet = false;
234
236 bool m_stateHasBeenSet = false;
237
238 PolicyDetails m_policyDetails;
239 bool m_policyDetailsHasBeenSet = false;
240
242 bool m_tagsHasBeenSet = false;
243
244 DefaultPolicyTypeValues m_defaultPolicy;
245 bool m_defaultPolicyHasBeenSet = false;
246
247 int m_createInterval;
248 bool m_createIntervalHasBeenSet = false;
249
250 int m_retainInterval;
251 bool m_retainIntervalHasBeenSet = false;
252
253 bool m_copyTags;
254 bool m_copyTagsHasBeenSet = false;
255
256 bool m_extendDeletion;
257 bool m_extendDeletionHasBeenSet = false;
258
259 Aws::Vector<CrossRegionCopyTarget> m_crossRegionCopyTargets;
260 bool m_crossRegionCopyTargetsHasBeenSet = false;
261
262 Exclusions m_exclusions;
263 bool m_exclusionsHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace DLM
268} // namespace Aws
const DefaultPolicyTypeValues & GetDefaultPolicy() const
const SettablePolicyStateValues & GetState() const
CreateLifecyclePolicyRequest & WithDescription(const Aws::String &value)
void SetDefaultPolicy(const DefaultPolicyTypeValues &value)
void SetCrossRegionCopyTargets(Aws::Vector< CrossRegionCopyTarget > &&value)
CreateLifecyclePolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateLifecyclePolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLifecyclePolicyRequest & WithCrossRegionCopyTargets(const Aws::Vector< CrossRegionCopyTarget > &value)
void SetState(SettablePolicyStateValues &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLifecyclePolicyRequest & WithState(SettablePolicyStateValues &&value)
virtual const char * GetServiceRequestName() const override
CreateLifecyclePolicyRequest & WithDescription(const char *value)
CreateLifecyclePolicyRequest & WithCopyTags(bool value)
CreateLifecyclePolicyRequest & WithState(const SettablePolicyStateValues &value)
CreateLifecyclePolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLifecyclePolicyRequest & AddCrossRegionCopyTargets(CrossRegionCopyTarget &&value)
CreateLifecyclePolicyRequest & WithDescription(Aws::String &&value)
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Vector< CrossRegionCopyTarget > & GetCrossRegionCopyTargets() const
CreateLifecyclePolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLifecyclePolicyRequest & WithExtendDeletion(bool value)
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateLifecyclePolicyRequest & WithDefaultPolicy(const DefaultPolicyTypeValues &value)
CreateLifecyclePolicyRequest & WithExecutionRoleArn(const Aws::String &value)
CreateLifecyclePolicyRequest & WithExclusions(Exclusions &&value)
CreateLifecyclePolicyRequest & WithRetainInterval(int value)
CreateLifecyclePolicyRequest & WithDefaultPolicy(DefaultPolicyTypeValues &&value)
CreateLifecyclePolicyRequest & WithCreateInterval(int value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, const char *value)
CreateLifecyclePolicyRequest & AddTags(const char *key, Aws::String &&value)
void SetDefaultPolicy(DefaultPolicyTypeValues &&value)
CreateLifecyclePolicyRequest & WithExecutionRoleArn(Aws::String &&value)
void SetCrossRegionCopyTargets(const Aws::Vector< CrossRegionCopyTarget > &value)
CreateLifecyclePolicyRequest & WithExecutionRoleArn(const char *value)
void SetState(const SettablePolicyStateValues &value)
CreateLifecyclePolicyRequest & WithPolicyDetails(const PolicyDetails &value)
CreateLifecyclePolicyRequest & WithCrossRegionCopyTargets(Aws::Vector< CrossRegionCopyTarget > &&value)
AWS_DLM_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLifecyclePolicyRequest & WithPolicyDetails(PolicyDetails &&value)
CreateLifecyclePolicyRequest & WithExclusions(const Exclusions &value)
CreateLifecyclePolicyRequest & AddCrossRegionCopyTargets(const CrossRegionCopyTarget &value)
CreateLifecyclePolicyRequest & AddTags(const char *key, const char *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