AWS SDK for C++  1.8.71
AWS SDK for C++
CreateLifecyclePolicyRequest.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>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace DLM
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateLifecyclePolicy"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
42  inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
43 
48  inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
49 
54  inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
55 
60  inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
61 
66  inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
67 
72  inline CreateLifecyclePolicyRequest& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
73 
78  inline CreateLifecyclePolicyRequest& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
79 
84  inline CreateLifecyclePolicyRequest& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
85 
86 
91  inline const Aws::String& GetDescription() const{ return m_description; }
92 
97  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 
103  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
104 
109  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 
115  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 
121  inline CreateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
122 
127  inline CreateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
128 
133  inline CreateLifecyclePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
134 
135 
139  inline const SettablePolicyStateValues& GetState() const{ return m_state; }
140 
144  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
145 
149  inline void SetState(const SettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; }
150 
154  inline void SetState(SettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
155 
159  inline CreateLifecyclePolicyRequest& WithState(const SettablePolicyStateValues& value) { SetState(value); return *this;}
160 
164  inline CreateLifecyclePolicyRequest& WithState(SettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;}
165 
166 
170  inline const PolicyDetails& GetPolicyDetails() const{ return m_policyDetails; }
171 
175  inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
176 
180  inline void SetPolicyDetails(const PolicyDetails& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
181 
185  inline void SetPolicyDetails(PolicyDetails&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
186 
190  inline CreateLifecyclePolicyRequest& WithPolicyDetails(const PolicyDetails& value) { SetPolicyDetails(value); return *this;}
191 
195  inline CreateLifecyclePolicyRequest& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;}
196 
197 
201  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
202 
206  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
207 
211  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
212 
216  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
217 
221  inline CreateLifecyclePolicyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
222 
226  inline CreateLifecyclePolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
227 
231  inline CreateLifecyclePolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
232 
236  inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
237 
241  inline CreateLifecyclePolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
242 
246  inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
247 
251  inline CreateLifecyclePolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
252 
256  inline CreateLifecyclePolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
257 
261  inline CreateLifecyclePolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
262 
263  private:
264 
265  Aws::String m_executionRoleArn;
266  bool m_executionRoleArnHasBeenSet;
267 
268  Aws::String m_description;
269  bool m_descriptionHasBeenSet;
270 
272  bool m_stateHasBeenSet;
273 
274  PolicyDetails m_policyDetails;
275  bool m_policyDetailsHasBeenSet;
276 
278  bool m_tagsHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace DLM
283 } // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateLifecyclePolicyRequest & WithDescription(Aws::String &&value)
CreateLifecyclePolicyRequest & WithDescription(const Aws::String &value)
void SetState(const SettablePolicyStateValues &value)
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetState(SettablePolicyStateValues &&value)
CreateLifecyclePolicyRequest & WithDescription(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreateLifecyclePolicyRequest & WithExecutionRoleArn(const char *value)
#define AWS_DLM_API
Definition: DLM_EXPORTS.h:28
CreateLifecyclePolicyRequest & WithState(SettablePolicyStateValues &&value)
CreateLifecyclePolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLifecyclePolicyRequest & WithExecutionRoleArn(Aws::String &&value)
CreateLifecyclePolicyRequest & WithState(const SettablePolicyStateValues &value)
CreateLifecyclePolicyRequest & WithPolicyDetails(const PolicyDetails &value)
CreateLifecyclePolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const SettablePolicyStateValues & GetState() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLifecyclePolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLifecyclePolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLifecyclePolicyRequest & WithExecutionRoleArn(const Aws::String &value)
CreateLifecyclePolicyRequest & WithPolicyDetails(PolicyDetails &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, const char *value)
CreateLifecyclePolicyRequest & AddTags(const char *key, const char *value)
CreateLifecyclePolicyRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLifecyclePolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)