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
60 template<
typename CreationTimeT = Aws::Utils::DateTime>
61 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
62 template<
typename CreationTimeT = Aws::Utils::DateTime>
93 template<
typename PolicyT = Aws::Map<DisruptionType, FailurePolicy>>
94 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet =
true; m_policy = std::forward<PolicyT>(value); }
95 template<
typename PolicyT = Aws::Map<DisruptionType, FailurePolicy>>
98 m_policyHasBeenSet =
true; m_policy.emplace(key, value);
return *
this;
114 template<
typename PolicyArnT = Aws::String>
115 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet =
true; m_policyArn = std::forward<PolicyArnT>(value); }
116 template<
typename PolicyArnT = Aws::String>
126 template<
typename PolicyDescriptionT = Aws::String>
127 void SetPolicyDescription(PolicyDescriptionT&& value) { m_policyDescriptionHasBeenSet =
true; m_policyDescription = std::forward<PolicyDescriptionT>(value); }
128 template<
typename PolicyDescriptionT = Aws::String>
138 template<
typename PolicyNameT = Aws::String>
139 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet =
true; m_policyName = std::forward<PolicyNameT>(value); }
140 template<
typename PolicyNameT = Aws::String>
151 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
153 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
157 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
174 bool m_creationTimeHasBeenSet =
false;
177 bool m_dataLocationConstraintHasBeenSet =
false;
180 bool m_estimatedCostTierHasBeenSet =
false;
183 bool m_policyHasBeenSet =
false;
186 bool m_policyArnHasBeenSet =
false;
189 bool m_policyDescriptionHasBeenSet =
false;
192 bool m_policyNameHasBeenSet =
false;
195 bool m_tagsHasBeenSet =
false;
198 bool m_tierHasBeenSet =
false;
void SetEstimatedCostTier(EstimatedCostTier value)
void SetPolicy(PolicyT &&value)
bool PolicyNameHasBeenSet() const
void SetPolicyDescription(PolicyDescriptionT &&value)
const Aws::String & GetPolicyArn() const
AWS_RESILIENCEHUB_API ResiliencyPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DataLocationConstraintHasBeenSet() const
void SetPolicyArn(PolicyArnT &&value)
bool CreationTimeHasBeenSet() const
EstimatedCostTier GetEstimatedCostTier() const
void SetCreationTime(CreationTimeT &&value)
ResiliencyPolicy & WithDataLocationConstraint(DataLocationConstraint value)
ResiliencyPolicy & WithPolicyArn(PolicyArnT &&value)
ResiliencyPolicyTier GetTier() const
AWS_RESILIENCEHUB_API ResiliencyPolicy()=default
void SetPolicyName(PolicyNameT &&value)
bool EstimatedCostTierHasBeenSet() const
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ResiliencyPolicy & WithTags(TagsT &&value)
DataLocationConstraint GetDataLocationConstraint() const
bool TagsHasBeenSet() const
const Aws::Map< DisruptionType, FailurePolicy > & GetPolicy() const
const Aws::String & GetPolicyDescription() const
ResiliencyPolicy & WithCreationTime(CreationTimeT &&value)
void SetTier(ResiliencyPolicyTier value)
ResiliencyPolicy & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetPolicyName() const
bool PolicyDescriptionHasBeenSet() const
ResiliencyPolicy & WithPolicyDescription(PolicyDescriptionT &&value)
ResiliencyPolicy & WithEstimatedCostTier(EstimatedCostTier value)
ResiliencyPolicy & WithPolicyName(PolicyNameT &&value)
ResiliencyPolicy & AddPolicy(DisruptionType key, FailurePolicy value)
bool PolicyHasBeenSet() const
AWS_RESILIENCEHUB_API ResiliencyPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetTags(TagsT &&value)
bool PolicyArnHasBeenSet() const
ResiliencyPolicy & WithPolicy(PolicyT &&value)
bool TierHasBeenSet() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDataLocationConstraint(DataLocationConstraint value)
ResiliencyPolicy & WithTier(ResiliencyPolicyTier 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