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>
53 inline void SetPolicyId(
const char* value) { m_policyIdHasBeenSet =
true; m_policyId.assign(value); }
67 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
93 inline void SetStatusMessage(
const char* value) { m_statusMessageHasBeenSet =
true; m_statusMessage.assign(value); }
108 inline void SetExecutionRoleArn(
const char* value) { m_executionRoleArnHasBeenSet =
true; m_executionRoleArn.assign(value); }
166 inline LifecyclePolicy&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
177 inline void SetPolicyArn(
const char* value) { m_policyArnHasBeenSet =
true; m_policyArn.assign(value); }
192 inline void SetDefaultPolicy(
bool value) { m_defaultPolicyHasBeenSet =
true; m_defaultPolicy = value; }
198 bool m_policyIdHasBeenSet =
false;
201 bool m_descriptionHasBeenSet =
false;
204 bool m_stateHasBeenSet =
false;
207 bool m_statusMessageHasBeenSet =
false;
210 bool m_executionRoleArnHasBeenSet =
false;
213 bool m_dateCreatedHasBeenSet =
false;
216 bool m_dateModifiedHasBeenSet =
false;
219 bool m_policyDetailsHasBeenSet =
false;
222 bool m_tagsHasBeenSet =
false;
225 bool m_policyArnHasBeenSet =
false;
227 bool m_defaultPolicy;
228 bool m_defaultPolicyHasBeenSet =
false;
LifecyclePolicy & WithState(GettablePolicyStateValues &&value)
bool PolicyArnHasBeenSet() const
void SetPolicyDetails(PolicyDetails &&value)
LifecyclePolicy & WithStatusMessage(const Aws::String &value)
bool DateModifiedHasBeenSet() const
LifecyclePolicy & WithPolicyDetails(PolicyDetails &&value)
LifecyclePolicy & WithDateCreated(const Aws::Utils::DateTime &value)
AWS_DLM_API LifecyclePolicy()
const Aws::Utils::DateTime & GetDateModified() const
LifecyclePolicy & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
bool ExecutionRoleArnHasBeenSet() const
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
bool DescriptionHasBeenSet() 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)
bool StatusMessageHasBeenSet() const
LifecyclePolicy & WithDescription(const char *value)
LifecyclePolicy & WithPolicyArn(const char *value)
LifecyclePolicy & WithStatusMessage(Aws::String &&value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
bool PolicyIdHasBeenSet() 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)
bool TagsHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool PolicyDetailsHasBeenSet() 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)
bool DefaultPolicyHasBeenSet() const
bool DateCreatedHasBeenSet() const
const Aws::String & GetExecutionRoleArn() const
const Aws::String & GetPolicyId() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
bool StateHasBeenSet() const
void SetDefaultPolicy(bool 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
bool GetDefaultPolicy() 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)
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