7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dlm/DLM_EXPORTS.h>
11#include <aws/dlm/model/GettablePolicyStateValues.h>
12#include <aws/dlm/model/PolicyDetails.h>
44 template <
typename PolicyIdT = Aws::String>
46 m_policyIdHasBeenSet =
true;
47 m_policyId = std::forward<PolicyIdT>(value);
49 template <
typename PolicyIdT = Aws::String>
62 template <
typename DescriptionT = Aws::String>
64 m_descriptionHasBeenSet =
true;
65 m_description = std::forward<DescriptionT>(value);
67 template <
typename DescriptionT = Aws::String>
81 m_stateHasBeenSet =
true;
96 template <
typename StatusMessageT = Aws::String>
98 m_statusMessageHasBeenSet =
true;
99 m_statusMessage = std::forward<StatusMessageT>(value);
101 template <
typename StatusMessageT = Aws::String>
115 template <
typename ExecutionRoleArnT = Aws::String>
117 m_executionRoleArnHasBeenSet =
true;
118 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
120 template <
typename ExecutionRoleArnT = Aws::String>
133 template <
typename DateCreatedT = Aws::Utils::DateTime>
135 m_dateCreatedHasBeenSet =
true;
136 m_dateCreated = std::forward<DateCreatedT>(value);
138 template <
typename DateCreatedT = Aws::Utils::DateTime>
151 template <
typename DateModifiedT = Aws::Utils::DateTime>
153 m_dateModifiedHasBeenSet =
true;
154 m_dateModified = std::forward<DateModifiedT>(value);
156 template <
typename DateModifiedT = Aws::Utils::DateTime>
169 template <
typename PolicyDetailsT = PolicyDetails>
171 m_policyDetailsHasBeenSet =
true;
172 m_policyDetails = std::forward<PolicyDetailsT>(value);
174 template <
typename PolicyDetailsT = PolicyDetails>
187 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 m_tagsHasBeenSet =
true;
190 m_tags = std::forward<TagsT>(value);
192 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 SetTags(std::forward<TagsT>(value));
197 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
199 m_tagsHasBeenSet =
true;
200 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
211 template <
typename PolicyArnT = Aws::String>
213 m_policyArnHasBeenSet =
true;
214 m_policyArn = std::forward<PolicyArnT>(value);
216 template <
typename PolicyArnT = Aws::String>
233 m_defaultPolicyHasBeenSet =
true;
234 m_defaultPolicy = value;
256 PolicyDetails m_policyDetails;
262 bool m_defaultPolicy{
false};
263 bool m_policyIdHasBeenSet =
false;
264 bool m_descriptionHasBeenSet =
false;
265 bool m_stateHasBeenSet =
false;
266 bool m_statusMessageHasBeenSet =
false;
267 bool m_executionRoleArnHasBeenSet =
false;
268 bool m_dateCreatedHasBeenSet =
false;
269 bool m_dateModifiedHasBeenSet =
false;
270 bool m_policyDetailsHasBeenSet =
false;
271 bool m_tagsHasBeenSet =
false;
272 bool m_policyArnHasBeenSet =
false;
273 bool m_defaultPolicyHasBeenSet =
false;
void SetTags(TagsT &&value)
void SetPolicyDetails(PolicyDetailsT &&value)
bool PolicyArnHasBeenSet() const
LifecyclePolicy & WithTags(TagsT &&value)
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
LifecyclePolicy & WithDateCreated(DateCreatedT &&value)
bool DateModifiedHasBeenSet() const
void SetDateModified(DateModifiedT &&value)
const Aws::Utils::DateTime & GetDateModified() const
LifecyclePolicy & WithPolicyId(PolicyIdT &&value)
LifecyclePolicy & WithPolicyArn(PolicyArnT &&value)
bool ExecutionRoleArnHasBeenSet() const
const Aws::Utils::DateTime & GetDateCreated() const
bool DescriptionHasBeenSet() const
AWS_DLM_API LifecyclePolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPolicyArn() const
AWS_DLM_API LifecyclePolicy()=default
bool StatusMessageHasBeenSet() const
LifecyclePolicy & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicy & WithDescription(DescriptionT &&value)
bool PolicyIdHasBeenSet() const
GettablePolicyStateValues GetState() const
LifecyclePolicy & WithStatusMessage(StatusMessageT &&value)
bool TagsHasBeenSet() const
void SetPolicyId(PolicyIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool PolicyDetailsHasBeenSet() const
void SetStatusMessage(StatusMessageT &&value)
void SetDescription(DescriptionT &&value)
LifecyclePolicy & WithState(GettablePolicyStateValues value)
const Aws::String & GetStatusMessage() const
const Aws::String & GetDescription() const
bool DefaultPolicyHasBeenSet() const
LifecyclePolicy & WithDateModified(DateModifiedT &&value)
bool DateCreatedHasBeenSet() const
void SetPolicyArn(PolicyArnT &&value)
const Aws::String & GetExecutionRoleArn() const
void SetDateCreated(DateCreatedT &&value)
void SetState(GettablePolicyStateValues value)
const Aws::String & GetPolicyId() const
bool StateHasBeenSet() const
void SetDefaultPolicy(bool value)
LifecyclePolicy & WithPolicyDetails(PolicyDetailsT &&value)
LifecyclePolicy & WithDefaultPolicy(bool value)
const PolicyDetails & GetPolicyDetails() const
bool GetDefaultPolicy() const
LifecyclePolicy & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_DLM_API LifecyclePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
GettablePolicyStateValues
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