AWS SDK for C++  1.9.125
AWS SDK for C++
UpdateLifecyclePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/dlm/DLM_EXPORTS.h>
8 #include <aws/dlm/DLMRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DLM
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateLifecyclePolicy"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetPolicyId() const{ return m_policyId; }
41 
45  inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
46 
50  inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
51 
55  inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
56 
60  inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
61 
65  inline UpdateLifecyclePolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
66 
70  inline UpdateLifecyclePolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
71 
75  inline UpdateLifecyclePolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
76 
77 
82  inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
83 
88  inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
89 
94  inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
95 
100  inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
101 
106  inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
107 
112  inline UpdateLifecyclePolicyRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
113 
118  inline UpdateLifecyclePolicyRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
119 
124  inline UpdateLifecyclePolicyRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
125 
126 
130  inline const SettablePolicyStateValues& GetState() const{ return m_state; }
131 
135  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
136 
140  inline void SetState(const SettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; }
141 
145  inline void SetState(SettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
146 
150  inline UpdateLifecyclePolicyRequest& WithState(const SettablePolicyStateValues& value) { SetState(value); return *this;}
151 
155  inline UpdateLifecyclePolicyRequest& WithState(SettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;}
156 
157 
161  inline const Aws::String& GetDescription() const{ return m_description; }
162 
166  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
167 
171  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
172 
176  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
177 
181  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
182 
186  inline UpdateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
187 
191  inline UpdateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
192 
196  inline UpdateLifecyclePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
197 
198 
203  inline const PolicyDetails& GetPolicyDetails() const{ return m_policyDetails; }
204 
209  inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
210 
215  inline void SetPolicyDetails(const PolicyDetails& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
216 
221  inline void SetPolicyDetails(PolicyDetails&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
222 
227  inline UpdateLifecyclePolicyRequest& WithPolicyDetails(const PolicyDetails& value) { SetPolicyDetails(value); return *this;}
228 
233  inline UpdateLifecyclePolicyRequest& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;}
234 
235  private:
236 
237  Aws::String m_policyId;
238  bool m_policyIdHasBeenSet;
239 
240  Aws::String m_executionRoleArn;
241  bool m_executionRoleArnHasBeenSet;
242 
244  bool m_stateHasBeenSet;
245 
246  Aws::String m_description;
247  bool m_descriptionHasBeenSet;
248 
249  PolicyDetails m_policyDetails;
250  bool m_policyDetailsHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace DLM
255 } // namespace Aws
DLM_EXPORTS.h
Aws::DLM::Model::UpdateLifecyclePolicyRequest::PolicyIdHasBeenSet
bool PolicyIdHasBeenSet() const
Definition: UpdateLifecyclePolicyRequest.h:45
Aws::DLM::Model::UpdateLifecyclePolicyRequest::UpdateLifecyclePolicyRequest
UpdateLifecyclePolicyRequest()
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetPolicyId
void SetPolicyId(Aws::String &&value)
Definition: UpdateLifecyclePolicyRequest.h:55
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetExecutionRoleArn
void SetExecutionRoleArn(Aws::String &&value)
Definition: UpdateLifecyclePolicyRequest.h:100
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateLifecyclePolicyRequest.h:176
Aws::DLM::Model::UpdateLifecyclePolicyRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateLifecyclePolicyRequest.h:166
Aws::DLM::Model::UpdateLifecyclePolicyRequest::PolicyDetailsHasBeenSet
bool PolicyDetailsHasBeenSet() const
Definition: UpdateLifecyclePolicyRequest.h:209
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetPolicyId
void SetPolicyId(const Aws::String &value)
Definition: UpdateLifecyclePolicyRequest.h:50
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetPolicyId
void SetPolicyId(const char *value)
Definition: UpdateLifecyclePolicyRequest.h:60
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithState
UpdateLifecyclePolicyRequest & WithState(const SettablePolicyStateValues &value)
Definition: UpdateLifecyclePolicyRequest.h:150
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithState
UpdateLifecyclePolicyRequest & WithState(SettablePolicyStateValues &&value)
Definition: UpdateLifecyclePolicyRequest.h:155
Aws::DLM::DLMRequest
Definition: DLMRequest.h:17
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateLifecyclePolicyRequest.h:171
Aws::DLM::Model::UpdateLifecyclePolicyRequest::GetState
const SettablePolicyStateValues & GetState() const
Definition: UpdateLifecyclePolicyRequest.h:130
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetPolicyDetails
void SetPolicyDetails(const PolicyDetails &value)
Definition: UpdateLifecyclePolicyRequest.h:215
Aws::DLM::Model::UpdateLifecyclePolicyRequest::StateHasBeenSet
bool StateHasBeenSet() const
Definition: UpdateLifecyclePolicyRequest.h:135
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithExecutionRoleArn
UpdateLifecyclePolicyRequest & WithExecutionRoleArn(Aws::String &&value)
Definition: UpdateLifecyclePolicyRequest.h:118
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithExecutionRoleArn
UpdateLifecyclePolicyRequest & WithExecutionRoleArn(const char *value)
Definition: UpdateLifecyclePolicyRequest.h:124
DLMRequest.h
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DLM::Model::UpdateLifecyclePolicyRequest::GetPolicyId
const Aws::String & GetPolicyId() const
Definition: UpdateLifecyclePolicyRequest.h:40
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetExecutionRoleArn
void SetExecutionRoleArn(const Aws::String &value)
Definition: UpdateLifecyclePolicyRequest.h:94
AWS_DLM_API
#define AWS_DLM_API
Definition: DLM_EXPORTS.h:28
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetState
void SetState(const SettablePolicyStateValues &value)
Definition: UpdateLifecyclePolicyRequest.h:140
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetExecutionRoleArn
void SetExecutionRoleArn(const char *value)
Definition: UpdateLifecyclePolicyRequest.h:106
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithDescription
UpdateLifecyclePolicyRequest & WithDescription(Aws::String &&value)
Definition: UpdateLifecyclePolicyRequest.h:191
Aws::DLM::Model::UpdateLifecyclePolicyRequest
Definition: UpdateLifecyclePolicyRequest.h:24
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithPolicyId
UpdateLifecyclePolicyRequest & WithPolicyId(const char *value)
Definition: UpdateLifecyclePolicyRequest.h:75
Aws::DLM::Model::UpdateLifecyclePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateLifecyclePolicyRequest.h:32
Aws::DLM::Model::PolicyDetails
Definition: PolicyDetails.h:41
AWSString.h
Aws::DLM::Model::SettablePolicyStateValues
SettablePolicyStateValues
Definition: SettablePolicyStateValues.h:17
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithDescription
UpdateLifecyclePolicyRequest & WithDescription(const Aws::String &value)
Definition: UpdateLifecyclePolicyRequest.h:186
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithPolicyDetails
UpdateLifecyclePolicyRequest & WithPolicyDetails(PolicyDetails &&value)
Definition: UpdateLifecyclePolicyRequest.h:233
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithPolicyId
UpdateLifecyclePolicyRequest & WithPolicyId(Aws::String &&value)
Definition: UpdateLifecyclePolicyRequest.h:70
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithPolicyDetails
UpdateLifecyclePolicyRequest & WithPolicyDetails(const PolicyDetails &value)
Definition: UpdateLifecyclePolicyRequest.h:227
Aws::DLM::Model::UpdateLifecyclePolicyRequest::GetPolicyDetails
const PolicyDetails & GetPolicyDetails() const
Definition: UpdateLifecyclePolicyRequest.h:203
Aws::DLM::Model::UpdateLifecyclePolicyRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateLifecyclePolicyRequest.h:161
Aws
Definition: AccessManagementClient.h:15
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithDescription
UpdateLifecyclePolicyRequest & WithDescription(const char *value)
Definition: UpdateLifecyclePolicyRequest.h:196
Aws::DLM::Model::UpdateLifecyclePolicyRequest::ExecutionRoleArnHasBeenSet
bool ExecutionRoleArnHasBeenSet() const
Definition: UpdateLifecyclePolicyRequest.h:88
SettablePolicyStateValues.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithExecutionRoleArn
UpdateLifecyclePolicyRequest & WithExecutionRoleArn(const Aws::String &value)
Definition: UpdateLifecyclePolicyRequest.h:112
Aws::DLM::Model::UpdateLifecyclePolicyRequest::WithPolicyId
UpdateLifecyclePolicyRequest & WithPolicyId(const Aws::String &value)
Definition: UpdateLifecyclePolicyRequest.h:65
Aws::DLM::Model::UpdateLifecyclePolicyRequest::GetExecutionRoleArn
const Aws::String & GetExecutionRoleArn() const
Definition: UpdateLifecyclePolicyRequest.h:82
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetPolicyDetails
void SetPolicyDetails(PolicyDetails &&value)
Definition: UpdateLifecyclePolicyRequest.h:221
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetState
void SetState(SettablePolicyStateValues &&value)
Definition: UpdateLifecyclePolicyRequest.h:145
PolicyDetails.h
Aws::DLM::Model::UpdateLifecyclePolicyRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateLifecyclePolicyRequest.h:181