AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecyclePolicy.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dlm/model/GettablePolicyStateValues.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/dlm/model/PolicyDetails.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DLM
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DLM_API LifecyclePolicy();
43
44
46
49 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
50 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
51 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
52 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
53 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
54 inline LifecyclePolicy& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
55 inline LifecyclePolicy& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
56 inline LifecyclePolicy& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline LifecyclePolicy& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline LifecyclePolicy& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline LifecyclePolicy& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const GettablePolicyStateValues& GetState() const{ return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(const GettablePolicyStateValues& value) { m_stateHasBeenSet = true; m_state = value; }
80 inline void SetState(GettablePolicyStateValues&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
81 inline LifecyclePolicy& WithState(const GettablePolicyStateValues& value) { SetState(value); return *this;}
82 inline LifecyclePolicy& WithState(GettablePolicyStateValues&& value) { SetState(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
90 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
91 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
92 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
93 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
94 inline LifecyclePolicy& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
95 inline LifecyclePolicy& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
96 inline LifecyclePolicy& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
98
100
104 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
105 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
106 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
107 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
108 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
109 inline LifecyclePolicy& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
110 inline LifecyclePolicy& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
111 inline LifecyclePolicy& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
119 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
120 inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
121 inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
122 inline LifecyclePolicy& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;}
123 inline LifecyclePolicy& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; }
131 inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
132 inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModifiedHasBeenSet = true; m_dateModified = value; }
133 inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::move(value); }
134 inline LifecyclePolicy& WithDateModified(const Aws::Utils::DateTime& value) { SetDateModified(value); return *this;}
135 inline LifecyclePolicy& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;}
137
139
142 inline const PolicyDetails& GetPolicyDetails() const{ return m_policyDetails; }
143 inline bool PolicyDetailsHasBeenSet() const { return m_policyDetailsHasBeenSet; }
144 inline void SetPolicyDetails(const PolicyDetails& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = value; }
145 inline void SetPolicyDetails(PolicyDetails&& value) { m_policyDetailsHasBeenSet = true; m_policyDetails = std::move(value); }
146 inline LifecyclePolicy& WithPolicyDetails(const PolicyDetails& value) { SetPolicyDetails(value); return *this;}
147 inline LifecyclePolicy& WithPolicyDetails(PolicyDetails&& value) { SetPolicyDetails(std::move(value)); return *this;}
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
157 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
158 inline LifecyclePolicy& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
159 inline LifecyclePolicy& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
160 inline LifecyclePolicy& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
161 inline LifecyclePolicy& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
162 inline LifecyclePolicy& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
163 inline LifecyclePolicy& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
164 inline LifecyclePolicy& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
165 inline LifecyclePolicy& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
166 inline LifecyclePolicy& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
168
170
173 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
174 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
175 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
176 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
177 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
178 inline LifecyclePolicy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
179 inline LifecyclePolicy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
180 inline LifecyclePolicy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
182
184
190 inline bool GetDefaultPolicy() const{ return m_defaultPolicy; }
191 inline bool DefaultPolicyHasBeenSet() const { return m_defaultPolicyHasBeenSet; }
192 inline void SetDefaultPolicy(bool value) { m_defaultPolicyHasBeenSet = true; m_defaultPolicy = value; }
193 inline LifecyclePolicy& WithDefaultPolicy(bool value) { SetDefaultPolicy(value); return *this;}
195 private:
196
197 Aws::String m_policyId;
198 bool m_policyIdHasBeenSet = false;
199
200 Aws::String m_description;
201 bool m_descriptionHasBeenSet = false;
202
204 bool m_stateHasBeenSet = false;
205
206 Aws::String m_statusMessage;
207 bool m_statusMessageHasBeenSet = false;
208
209 Aws::String m_executionRoleArn;
210 bool m_executionRoleArnHasBeenSet = false;
211
212 Aws::Utils::DateTime m_dateCreated;
213 bool m_dateCreatedHasBeenSet = false;
214
215 Aws::Utils::DateTime m_dateModified;
216 bool m_dateModifiedHasBeenSet = false;
217
218 PolicyDetails m_policyDetails;
219 bool m_policyDetailsHasBeenSet = false;
220
222 bool m_tagsHasBeenSet = false;
223
224 Aws::String m_policyArn;
225 bool m_policyArnHasBeenSet = false;
226
227 bool m_defaultPolicy;
228 bool m_defaultPolicyHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace DLM
233} // namespace Aws
LifecyclePolicy & WithState(GettablePolicyStateValues &&value)
void SetPolicyDetails(PolicyDetails &&value)
LifecyclePolicy & WithStatusMessage(const Aws::String &value)
LifecyclePolicy & WithPolicyDetails(PolicyDetails &&value)
LifecyclePolicy & WithDateCreated(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetDateModified() const
LifecyclePolicy & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const GettablePolicyStateValues & GetState() const
LifecyclePolicy & AddTags(const Aws::String &key, const Aws::String &value)
void SetDateCreated(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetDateCreated() const
AWS_DLM_API LifecyclePolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPolicyArn() const
void SetPolicyDetails(const PolicyDetails &value)
void SetDateModified(const Aws::Utils::DateTime &value)
void SetDescription(Aws::String &&value)
LifecyclePolicy & WithState(const GettablePolicyStateValues &value)
LifecyclePolicy & WithDescription(Aws::String &&value)
LifecyclePolicy & WithPolicyDetails(const PolicyDetails &value)
void SetDateModified(Aws::Utils::DateTime &&value)
LifecyclePolicy & WithDescription(const char *value)
LifecyclePolicy & WithPolicyArn(const char *value)
LifecyclePolicy & WithStatusMessage(Aws::String &&value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicy & AddTags(Aws::String &&key, const Aws::String &value)
LifecyclePolicy & AddTags(const Aws::String &key, Aws::String &&value)
void SetPolicyArn(Aws::String &&value)
void SetPolicyId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetPolicyArn(const Aws::String &value)
void SetDescription(const char *value)
LifecyclePolicy & WithStatusMessage(const char *value)
void SetDescription(const Aws::String &value)
void SetStatusMessage(const Aws::String &value)
LifecyclePolicy & WithExecutionRoleArn(Aws::String &&value)
LifecyclePolicy & WithDateModified(Aws::Utils::DateTime &&value)
void SetExecutionRoleArn(Aws::String &&value)
LifecyclePolicy & WithPolicyId(const char *value)
const Aws::String & GetStatusMessage() const
LifecyclePolicy & AddTags(Aws::String &&key, const char *value)
void SetPolicyId(const Aws::String &value)
LifecyclePolicy & AddTags(const char *key, Aws::String &&value)
const Aws::String & GetDescription() const
void SetState(const GettablePolicyStateValues &value)
void SetState(GettablePolicyStateValues &&value)
const Aws::String & GetExecutionRoleArn() const
const Aws::String & GetPolicyId() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
LifecyclePolicy & WithPolicyArn(Aws::String &&value)
LifecyclePolicy & WithPolicyArn(const Aws::String &value)
void SetExecutionRoleArn(const char *value)
void SetStatusMessage(const char *value)
LifecyclePolicy & WithDefaultPolicy(bool value)
LifecyclePolicy & WithDateModified(const Aws::Utils::DateTime &value)
const PolicyDetails & GetPolicyDetails() const
LifecyclePolicy & AddTags(const char *key, const char *value)
LifecyclePolicy & AddTags(Aws::String &&key, Aws::String &&value)
void SetExecutionRoleArn(const Aws::String &value)
LifecyclePolicy & WithDateCreated(Aws::Utils::DateTime &&value)
AWS_DLM_API LifecyclePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicy & WithExecutionRoleArn(const Aws::String &value)
LifecyclePolicy & WithDescription(const Aws::String &value)
LifecyclePolicy & WithExecutionRoleArn(const char *value)
void SetPolicyId(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetDateCreated(const Aws::Utils::DateTime &value)
void SetPolicyArn(const char *value)
LifecyclePolicy & WithPolicyId(const Aws::String &value)
LifecyclePolicy & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetStatusMessage(Aws::String &&value)
LifecyclePolicy & WithPolicyId(Aws::String &&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
Aws::Utils::Json::JsonValue JsonValue