/** * 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 #include namespace Aws { namespace Route53Resolver { namespace Model { /** */ class CreateResolverEndpointRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API 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_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API 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 running 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 running 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 running 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 running 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 running 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 running 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 running 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 running 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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). Inbound and outbound rules must allow TCP and UDP access. * For inbound access, open port 53. For outbound access, open the port that you're * using for DNS queries on your network.

*/ 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

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

*/ 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

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

*/ 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

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

*/ 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

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

*/ 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

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

*/ 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

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

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

The subnets and IP addresses in your VPC that DNS queries originate from (for * outbound endpoints) or that you forward DNS queries to (for inbound endpoints). * The subnet ID uniquely identifies a VPC.

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

The subnets and IP addresses in your VPC that DNS queries originate from (for * outbound endpoints) or that you forward DNS queries to (for inbound endpoints). * The subnet ID uniquely identifies a VPC.

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

The subnets and IP addresses in your VPC that DNS queries originate from (for * outbound endpoints) or that you forward DNS queries to (for inbound endpoints). * The subnet ID uniquely identifies a VPC.

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

The subnets and IP addresses in your VPC that DNS queries originate from (for * outbound endpoints) or that you forward DNS queries to (for inbound endpoints). * The subnet ID uniquely identifies a VPC.

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

The subnets and IP addresses in your VPC that DNS queries originate from (for * outbound endpoints) or that you forward DNS queries to (for inbound endpoints). * The subnet ID uniquely identifies a VPC.

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

The subnets and IP addresses in your VPC that DNS queries originate from (for * outbound endpoints) or that you forward DNS queries to (for inbound endpoints). * The subnet ID uniquely identifies a VPC.

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

The subnets and IP addresses in your VPC that DNS queries originate from (for * outbound endpoints) or that you forward DNS queries to (for inbound endpoints). * The subnet ID uniquely identifies a VPC.

*/ 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 DNS queries originate from (for * outbound endpoints) or that you forward DNS queries to (for inbound endpoints). * The subnet ID uniquely identifies a VPC.

*/ 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; } /** *

For the endpoint type you can choose either IPv4, IPv6, or dual-stack. A * dual-stack endpoint means that it will resolve via both IPv4 and IPv6. This * endpoint type is applied to all IP addresses.

*/ inline const ResolverEndpointType& GetResolverEndpointType() const{ return m_resolverEndpointType; } /** *

For the endpoint type you can choose either IPv4, IPv6, or dual-stack. A * dual-stack endpoint means that it will resolve via both IPv4 and IPv6. This * endpoint type is applied to all IP addresses.

*/ inline bool ResolverEndpointTypeHasBeenSet() const { return m_resolverEndpointTypeHasBeenSet; } /** *

For the endpoint type you can choose either IPv4, IPv6, or dual-stack. A * dual-stack endpoint means that it will resolve via both IPv4 and IPv6. This * endpoint type is applied to all IP addresses.

*/ inline void SetResolverEndpointType(const ResolverEndpointType& value) { m_resolverEndpointTypeHasBeenSet = true; m_resolverEndpointType = value; } /** *

For the endpoint type you can choose either IPv4, IPv6, or dual-stack. A * dual-stack endpoint means that it will resolve via both IPv4 and IPv6. This * endpoint type is applied to all IP addresses.

*/ inline void SetResolverEndpointType(ResolverEndpointType&& value) { m_resolverEndpointTypeHasBeenSet = true; m_resolverEndpointType = std::move(value); } /** *

For the endpoint type you can choose either IPv4, IPv6, or dual-stack. A * dual-stack endpoint means that it will resolve via both IPv4 and IPv6. This * endpoint type is applied to all IP addresses.

*/ inline CreateResolverEndpointRequest& WithResolverEndpointType(const ResolverEndpointType& value) { SetResolverEndpointType(value); return *this;} /** *

For the endpoint type you can choose either IPv4, IPv6, or dual-stack. A * dual-stack endpoint means that it will resolve via both IPv4 and IPv6. This * endpoint type is applied to all IP addresses.

*/ inline CreateResolverEndpointRequest& WithResolverEndpointType(ResolverEndpointType&& value) { SetResolverEndpointType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

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

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

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

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must * also specify a value for the PreferredInstanceType.

*/ inline CreateResolverEndpointRequest& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;} /** *

The instance type. If you specify this, you must also specify a value for the * OutpostArn.

*/ inline const Aws::String& GetPreferredInstanceType() const{ return m_preferredInstanceType; } /** *

The instance type. If you specify this, you must also specify a value for the * OutpostArn.

*/ inline bool PreferredInstanceTypeHasBeenSet() const { return m_preferredInstanceTypeHasBeenSet; } /** *

The instance type. If you specify this, you must also specify a value for the * OutpostArn.

*/ inline void SetPreferredInstanceType(const Aws::String& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = value; } /** *

The instance type. If you specify this, you must also specify a value for the * OutpostArn.

*/ inline void SetPreferredInstanceType(Aws::String&& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = std::move(value); } /** *

The instance type. If you specify this, you must also specify a value for the * OutpostArn.

*/ inline void SetPreferredInstanceType(const char* value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType.assign(value); } /** *

The instance type. If you specify this, you must also specify a value for the * OutpostArn.

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

The instance type. If you specify this, you must also specify a value for the * OutpostArn.

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

The instance type. If you specify this, you must also specify a value for the * OutpostArn.

*/ inline CreateResolverEndpointRequest& WithPreferredInstanceType(const char* value) { SetPreferredInstanceType(value); return *this;} private: Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; ResolverEndpointDirection m_direction; bool m_directionHasBeenSet = false; Aws::Vector m_ipAddresses; bool m_ipAddressesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; ResolverEndpointType m_resolverEndpointType; bool m_resolverEndpointTypeHasBeenSet = false; Aws::String m_outpostArn; bool m_outpostArnHasBeenSet = false; Aws::String m_preferredInstanceType; bool m_preferredInstanceTypeHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws