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/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/AWSVector.h>
13#include <aws/dlm/model/Exclusions.h>
14#include <aws/dlm/model/CrossRegionCopyTarget.h>
15#include <utility>
16
17namespace Aws
18{
19namespace DLM
20{
21namespace Model
22{
23
27 {
28 public:
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 "UpdateLifecyclePolicy"; }
36
37 AWS_DLM_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
45 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
46 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
47 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
48 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
49 inline UpdateLifecyclePolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
50 inline UpdateLifecyclePolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
51 inline UpdateLifecyclePolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
53
55
59 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
60 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
61 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
62 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
63 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
65 inline UpdateLifecyclePolicyRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
66 inline UpdateLifecyclePolicyRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
68
70
73 inline const SettablePolicyStateValues& GetState() const{ return m_state; }
74 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
75 inline void SetState(const SettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; }
76 inline void SetState(SettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
77 inline UpdateLifecyclePolicyRequest& WithState(const SettablePolicyStateValues& value) { SetState(value); return *this;}
78 inline UpdateLifecyclePolicyRequest& WithState(SettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline UpdateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline UpdateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline UpdateLifecyclePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
100 inline const PolicyDetails& GetPolicyDetails() const{ return m_policyDetails; }
101 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
102 inline void SetPolicyDetails(const PolicyDetails& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
103 inline void SetPolicyDetails(PolicyDetails&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
105 inline UpdateLifecyclePolicyRequest& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;}
107
109
113 inline int GetCreateInterval() const{ return m_createInterval; }
114 inline bool CreateIntervalHasBeenSet() const { return m_createIntervalHasBeenSet; }
115 inline void SetCreateInterval(int value) { m_createIntervalHasBeenSet = true; m_createInterval = value; }
116 inline UpdateLifecyclePolicyRequest& WithCreateInterval(int value) { SetCreateInterval(value); return *this;}
118
120
126 inline int GetRetainInterval() const{ return m_retainInterval; }
127 inline bool RetainIntervalHasBeenSet() const { return m_retainIntervalHasBeenSet; }
128 inline void SetRetainInterval(int value) { m_retainIntervalHasBeenSet = true; m_retainInterval = value; }
129 inline UpdateLifecyclePolicyRequest& WithRetainInterval(int value) { SetRetainInterval(value); return *this;}
131
133
137 inline bool GetCopyTags() const{ return m_copyTags; }
138 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
139 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
140 inline UpdateLifecyclePolicyRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
142
144
160 inline bool GetExtendDeletion() const{ return m_extendDeletion; }
161 inline bool ExtendDeletionHasBeenSet() const { return m_extendDeletionHasBeenSet; }
162 inline void SetExtendDeletion(bool value) { m_extendDeletionHasBeenSet = true; m_extendDeletion = value; }
163 inline UpdateLifecyclePolicyRequest& WithExtendDeletion(bool value) { SetExtendDeletion(value); return *this;}
165
167
172 inline const Aws::Vector<CrossRegionCopyTarget>& GetCrossRegionCopyTargets() const{ return m_crossRegionCopyTargets; }
173 inline bool CrossRegionCopyTargetsHasBeenSet() const { return m_crossRegionCopyTargetsHasBeenSet; }
174 inline void SetCrossRegionCopyTargets(const Aws::Vector<CrossRegionCopyTarget>& value) { m_crossRegionCopyTargetsHasBeenSet = true; m_crossRegionCopyTargets = value; }
175 inline void SetCrossRegionCopyTargets(Aws::Vector<CrossRegionCopyTarget>&& value) { m_crossRegionCopyTargetsHasBeenSet = true; m_crossRegionCopyTargets = std::move(value); }
178 inline UpdateLifecyclePolicyRequest& AddCrossRegionCopyTargets(const CrossRegionCopyTarget& value) { m_crossRegionCopyTargetsHasBeenSet = true; m_crossRegionCopyTargets.push_back(value); return *this; }
179 inline UpdateLifecyclePolicyRequest& AddCrossRegionCopyTargets(CrossRegionCopyTarget&& value) { m_crossRegionCopyTargetsHasBeenSet = true; m_crossRegionCopyTargets.push_back(std::move(value)); return *this; }
181
183
189 inline const Exclusions& GetExclusions() const{ return m_exclusions; }
190 inline bool ExclusionsHasBeenSet() const { return m_exclusionsHasBeenSet; }
191 inline void SetExclusions(const Exclusions& value) { m_exclusionsHasBeenSet = true; m_exclusions = value; }
192 inline void SetExclusions(Exclusions&& value) { m_exclusionsHasBeenSet = true; m_exclusions = std::move(value); }
193 inline UpdateLifecyclePolicyRequest& WithExclusions(const Exclusions& value) { SetExclusions(value); return *this;}
194 inline UpdateLifecyclePolicyRequest& WithExclusions(Exclusions&& value) { SetExclusions(std::move(value)); return *this;}
196 private:
197
198 Aws::String m_policyId;
199 bool m_policyIdHasBeenSet = false;
200
201 Aws::String m_executionRoleArn;
202 bool m_executionRoleArnHasBeenSet = false;
203
205 bool m_stateHasBeenSet = false;
206
207 Aws::String m_description;
208 bool m_descriptionHasBeenSet = false;
209
210 PolicyDetails m_policyDetails;
211 bool m_policyDetailsHasBeenSet = false;
212
213 int m_createInterval;
214 bool m_createIntervalHasBeenSet = false;
215
216 int m_retainInterval;
217 bool m_retainIntervalHasBeenSet = false;
218
219 bool m_copyTags;
220 bool m_copyTagsHasBeenSet = false;
221
222 bool m_extendDeletion;
223 bool m_extendDeletionHasBeenSet = false;
224
225 Aws::Vector<CrossRegionCopyTarget> m_crossRegionCopyTargets;
226 bool m_crossRegionCopyTargetsHasBeenSet = false;
227
228 Exclusions m_exclusions;
229 bool m_exclusionsHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace DLM
234} // namespace Aws
UpdateLifecyclePolicyRequest & WithRetainInterval(int value)
UpdateLifecyclePolicyRequest & AddCrossRegionCopyTargets(CrossRegionCopyTarget &&value)
UpdateLifecyclePolicyRequest & WithState(const SettablePolicyStateValues &value)
const Aws::Vector< CrossRegionCopyTarget > & GetCrossRegionCopyTargets() const
UpdateLifecyclePolicyRequest & WithPolicyDetails(const PolicyDetails &value)
UpdateLifecyclePolicyRequest & WithExclusions(const Exclusions &value)
UpdateLifecyclePolicyRequest & WithDescription(const Aws::String &value)
UpdateLifecyclePolicyRequest & WithCopyTags(bool value)
UpdateLifecyclePolicyRequest & WithCrossRegionCopyTargets(Aws::Vector< CrossRegionCopyTarget > &&value)
void SetState(SettablePolicyStateValues &&value)
UpdateLifecyclePolicyRequest & WithPolicyId(const char *value)
UpdateLifecyclePolicyRequest & WithState(SettablePolicyStateValues &&value)
UpdateLifecyclePolicyRequest & WithDescription(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithExtendDeletion(bool value)
UpdateLifecyclePolicyRequest & WithCreateInterval(int value)
void SetCrossRegionCopyTargets(const Aws::Vector< CrossRegionCopyTarget > &value)
UpdateLifecyclePolicyRequest & WithPolicyId(const Aws::String &value)
UpdateLifecyclePolicyRequest & WithPolicyId(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithPolicyDetails(PolicyDetails &&value)
UpdateLifecyclePolicyRequest & WithExecutionRoleArn(const Aws::String &value)
UpdateLifecyclePolicyRequest & AddCrossRegionCopyTargets(const CrossRegionCopyTarget &value)
UpdateLifecyclePolicyRequest & WithExclusions(Exclusions &&value)
virtual const char * GetServiceRequestName() const override
void SetState(const SettablePolicyStateValues &value)
UpdateLifecyclePolicyRequest & WithExecutionRoleArn(const char *value)
AWS_DLM_API Aws::String SerializePayload() const override
UpdateLifecyclePolicyRequest & WithDescription(const char *value)
const SettablePolicyStateValues & GetState() const
void SetCrossRegionCopyTargets(Aws::Vector< CrossRegionCopyTarget > &&value)
UpdateLifecyclePolicyRequest & WithExecutionRoleArn(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithCrossRegionCopyTargets(const Aws::Vector< CrossRegionCopyTarget > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector