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>
50 template<
typename PolicyIdT = Aws::String>
51 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet =
true; m_policyId = std::forward<PolicyIdT>(value); }
52 template<
typename PolicyIdT = Aws::String>
62 template<
typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
64 template<
typename DescriptionT = Aws::String>
84 template<
typename StatusMessageT = Aws::String>
85 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet =
true; m_statusMessage = std::forward<StatusMessageT>(value); }
86 template<
typename StatusMessageT = Aws::String>
97 template<
typename ExecutionRoleArnT = Aws::String>
98 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
99 template<
typename ExecutionRoleArnT = Aws::String>
109 template<
typename DateCreatedT = Aws::Utils::DateTime>
110 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet =
true; m_dateCreated = std::forward<DateCreatedT>(value); }
111 template<
typename DateCreatedT = Aws::Utils::DateTime>
121 template<
typename DateModifiedT = Aws::Utils::DateTime>
122 void SetDateModified(DateModifiedT&& value) { m_dateModifiedHasBeenSet =
true; m_dateModified = std::forward<DateModifiedT>(value); }
123 template<
typename DateModifiedT = Aws::Utils::DateTime>
133 template<
typename PolicyDetailsT = PolicyDetails>
134 void SetPolicyDetails(PolicyDetailsT&& value) { m_policyDetailsHasBeenSet =
true; m_policyDetails = std::forward<PolicyDetailsT>(value); }
135 template<
typename PolicyDetailsT = PolicyDetails>
145 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
147 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
151 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
161 template<
typename PolicyArnT = Aws::String>
162 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet =
true; m_policyArn = std::forward<PolicyArnT>(value); }
163 template<
typename PolicyArnT = Aws::String>
176 inline void SetDefaultPolicy(
bool value) { m_defaultPolicyHasBeenSet =
true; m_defaultPolicy = value; }
182 bool m_policyIdHasBeenSet =
false;
185 bool m_descriptionHasBeenSet =
false;
188 bool m_stateHasBeenSet =
false;
191 bool m_statusMessageHasBeenSet =
false;
194 bool m_executionRoleArnHasBeenSet =
false;
197 bool m_dateCreatedHasBeenSet =
false;
200 bool m_dateModifiedHasBeenSet =
false;
202 PolicyDetails m_policyDetails;
203 bool m_policyDetailsHasBeenSet =
false;
206 bool m_tagsHasBeenSet =
false;
209 bool m_policyArnHasBeenSet =
false;
211 bool m_defaultPolicy{
false};
212 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