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

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

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

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

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

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

*/ 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 share rules * with.

*/ 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 share rules * with.

*/ 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 share rules * with.

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

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

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

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

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

An Identity and Access Management policy statement that lists the query * logging configurations 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 Actions section of the * statement:

  • * route53resolver:AssociateResolverQueryLogConfig

  • * route53resolver:DisassociateResolverQueryLogConfig

  • *

    route53resolver:ListResolverQueryLogConfigs

*

In the Resource section of the statement, you specify the ARNs * for the query logging configurations that you want to share with the account * that you specified in Arn.

*/ inline const Aws::String& GetResolverQueryLogConfigPolicy() const{ return m_resolverQueryLogConfigPolicy; } /** *

An Identity and Access Management policy statement that lists the query * logging configurations 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 Actions section of the * statement:

  • * route53resolver:AssociateResolverQueryLogConfig

  • * route53resolver:DisassociateResolverQueryLogConfig

  • *

    route53resolver:ListResolverQueryLogConfigs

*

In the Resource section of the statement, you specify the ARNs * for the query logging configurations that you want to share with the account * that you specified in Arn.

*/ inline bool ResolverQueryLogConfigPolicyHasBeenSet() const { return m_resolverQueryLogConfigPolicyHasBeenSet; } /** *

An Identity and Access Management policy statement that lists the query * logging configurations 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 Actions section of the * statement:

  • * route53resolver:AssociateResolverQueryLogConfig

  • * route53resolver:DisassociateResolverQueryLogConfig

  • *

    route53resolver:ListResolverQueryLogConfigs

*

In the Resource section of the statement, you specify the ARNs * for the query logging configurations that you want to share with the account * that you specified in Arn.

*/ inline void SetResolverQueryLogConfigPolicy(const Aws::String& value) { m_resolverQueryLogConfigPolicyHasBeenSet = true; m_resolverQueryLogConfigPolicy = value; } /** *

An Identity and Access Management policy statement that lists the query * logging configurations 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 Actions section of the * statement:

  • * route53resolver:AssociateResolverQueryLogConfig

  • * route53resolver:DisassociateResolverQueryLogConfig

  • *

    route53resolver:ListResolverQueryLogConfigs

*

In the Resource section of the statement, you specify the ARNs * for the query logging configurations that you want to share with the account * that you specified in Arn.

*/ inline void SetResolverQueryLogConfigPolicy(Aws::String&& value) { m_resolverQueryLogConfigPolicyHasBeenSet = true; m_resolverQueryLogConfigPolicy = std::move(value); } /** *

An Identity and Access Management policy statement that lists the query * logging configurations 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 Actions section of the * statement:

  • * route53resolver:AssociateResolverQueryLogConfig

  • * route53resolver:DisassociateResolverQueryLogConfig

  • *

    route53resolver:ListResolverQueryLogConfigs

*

In the Resource section of the statement, you specify the ARNs * for the query logging configurations that you want to share with the account * that you specified in Arn.

*/ inline void SetResolverQueryLogConfigPolicy(const char* value) { m_resolverQueryLogConfigPolicyHasBeenSet = true; m_resolverQueryLogConfigPolicy.assign(value); } /** *

An Identity and Access Management policy statement that lists the query * logging configurations 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 Actions section of the * statement:

  • * route53resolver:AssociateResolverQueryLogConfig

  • * route53resolver:DisassociateResolverQueryLogConfig

  • *

    route53resolver:ListResolverQueryLogConfigs

*

In the Resource section of the statement, you specify the ARNs * for the query logging configurations that you want to share with the account * that you specified in Arn.

*/ inline PutResolverQueryLogConfigPolicyRequest& WithResolverQueryLogConfigPolicy(const Aws::String& value) { SetResolverQueryLogConfigPolicy(value); return *this;} /** *

An Identity and Access Management policy statement that lists the query * logging configurations 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 Actions section of the * statement:

  • * route53resolver:AssociateResolverQueryLogConfig

  • * route53resolver:DisassociateResolverQueryLogConfig

  • *

    route53resolver:ListResolverQueryLogConfigs

*

In the Resource section of the statement, you specify the ARNs * for the query logging configurations that you want to share with the account * that you specified in Arn.

*/ inline PutResolverQueryLogConfigPolicyRequest& WithResolverQueryLogConfigPolicy(Aws::String&& value) { SetResolverQueryLogConfigPolicy(std::move(value)); return *this;} /** *

An Identity and Access Management policy statement that lists the query * logging configurations 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 Actions section of the * statement:

  • * route53resolver:AssociateResolverQueryLogConfig

  • * route53resolver:DisassociateResolverQueryLogConfig

  • *

    route53resolver:ListResolverQueryLogConfigs

*

In the Resource section of the statement, you specify the ARNs * for the query logging configurations that you want to share with the account * that you specified in Arn.

*/ inline PutResolverQueryLogConfigPolicyRequest& WithResolverQueryLogConfigPolicy(const char* value) { SetResolverQueryLogConfigPolicy(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_resolverQueryLogConfigPolicy; bool m_resolverQueryLogConfigPolicyHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws