/** * 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 AWS_ROUTE53RESOLVER_API PutResolverRulePolicyRequest : public Route53ResolverRequest { public: 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::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the account that you want to grant * permissions to.

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

The Amazon Resource Name (ARN) of the account that you want to grant * permissions to.

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

The Amazon Resource Name (ARN) of the account that you want to grant * permissions to.

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

The Amazon Resource Name (ARN) of the account that you want to grant * permissions to.

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

The Amazon Resource Name (ARN) of the account that you want to grant * permissions to.

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

The Amazon Resource Name (ARN) of the account that you want to grant * permissions to.

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

The Amazon Resource Name (ARN) of the account that you want to grant * permissions to.

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

The Amazon Resource Name (ARN) of the account that you want to grant * permissions to.

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

An AWS Identity and Access Management policy statement that lists the * permissions that you want to grant to another AWS account.

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

An AWS Identity and Access Management policy statement that lists the * permissions that you want to grant to another AWS account.

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

An AWS Identity and Access Management policy statement that lists the * permissions that you want to grant to another AWS account.

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

An AWS Identity and Access Management policy statement that lists the * permissions that you want to grant to another AWS account.

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

An AWS Identity and Access Management policy statement that lists the * permissions that you want to grant to another AWS account.

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

An AWS Identity and Access Management policy statement that lists the * permissions that you want to grant to another AWS account.

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

An AWS Identity and Access Management policy statement that lists the * permissions that you want to grant to another AWS account.

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

An AWS Identity and Access Management policy statement that lists the * permissions that you want to grant to another AWS account.

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