/** * 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 namespace Aws { namespace Route53Resolver { namespace Model { /** */ class AWS_ROUTE53RESOLVER_API CreateResolverEndpointRequest : public Route53ResolverRequest { public: CreateResolverEndpointRequest(); // 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 "CreateResolverEndpoint"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of executing the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of executing the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of executing the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of executing the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of executing the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of executing the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverEndpointRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of executing the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverEndpointRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of executing the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverEndpointRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline CreateResolverEndpointRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline CreateResolverEndpointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A friendly name that lets you easily find a configuration in the Resolver * dashboard in the Route 53 console.

*/ inline CreateResolverEndpointRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline CreateResolverEndpointRequest& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline CreateResolverEndpointRequest& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline CreateResolverEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline CreateResolverEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The ID of one or more security groups that you want to use to control access * to this VPC. The security group that you specify must include one or more * inbound rules (for inbound resolver endpoints) or outbound rules (for outbound * resolver endpoints).

*/ inline CreateResolverEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

Specify the applicable value:

  • INBOUND: * Resolver forwards DNS queries to the DNS service for a VPC from your network or * another VPC

  • OUTBOUND: Resolver forwards DNS * queries from the DNS service for a VPC to your network or another VPC

  • *
*/ inline const ResolverEndpointDirection& GetDirection() const{ return m_direction; } /** *

Specify the applicable value:

  • INBOUND: * Resolver forwards DNS queries to the DNS service for a VPC from your network or * another VPC

  • OUTBOUND: Resolver forwards DNS * queries from the DNS service for a VPC to your network or another VPC

  • *
*/ inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; } /** *

Specify the applicable value:

  • INBOUND: * Resolver forwards DNS queries to the DNS service for a VPC from your network or * another VPC

  • OUTBOUND: Resolver forwards DNS * queries from the DNS service for a VPC to your network or another VPC

  • *
*/ inline void SetDirection(const ResolverEndpointDirection& value) { m_directionHasBeenSet = true; m_direction = value; } /** *

Specify the applicable value:

  • INBOUND: * Resolver forwards DNS queries to the DNS service for a VPC from your network or * another VPC

  • OUTBOUND: Resolver forwards DNS * queries from the DNS service for a VPC to your network or another VPC

  • *
*/ inline void SetDirection(ResolverEndpointDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); } /** *

Specify the applicable value:

  • INBOUND: * Resolver forwards DNS queries to the DNS service for a VPC from your network or * another VPC

  • OUTBOUND: Resolver forwards DNS * queries from the DNS service for a VPC to your network or another VPC

  • *
*/ inline CreateResolverEndpointRequest& WithDirection(const ResolverEndpointDirection& value) { SetDirection(value); return *this;} /** *

Specify the applicable value:

  • INBOUND: * Resolver forwards DNS queries to the DNS service for a VPC from your network or * another VPC

  • OUTBOUND: Resolver forwards DNS * queries from the DNS service for a VPC to your network or another VPC

  • *
*/ inline CreateResolverEndpointRequest& WithDirection(ResolverEndpointDirection&& value) { SetDirection(std::move(value)); return *this;} /** *

The subnets and IP addresses in your VPC that you want DNS queries to pass * through on the way from your VPCs to your network (for outbound endpoints) or on * the way from your network to your VPCs (for inbound resolver endpoints).

*/ inline const Aws::Vector& GetIpAddresses() const{ return m_ipAddresses; } /** *

The subnets and IP addresses in your VPC that you want DNS queries to pass * through on the way from your VPCs to your network (for outbound endpoints) or on * the way from your network to your VPCs (for inbound resolver endpoints).

*/ inline bool IpAddressesHasBeenSet() const { return m_ipAddressesHasBeenSet; } /** *

The subnets and IP addresses in your VPC that you want DNS queries to pass * through on the way from your VPCs to your network (for outbound endpoints) or on * the way from your network to your VPCs (for inbound resolver endpoints).

*/ inline void SetIpAddresses(const Aws::Vector& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses = value; } /** *

The subnets and IP addresses in your VPC that you want DNS queries to pass * through on the way from your VPCs to your network (for outbound endpoints) or on * the way from your network to your VPCs (for inbound resolver endpoints).

*/ inline void SetIpAddresses(Aws::Vector&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses = std::move(value); } /** *

The subnets and IP addresses in your VPC that you want DNS queries to pass * through on the way from your VPCs to your network (for outbound endpoints) or on * the way from your network to your VPCs (for inbound resolver endpoints).

*/ inline CreateResolverEndpointRequest& WithIpAddresses(const Aws::Vector& value) { SetIpAddresses(value); return *this;} /** *

The subnets and IP addresses in your VPC that you want DNS queries to pass * through on the way from your VPCs to your network (for outbound endpoints) or on * the way from your network to your VPCs (for inbound resolver endpoints).

*/ inline CreateResolverEndpointRequest& WithIpAddresses(Aws::Vector&& value) { SetIpAddresses(std::move(value)); return *this;} /** *

The subnets and IP addresses in your VPC that you want DNS queries to pass * through on the way from your VPCs to your network (for outbound endpoints) or on * the way from your network to your VPCs (for inbound resolver endpoints).

*/ inline CreateResolverEndpointRequest& AddIpAddresses(const IpAddressRequest& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses.push_back(value); return *this; } /** *

The subnets and IP addresses in your VPC that you want DNS queries to pass * through on the way from your VPCs to your network (for outbound endpoints) or on * the way from your network to your VPCs (for inbound resolver endpoints).

*/ inline CreateResolverEndpointRequest& AddIpAddresses(IpAddressRequest&& value) { m_ipAddressesHasBeenSet = true; m_ipAddresses.push_back(std::move(value)); return *this; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline CreateResolverEndpointRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline CreateResolverEndpointRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline CreateResolverEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of the tag keys and values that you want to associate with the * endpoint.

*/ inline CreateResolverEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet; ResolverEndpointDirection m_direction; bool m_directionHasBeenSet; Aws::Vector m_ipAddresses; bool m_ipAddressesHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws