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

The ID of the query logging configuration that you want to associate a VPC * with.

*/ inline const Aws::String& GetResolverQueryLogConfigId() const{ return m_resolverQueryLogConfigId; } /** *

The ID of the query logging configuration that you want to associate a VPC * with.

*/ inline bool ResolverQueryLogConfigIdHasBeenSet() const { return m_resolverQueryLogConfigIdHasBeenSet; } /** *

The ID of the query logging configuration that you want to associate a VPC * with.

*/ inline void SetResolverQueryLogConfigId(const Aws::String& value) { m_resolverQueryLogConfigIdHasBeenSet = true; m_resolverQueryLogConfigId = value; } /** *

The ID of the query logging configuration that you want to associate a VPC * with.

*/ inline void SetResolverQueryLogConfigId(Aws::String&& value) { m_resolverQueryLogConfigIdHasBeenSet = true; m_resolverQueryLogConfigId = std::move(value); } /** *

The ID of the query logging configuration that you want to associate a VPC * with.

*/ inline void SetResolverQueryLogConfigId(const char* value) { m_resolverQueryLogConfigIdHasBeenSet = true; m_resolverQueryLogConfigId.assign(value); } /** *

The ID of the query logging configuration that you want to associate a VPC * with.

*/ inline AssociateResolverQueryLogConfigRequest& WithResolverQueryLogConfigId(const Aws::String& value) { SetResolverQueryLogConfigId(value); return *this;} /** *

The ID of the query logging configuration that you want to associate a VPC * with.

*/ inline AssociateResolverQueryLogConfigRequest& WithResolverQueryLogConfigId(Aws::String&& value) { SetResolverQueryLogConfigId(std::move(value)); return *this;} /** *

The ID of the query logging configuration that you want to associate a VPC * with.

*/ inline AssociateResolverQueryLogConfigRequest& WithResolverQueryLogConfigId(const char* value) { SetResolverQueryLogConfigId(value); return *this;} /** *

The ID of an Amazon VPC that you want this query logging configuration to log * queries for.

The VPCs and the query logging configuration must be * in the same Region.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The ID of an Amazon VPC that you want this query logging configuration to log * queries for.

The VPCs and the query logging configuration must be * in the same Region.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The ID of an Amazon VPC that you want this query logging configuration to log * queries for.

The VPCs and the query logging configuration must be * in the same Region.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The ID of an Amazon VPC that you want this query logging configuration to log * queries for.

The VPCs and the query logging configuration must be * in the same Region.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The ID of an Amazon VPC that you want this query logging configuration to log * queries for.

The VPCs and the query logging configuration must be * in the same Region.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The ID of an Amazon VPC that you want this query logging configuration to log * queries for.

The VPCs and the query logging configuration must be * in the same Region.

*/ inline AssociateResolverQueryLogConfigRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The ID of an Amazon VPC that you want this query logging configuration to log * queries for.

The VPCs and the query logging configuration must be * in the same Region.

*/ inline AssociateResolverQueryLogConfigRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The ID of an Amazon VPC that you want this query logging configuration to log * queries for.

The VPCs and the query logging configuration must be * in the same Region.

*/ inline AssociateResolverQueryLogConfigRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} private: Aws::String m_resolverQueryLogConfigId; bool m_resolverQueryLogConfigIdHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws