7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/resiliencehub/model/DataLocationConstraint.h>
10#include <aws/resiliencehub/model/EstimatedCostTier.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/resiliencehub/model/ResiliencyPolicyTier.h>
14#include <aws/resiliencehub/model/DisruptionType.h>
15#include <aws/resiliencehub/model/FailurePolicy.h>
28namespace ResilienceHub
121 inline void SetPolicyArn(
const char* value) { m_policyArnHasBeenSet =
true; m_policyArn.assign(value); }
135 inline void SetPolicyDescription(
const char* value) { m_policyDescriptionHasBeenSet =
true; m_policyDescription.assign(value); }
149 inline void SetPolicyName(
const char* value) { m_policyNameHasBeenSet =
true; m_policyName.assign(value); }
172 inline ResiliencyPolicy&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
190 bool m_creationTimeHasBeenSet =
false;
193 bool m_dataLocationConstraintHasBeenSet =
false;
196 bool m_estimatedCostTierHasBeenSet =
false;
199 bool m_policyHasBeenSet =
false;
202 bool m_policyArnHasBeenSet =
false;
205 bool m_policyDescriptionHasBeenSet =
false;
208 bool m_policyNameHasBeenSet =
false;
211 bool m_tagsHasBeenSet =
false;
214 bool m_tierHasBeenSet =
false;
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetTier(ResiliencyPolicyTier &&value)
ResiliencyPolicy & AddTags(const Aws::String &key, const Aws::String &value)
ResiliencyPolicy & AddPolicy(const DisruptionType &key, const FailurePolicy &value)
ResiliencyPolicy & WithPolicyArn(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
bool PolicyNameHasBeenSet() const
const Aws::String & GetPolicyArn() const
void SetPolicyArn(const char *value)
ResiliencyPolicy & AddTags(Aws::String &&key, Aws::String &&value)
ResiliencyPolicy & WithPolicyArn(Aws::String &&value)
AWS_RESILIENCEHUB_API ResiliencyPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DataLocationConstraintHasBeenSet() const
ResiliencyPolicy & WithEstimatedCostTier(EstimatedCostTier &&value)
void SetPolicy(Aws::Map< DisruptionType, FailurePolicy > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
bool CreationTimeHasBeenSet() const
void SetPolicyDescription(Aws::String &&value)
ResiliencyPolicy & AddTags(Aws::String &&key, const char *value)
void SetPolicyName(Aws::String &&value)
ResiliencyPolicy & WithDataLocationConstraint(const DataLocationConstraint &value)
bool EstimatedCostTierHasBeenSet() const
ResiliencyPolicy & WithPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataLocationConstraint(DataLocationConstraint &&value)
const EstimatedCostTier & GetEstimatedCostTier() const
const ResiliencyPolicyTier & GetTier() const
ResiliencyPolicy & WithPolicyDescription(const Aws::String &value)
ResiliencyPolicy & AddTags(const char *key, Aws::String &&value)
void SetTier(const ResiliencyPolicyTier &value)
bool TagsHasBeenSet() const
ResiliencyPolicy & WithPolicyName(Aws::String &&value)
ResiliencyPolicy & WithCreationTime(const Aws::Utils::DateTime &value)
const Aws::Map< DisruptionType, FailurePolicy > & GetPolicy() const
ResiliencyPolicy & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ResiliencyPolicy & AddTags(const char *key, const char *value)
ResiliencyPolicy & WithEstimatedCostTier(const EstimatedCostTier &value)
ResiliencyPolicy & WithPolicyName(const Aws::String &value)
const Aws::String & GetPolicyDescription() const
ResiliencyPolicy & WithPolicyDescription(Aws::String &&value)
ResiliencyPolicy & WithPolicyArn(const char *value)
void SetEstimatedCostTier(const EstimatedCostTier &value)
ResiliencyPolicy & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetPolicyDescription(const char *value)
ResiliencyPolicy & WithTier(const ResiliencyPolicyTier &value)
ResiliencyPolicy & AddPolicy(const DisruptionType &key, FailurePolicy &&value)
ResiliencyPolicy & WithPolicyDescription(const char *value)
ResiliencyPolicy & WithCreationTime(Aws::Utils::DateTime &&value)
void SetPolicyName(const Aws::String &value)
void SetEstimatedCostTier(EstimatedCostTier &&value)
ResiliencyPolicy & WithTier(ResiliencyPolicyTier &&value)
void SetPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
ResiliencyPolicy & WithDataLocationConstraint(DataLocationConstraint &&value)
void SetPolicyDescription(const Aws::String &value)
const Aws::String & GetPolicyName() const
ResiliencyPolicy & AddTags(Aws::String &&key, const Aws::String &value)
bool PolicyDescriptionHasBeenSet() const
AWS_RESILIENCEHUB_API ResiliencyPolicy()
void SetDataLocationConstraint(const DataLocationConstraint &value)
ResiliencyPolicy & AddPolicy(DisruptionType &&key, const FailurePolicy &value)
ResiliencyPolicy & WithPolicy(Aws::Map< DisruptionType, FailurePolicy > &&value)
void SetPolicyName(const char *value)
ResiliencyPolicy & AddTags(const Aws::String &key, Aws::String &&value)
ResiliencyPolicy & WithPolicyName(const char *value)
bool PolicyHasBeenSet() const
AWS_RESILIENCEHUB_API ResiliencyPolicy(Aws::Utils::Json::JsonView jsonValue)
const DataLocationConstraint & GetDataLocationConstraint() const
void SetPolicyArn(const Aws::String &value)
bool PolicyArnHasBeenSet() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ResiliencyPolicy & AddPolicy(DisruptionType &&key, FailurePolicy &&value)
void SetPolicyArn(Aws::String &&value)
bool TierHasBeenSet() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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