/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace ResilienceHub { namespace Model { /** */ class UpdateResiliencyPolicyRequest : public ResilienceHubRequest { public: AWS_RESILIENCEHUB_API UpdateResiliencyPolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateResiliencyPolicy"; } AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override; /** *

Specifies a high-level geographical location constraint for where your * resilience policy data can be stored.

*/ inline const DataLocationConstraint& GetDataLocationConstraint() const{ return m_dataLocationConstraint; } /** *

Specifies a high-level geographical location constraint for where your * resilience policy data can be stored.

*/ inline bool DataLocationConstraintHasBeenSet() const { return m_dataLocationConstraintHasBeenSet; } /** *

Specifies a high-level geographical location constraint for where your * resilience policy data can be stored.

*/ inline void SetDataLocationConstraint(const DataLocationConstraint& value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = value; } /** *

Specifies a high-level geographical location constraint for where your * resilience policy data can be stored.

*/ inline void SetDataLocationConstraint(DataLocationConstraint&& value) { m_dataLocationConstraintHasBeenSet = true; m_dataLocationConstraint = std::move(value); } /** *

Specifies a high-level geographical location constraint for where your * resilience policy data can be stored.

*/ inline UpdateResiliencyPolicyRequest& WithDataLocationConstraint(const DataLocationConstraint& value) { SetDataLocationConstraint(value); return *this;} /** *

Specifies a high-level geographical location constraint for where your * resilience policy data can be stored.

*/ inline UpdateResiliencyPolicyRequest& WithDataLocationConstraint(DataLocationConstraint&& value) { SetDataLocationConstraint(std::move(value)); return *this;} /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline const Aws::Map& GetPolicy() const{ return m_policy; } /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline void SetPolicy(const Aws::Map& value) { m_policyHasBeenSet = true; m_policy = value; } /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline void SetPolicy(Aws::Map&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline UpdateResiliencyPolicyRequest& WithPolicy(const Aws::Map& value) { SetPolicy(value); return *this;} /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline UpdateResiliencyPolicyRequest& WithPolicy(Aws::Map&& value) { SetPolicy(std::move(value)); return *this;} /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline UpdateResiliencyPolicyRequest& AddPolicy(const DisruptionType& key, const FailurePolicy& value) { m_policyHasBeenSet = true; m_policy.emplace(key, value); return *this; } /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline UpdateResiliencyPolicyRequest& AddPolicy(DisruptionType&& key, const FailurePolicy& value) { m_policyHasBeenSet = true; m_policy.emplace(std::move(key), value); return *this; } /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline UpdateResiliencyPolicyRequest& AddPolicy(const DisruptionType& key, FailurePolicy&& value) { m_policyHasBeenSet = true; m_policy.emplace(key, std::move(value)); return *this; } /** *

The type of resiliency policy to be created, including the recovery time * objective (RTO) and recovery point objective (RPO) in seconds.

*/ inline UpdateResiliencyPolicyRequest& AddPolicy(DisruptionType&& key, FailurePolicy&& value) { m_policyHasBeenSet = true; m_policy.emplace(std::move(key), std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the resiliency policy. The format for this * ARN is: * arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline const Aws::String& GetPolicyArn() const{ return m_policyArn; } /** *

The Amazon Resource Name (ARN) of the resiliency policy. The format for this * ARN is: * arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the resiliency policy. The format for this * ARN is: * arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; } /** *

The Amazon Resource Name (ARN) of the resiliency policy. The format for this * ARN is: * arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the resiliency policy. The format for this * ARN is: * arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the resiliency policy. The format for this * ARN is: * arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline UpdateResiliencyPolicyRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the resiliency policy. The format for this * ARN is: * arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline UpdateResiliencyPolicyRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the resiliency policy. The format for this * ARN is: * arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. * For more information about ARNs, see * Amazon Resource Names (ARNs) in the AWS General Reference guide.

*/ inline UpdateResiliencyPolicyRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;} /** *

The description for the policy.

*/ inline const Aws::String& GetPolicyDescription() const{ return m_policyDescription; } /** *

The description for the policy.

*/ inline bool PolicyDescriptionHasBeenSet() const { return m_policyDescriptionHasBeenSet; } /** *

The description for the policy.

*/ inline void SetPolicyDescription(const Aws::String& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = value; } /** *

The description for the policy.

*/ inline void SetPolicyDescription(Aws::String&& value) { m_policyDescriptionHasBeenSet = true; m_policyDescription = std::move(value); } /** *

The description for the policy.

*/ inline void SetPolicyDescription(const char* value) { m_policyDescriptionHasBeenSet = true; m_policyDescription.assign(value); } /** *

The description for the policy.

*/ inline UpdateResiliencyPolicyRequest& WithPolicyDescription(const Aws::String& value) { SetPolicyDescription(value); return *this;} /** *

The description for the policy.

*/ inline UpdateResiliencyPolicyRequest& WithPolicyDescription(Aws::String&& value) { SetPolicyDescription(std::move(value)); return *this;} /** *

The description for the policy.

*/ inline UpdateResiliencyPolicyRequest& WithPolicyDescription(const char* value) { SetPolicyDescription(value); return *this;} /** *

The name of the policy

*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *

The name of the policy

*/ inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } /** *

The name of the policy

*/ inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } /** *

The name of the policy

*/ inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } /** *

The name of the policy

*/ inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } /** *

The name of the policy

*/ inline UpdateResiliencyPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *

The name of the policy

*/ inline UpdateResiliencyPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *

The name of the policy

*/ inline UpdateResiliencyPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *

The tier for this resiliency policy, ranging from the highest severity * (MissionCritical) to lowest (NonCritical).

*/ inline const ResiliencyPolicyTier& GetTier() const{ return m_tier; } /** *

The tier for this resiliency policy, ranging from the highest severity * (MissionCritical) to lowest (NonCritical).

*/ inline bool TierHasBeenSet() const { return m_tierHasBeenSet; } /** *

The tier for this resiliency policy, ranging from the highest severity * (MissionCritical) to lowest (NonCritical).

*/ inline void SetTier(const ResiliencyPolicyTier& value) { m_tierHasBeenSet = true; m_tier = value; } /** *

The tier for this resiliency policy, ranging from the highest severity * (MissionCritical) to lowest (NonCritical).

*/ inline void SetTier(ResiliencyPolicyTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); } /** *

The tier for this resiliency policy, ranging from the highest severity * (MissionCritical) to lowest (NonCritical).

*/ inline UpdateResiliencyPolicyRequest& WithTier(const ResiliencyPolicyTier& value) { SetTier(value); return *this;} /** *

The tier for this resiliency policy, ranging from the highest severity * (MissionCritical) to lowest (NonCritical).

*/ inline UpdateResiliencyPolicyRequest& WithTier(ResiliencyPolicyTier&& value) { SetTier(std::move(value)); return *this;} private: DataLocationConstraint m_dataLocationConstraint; bool m_dataLocationConstraintHasBeenSet = false; Aws::Map m_policy; bool m_policyHasBeenSet = false; Aws::String m_policyArn; bool m_policyArnHasBeenSet = false; Aws::String m_policyDescription; bool m_policyDescriptionHasBeenSet = false; Aws::String m_policyName; bool m_policyNameHasBeenSet = false; ResiliencyPolicyTier m_tier; bool m_tierHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws