7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehub/model/DataLocationConstraint.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/resiliencehub/model/ResiliencyPolicyTier.h>
13#include <aws/resiliencehub/model/DisruptionType.h>
14#include <aws/resiliencehub/model/FailurePolicy.h>
16#include <aws/core/utils/UUID.h>
20namespace ResilienceHub
51 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
95 inline void SetPolicyDescription(
const char* value) { m_policyDescriptionHasBeenSet =
true; m_policyDescription.assign(value); }
109 inline void SetPolicyName(
const char* value) { m_policyNameHasBeenSet =
true; m_policyName.assign(value); }
150 bool m_clientTokenHasBeenSet =
false;
153 bool m_dataLocationConstraintHasBeenSet =
false;
156 bool m_policyHasBeenSet =
false;
159 bool m_policyDescriptionHasBeenSet =
false;
162 bool m_policyNameHasBeenSet =
false;
165 bool m_tagsHasBeenSet =
false;
168 bool m_tierHasBeenSet =
false;
CreateResiliencyPolicyRequest & WithPolicyDescription(Aws::String &&value)
const Aws::Map< DisruptionType, FailurePolicy > & GetPolicy() const
void SetPolicyDescription(const Aws::String &value)
CreateResiliencyPolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
bool DataLocationConstraintHasBeenSet() const
void SetPolicyName(Aws::String &&value)
CreateResiliencyPolicyRequest & AddPolicy(DisruptionType &&key, const FailurePolicy &value)
void SetTier(ResiliencyPolicyTier &&value)
CreateResiliencyPolicyRequest & WithDataLocationConstraint(DataLocationConstraint &&value)
CreateResiliencyPolicyRequest & AddPolicy(const DisruptionType &key, const FailurePolicy &value)
CreateResiliencyPolicyRequest & WithClientToken(const Aws::String &value)
CreateResiliencyPolicyRequest & AddTags(Aws::String &&key, const char *value)
void SetClientToken(Aws::String &&value)
CreateResiliencyPolicyRequest & WithPolicyName(const char *value)
CreateResiliencyPolicyRequest & WithTier(const ResiliencyPolicyTier &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateResiliencyPolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateResiliencyPolicyRequest & WithPolicy(Aws::Map< DisruptionType, FailurePolicy > &&value)
const ResiliencyPolicyTier & GetTier() const
CreateResiliencyPolicyRequest & AddPolicy(DisruptionType &&key, FailurePolicy &&value)
bool PolicyDescriptionHasBeenSet() const
void SetClientToken(const char *value)
CreateResiliencyPolicyRequest & AddPolicy(const DisruptionType &key, FailurePolicy &&value)
virtual const char * GetServiceRequestName() const override
CreateResiliencyPolicyRequest & WithPolicyDescription(const char *value)
const Aws::String & GetPolicyDescription() const
bool PolicyHasBeenSet() const
CreateResiliencyPolicyRequest & WithClientToken(Aws::String &&value)
bool TierHasBeenSet() const
CreateResiliencyPolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetPolicyDescription(const char *value)
void SetDataLocationConstraint(const DataLocationConstraint &value)
CreateResiliencyPolicyRequest & WithTier(ResiliencyPolicyTier &&value)
void SetPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
CreateResiliencyPolicyRequest & WithPolicyDescription(const Aws::String &value)
CreateResiliencyPolicyRequest & WithPolicy(const Aws::Map< DisruptionType, FailurePolicy > &value)
bool PolicyNameHasBeenSet() const
bool ClientTokenHasBeenSet() const
bool TagsHasBeenSet() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetClientToken(const Aws::String &value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
CreateResiliencyPolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTier(const ResiliencyPolicyTier &value)
void SetPolicyName(const Aws::String &value)
const Aws::String & GetPolicyName() const
const DataLocationConstraint & GetDataLocationConstraint() const
CreateResiliencyPolicyRequest & WithClientToken(const char *value)
CreateResiliencyPolicyRequest & AddTags(const char *key, const char *value)
void SetPolicyDescription(Aws::String &&value)
CreateResiliencyPolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetDataLocationConstraint(DataLocationConstraint &&value)
CreateResiliencyPolicyRequest & WithPolicyName(Aws::String &&value)
CreateResiliencyPolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetClientToken() const
AWS_RESILIENCEHUB_API CreateResiliencyPolicyRequest()
void SetPolicyName(const char *value)
CreateResiliencyPolicyRequest & WithDataLocationConstraint(const DataLocationConstraint &value)
CreateResiliencyPolicyRequest & WithPolicyName(const Aws::String &value)
CreateResiliencyPolicyRequest & AddTags(const char *key, Aws::String &&value)
void SetPolicy(Aws::Map< DisruptionType, FailurePolicy > &&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