/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Route53Resolver { namespace Model { /** */ class PutResolverRulePolicyRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API PutResolverRulePolicyRequest(); // 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 "PutResolverRulePolicy"; } AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the rule that you want to share with * another account.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the rule that you want to share with * another account.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the rule that you want to share with * another account.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the rule that you want to share with * another account.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the rule that you want to share with * another account.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the rule that you want to share with * another account.

*/ inline PutResolverRulePolicyRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the rule that you want to share with * another account.

*/ inline PutResolverRulePolicyRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the rule that you want to share with * another account.

*/ inline PutResolverRulePolicyRequest& WithArn(const char* value) { SetArn(value); return *this;} /** *

An Identity and Access Management policy statement that lists the rules that * you want to share with another Amazon Web Services account and the operations * that you want the account to be able to perform. You can specify the following * operations in the Action section of the statement:

  • *

    route53resolver:GetResolverRule

  • * route53resolver:AssociateResolverRule

  • * route53resolver:DisassociateResolverRule

  • * route53resolver:ListResolverRules

  • * route53resolver:ListResolverRuleAssociations

In * the Resource section of the statement, specify the ARN for the rule * that you want to share with another account. Specify the same ARN that you * specified in Arn.

*/ inline const Aws::String& GetResolverRulePolicy() const{ return m_resolverRulePolicy; } /** *

An Identity and Access Management policy statement that lists the rules that * you want to share with another Amazon Web Services account and the operations * that you want the account to be able to perform. You can specify the following * operations in the Action section of the statement:

  • *

    route53resolver:GetResolverRule

  • * route53resolver:AssociateResolverRule

  • * route53resolver:DisassociateResolverRule

  • * route53resolver:ListResolverRules

  • * route53resolver:ListResolverRuleAssociations

In * the Resource section of the statement, specify the ARN for the rule * that you want to share with another account. Specify the same ARN that you * specified in Arn.

*/ inline bool ResolverRulePolicyHasBeenSet() const { return m_resolverRulePolicyHasBeenSet; } /** *

An Identity and Access Management policy statement that lists the rules that * you want to share with another Amazon Web Services account and the operations * that you want the account to be able to perform. You can specify the following * operations in the Action section of the statement:

  • *

    route53resolver:GetResolverRule

  • * route53resolver:AssociateResolverRule

  • * route53resolver:DisassociateResolverRule

  • * route53resolver:ListResolverRules

  • * route53resolver:ListResolverRuleAssociations

In * the Resource section of the statement, specify the ARN for the rule * that you want to share with another account. Specify the same ARN that you * specified in Arn.

*/ inline void SetResolverRulePolicy(const Aws::String& value) { m_resolverRulePolicyHasBeenSet = true; m_resolverRulePolicy = value; } /** *

An Identity and Access Management policy statement that lists the rules that * you want to share with another Amazon Web Services account and the operations * that you want the account to be able to perform. You can specify the following * operations in the Action section of the statement:

  • *

    route53resolver:GetResolverRule

  • * route53resolver:AssociateResolverRule

  • * route53resolver:DisassociateResolverRule

  • * route53resolver:ListResolverRules

  • * route53resolver:ListResolverRuleAssociations

In * the Resource section of the statement, specify the ARN for the rule * that you want to share with another account. Specify the same ARN that you * specified in Arn.

*/ inline void SetResolverRulePolicy(Aws::String&& value) { m_resolverRulePolicyHasBeenSet = true; m_resolverRulePolicy = std::move(value); } /** *

An Identity and Access Management policy statement that lists the rules that * you want to share with another Amazon Web Services account and the operations * that you want the account to be able to perform. You can specify the following * operations in the Action section of the statement:

  • *

    route53resolver:GetResolverRule

  • * route53resolver:AssociateResolverRule

  • * route53resolver:DisassociateResolverRule

  • * route53resolver:ListResolverRules

  • * route53resolver:ListResolverRuleAssociations

In * the Resource section of the statement, specify the ARN for the rule * that you want to share with another account. Specify the same ARN that you * specified in Arn.

*/ inline void SetResolverRulePolicy(const char* value) { m_resolverRulePolicyHasBeenSet = true; m_resolverRulePolicy.assign(value); } /** *

An Identity and Access Management policy statement that lists the rules that * you want to share with another Amazon Web Services account and the operations * that you want the account to be able to perform. You can specify the following * operations in the Action section of the statement:

  • *

    route53resolver:GetResolverRule

  • * route53resolver:AssociateResolverRule

  • * route53resolver:DisassociateResolverRule

  • * route53resolver:ListResolverRules

  • * route53resolver:ListResolverRuleAssociations

In * the Resource section of the statement, specify the ARN for the rule * that you want to share with another account. Specify the same ARN that you * specified in Arn.

*/ inline PutResolverRulePolicyRequest& WithResolverRulePolicy(const Aws::String& value) { SetResolverRulePolicy(value); return *this;} /** *

An Identity and Access Management policy statement that lists the rules that * you want to share with another Amazon Web Services account and the operations * that you want the account to be able to perform. You can specify the following * operations in the Action section of the statement:

  • *

    route53resolver:GetResolverRule

  • * route53resolver:AssociateResolverRule

  • * route53resolver:DisassociateResolverRule

  • * route53resolver:ListResolverRules

  • * route53resolver:ListResolverRuleAssociations

In * the Resource section of the statement, specify the ARN for the rule * that you want to share with another account. Specify the same ARN that you * specified in Arn.

*/ inline PutResolverRulePolicyRequest& WithResolverRulePolicy(Aws::String&& value) { SetResolverRulePolicy(std::move(value)); return *this;} /** *

An Identity and Access Management policy statement that lists the rules that * you want to share with another Amazon Web Services account and the operations * that you want the account to be able to perform. You can specify the following * operations in the Action section of the statement:

  • *

    route53resolver:GetResolverRule

  • * route53resolver:AssociateResolverRule

  • * route53resolver:DisassociateResolverRule

  • * route53resolver:ListResolverRules

  • * route53resolver:ListResolverRuleAssociations

In * the Resource section of the statement, specify the ARN for the rule * that you want to share with another account. Specify the same ARN that you * specified in Arn.

*/ inline PutResolverRulePolicyRequest& WithResolverRulePolicy(const char* value) { SetResolverRulePolicy(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_resolverRulePolicy; bool m_resolverRulePolicyHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws