/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Route53Resolver { namespace Model { /** *

In the response to a CreateResolverEndpoint, * DeleteResolverEndpoint, GetResolverEndpoint, * ListResolverEndpoints, or UpdateResolverEndpoint request, a * complex type that contains settings for an existing inbound or outbound resolver * endpoint.

See Also:

AWS * API Reference

*/ class AWS_ROUTE53RESOLVER_API ResolverEndpoint { public: ResolverEndpoint(); ResolverEndpoint(Aws::Utils::Json::JsonView jsonValue); ResolverEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the resolver endpoint.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the resolver endpoint.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the resolver endpoint.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the resolver endpoint.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the resolver endpoint.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the resolver endpoint.

*/ inline ResolverEndpoint& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the resolver endpoint.

*/ inline ResolverEndpoint& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the resolver endpoint.

*/ inline ResolverEndpoint& WithId(const char* value) { SetId(value); return *this;} /** *

A unique string that identifies the request that created the resolver * endpoint. The CreatorRequestId allows failed requests to be retried * without the risk of executing the operation twice.

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

A unique string that identifies the request that created the resolver * endpoint. The CreatorRequestId allows failed requests to be retried * without the risk of executing the operation twice.

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

A unique string that identifies the request that created the resolver * endpoint. The CreatorRequestId allows failed requests to be retried * without the risk of executing the operation twice.

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

A unique string that identifies the request that created the resolver * endpoint. The CreatorRequestId allows failed requests to be retried * without the risk of executing the operation twice.

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

A unique string that identifies the request that created the resolver * endpoint. The CreatorRequestId allows failed requests to be retried * without the risk of executing the operation twice.

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

A unique string that identifies the request that created the resolver * endpoint. The CreatorRequestId allows failed requests to be retried * without the risk of executing the operation twice.

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

A unique string that identifies the request that created the resolver * endpoint. The CreatorRequestId allows failed requests to be retried * without the risk of executing the operation twice.

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

A unique string that identifies the request that created the resolver * endpoint. The CreatorRequestId allows failed requests to be retried * without the risk of executing the operation twice.

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

The ARN (Amazon Resource Name) for the resolver endpoint.

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

The ARN (Amazon Resource Name) for the resolver endpoint.

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

The ARN (Amazon Resource Name) for the resolver endpoint.

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

The ARN (Amazon Resource Name) for the resolver endpoint.

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

The ARN (Amazon Resource Name) for the resolver endpoint.

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

The ARN (Amazon Resource Name) for the resolver endpoint.

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

The ARN (Amazon Resource Name) for the resolver endpoint.

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

The ARN (Amazon Resource Name) for the resolver endpoint.

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

The name that you assigned to the resolver endpoint when you submitted a * CreateResolverEndpoint request.

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

The name that you assigned to the resolver endpoint when you submitted a * CreateResolverEndpoint request.

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

The name that you assigned to the resolver endpoint when you submitted a * CreateResolverEndpoint request.

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

The name that you assigned to the resolver endpoint when you submitted a * CreateResolverEndpoint request.

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

The name that you assigned to the resolver endpoint when you submitted a * CreateResolverEndpoint request.

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

The name that you assigned to the resolver endpoint when you submitted a * CreateResolverEndpoint request.

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

The name that you assigned to the resolver endpoint when you submitted a * CreateResolverEndpoint request.

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

The name that you assigned to the resolver endpoint when you submitted a * CreateResolverEndpoint request.

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

The ID of one or more security groups that control access to this VPC. The * security group must include one or more inbound resolver rules.

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

The ID of one or more security groups that control access to this VPC. The * security group must include one or more inbound resolver rules.

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

The ID of one or more security groups that control access to this VPC. The * security group must include one or more inbound resolver rules.

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

The ID of one or more security groups that control access to this VPC. The * security group must include one or more inbound resolver rules.

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

The ID of one or more security groups that control access to this VPC. The * security group must include one or more inbound resolver rules.

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

The ID of one or more security groups that control access to this VPC. The * security group must include one or more inbound resolver rules.

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

The ID of one or more security groups that control access to this VPC. The * security group must include one or more inbound resolver rules.

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

The ID of one or more security groups that control access to this VPC. The * security group must include one or more inbound resolver rules.

*/ inline ResolverEndpoint& 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 control access to this VPC. The * security group must include one or more inbound resolver rules.

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

Indicates whether the resolver endpoint allows inbound or outbound DNS * queries:

  • INBOUND: allows DNS queries to your VPC * from your network or another VPC

  • OUTBOUND: * allows DNS queries from your VPC to your network or another VPC

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

Indicates whether the resolver endpoint allows inbound or outbound DNS * queries:

  • INBOUND: allows DNS queries to your VPC * from your network or another VPC

  • OUTBOUND: * allows DNS queries from your VPC to your network or another VPC

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

Indicates whether the resolver endpoint allows inbound or outbound DNS * queries:

  • INBOUND: allows DNS queries to your VPC * from your network or another VPC

  • OUTBOUND: * allows DNS queries from your VPC to your network or another VPC

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

Indicates whether the resolver endpoint allows inbound or outbound DNS * queries:

  • INBOUND: allows DNS queries to your VPC * from your network or another VPC

  • OUTBOUND: * allows DNS queries from your VPC to your network or another VPC

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

Indicates whether the resolver endpoint allows inbound or outbound DNS * queries:

  • INBOUND: allows DNS queries to your VPC * from your network or another VPC

  • OUTBOUND: * allows DNS queries from your VPC to your network or another VPC

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

Indicates whether the resolver endpoint allows inbound or outbound DNS * queries:

  • INBOUND: allows DNS queries to your VPC * from your network or another VPC

  • OUTBOUND: * allows DNS queries from your VPC to your network or another VPC

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

The number of IP addresses that the resolver endpoint can use for DNS * queries.

*/ inline int GetIpAddressCount() const{ return m_ipAddressCount; } /** *

The number of IP addresses that the resolver endpoint can use for DNS * queries.

*/ inline bool IpAddressCountHasBeenSet() const { return m_ipAddressCountHasBeenSet; } /** *

The number of IP addresses that the resolver endpoint can use for DNS * queries.

*/ inline void SetIpAddressCount(int value) { m_ipAddressCountHasBeenSet = true; m_ipAddressCount = value; } /** *

The number of IP addresses that the resolver endpoint can use for DNS * queries.

*/ inline ResolverEndpoint& WithIpAddressCount(int value) { SetIpAddressCount(value); return *this;} /** *

The ID of the VPC that you want to create the resolver endpoint in.

*/ inline const Aws::String& GetHostVPCId() const{ return m_hostVPCId; } /** *

The ID of the VPC that you want to create the resolver endpoint in.

*/ inline bool HostVPCIdHasBeenSet() const { return m_hostVPCIdHasBeenSet; } /** *

The ID of the VPC that you want to create the resolver endpoint in.

*/ inline void SetHostVPCId(const Aws::String& value) { m_hostVPCIdHasBeenSet = true; m_hostVPCId = value; } /** *

The ID of the VPC that you want to create the resolver endpoint in.

*/ inline void SetHostVPCId(Aws::String&& value) { m_hostVPCIdHasBeenSet = true; m_hostVPCId = std::move(value); } /** *

The ID of the VPC that you want to create the resolver endpoint in.

*/ inline void SetHostVPCId(const char* value) { m_hostVPCIdHasBeenSet = true; m_hostVPCId.assign(value); } /** *

The ID of the VPC that you want to create the resolver endpoint in.

*/ inline ResolverEndpoint& WithHostVPCId(const Aws::String& value) { SetHostVPCId(value); return *this;} /** *

The ID of the VPC that you want to create the resolver endpoint in.

*/ inline ResolverEndpoint& WithHostVPCId(Aws::String&& value) { SetHostVPCId(std::move(value)); return *this;} /** *

The ID of the VPC that you want to create the resolver endpoint in.

*/ inline ResolverEndpoint& WithHostVPCId(const char* value) { SetHostVPCId(value); return *this;} /** *

A code that specifies the current status of the resolver endpoint.

*/ inline const ResolverEndpointStatus& GetStatus() const{ return m_status; } /** *

A code that specifies the current status of the resolver endpoint.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

A code that specifies the current status of the resolver endpoint.

*/ inline void SetStatus(const ResolverEndpointStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

A code that specifies the current status of the resolver endpoint.

*/ inline void SetStatus(ResolverEndpointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

A code that specifies the current status of the resolver endpoint.

*/ inline ResolverEndpoint& WithStatus(const ResolverEndpointStatus& value) { SetStatus(value); return *this;} /** *

A code that specifies the current status of the resolver endpoint.

*/ inline ResolverEndpoint& WithStatus(ResolverEndpointStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A detailed description of the status of the resolver endpoint.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

A detailed description of the status of the resolver endpoint.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

A detailed description of the status of the resolver endpoint.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

A detailed description of the status of the resolver endpoint.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

A detailed description of the status of the resolver endpoint.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

A detailed description of the status of the resolver endpoint.

*/ inline ResolverEndpoint& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

A detailed description of the status of the resolver endpoint.

*/ inline ResolverEndpoint& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

A detailed description of the status of the resolver endpoint.

*/ inline ResolverEndpoint& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The date and time that the endpoint was created, in Unix time format and * Coordinated Universal Time (UTC).

*/ inline const Aws::String& GetCreationTime() const{ return m_creationTime; } /** *

The date and time that the endpoint was created, in Unix time format and * Coordinated Universal Time (UTC).

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The date and time that the endpoint was created, in Unix time format and * Coordinated Universal Time (UTC).

*/ inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The date and time that the endpoint was created, in Unix time format and * Coordinated Universal Time (UTC).

*/ inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The date and time that the endpoint was created, in Unix time format and * Coordinated Universal Time (UTC).

*/ inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); } /** *

The date and time that the endpoint was created, in Unix time format and * Coordinated Universal Time (UTC).

*/ inline ResolverEndpoint& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} /** *

The date and time that the endpoint was created, in Unix time format and * Coordinated Universal Time (UTC).

*/ inline ResolverEndpoint& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The date and time that the endpoint was created, in Unix time format and * Coordinated Universal Time (UTC).

*/ inline ResolverEndpoint& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} /** *

The date and time that the endpoint was last modified, in Unix time format * and Coordinated Universal Time (UTC).

*/ inline const Aws::String& GetModificationTime() const{ return m_modificationTime; } /** *

The date and time that the endpoint was last modified, in Unix time format * and Coordinated Universal Time (UTC).

*/ inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; } /** *

The date and time that the endpoint was last modified, in Unix time format * and Coordinated Universal Time (UTC).

*/ inline void SetModificationTime(const Aws::String& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; } /** *

The date and time that the endpoint was last modified, in Unix time format * and Coordinated Universal Time (UTC).

*/ inline void SetModificationTime(Aws::String&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); } /** *

The date and time that the endpoint was last modified, in Unix time format * and Coordinated Universal Time (UTC).

*/ inline void SetModificationTime(const char* value) { m_modificationTimeHasBeenSet = true; m_modificationTime.assign(value); } /** *

The date and time that the endpoint was last modified, in Unix time format * and Coordinated Universal Time (UTC).

*/ inline ResolverEndpoint& WithModificationTime(const Aws::String& value) { SetModificationTime(value); return *this;} /** *

The date and time that the endpoint was last modified, in Unix time format * and Coordinated Universal Time (UTC).

*/ inline ResolverEndpoint& WithModificationTime(Aws::String&& value) { SetModificationTime(std::move(value)); return *this;} /** *

The date and time that the endpoint was last modified, in Unix time format * and Coordinated Universal Time (UTC).

*/ inline ResolverEndpoint& WithModificationTime(const char* value) { SetModificationTime(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet; Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet; ResolverEndpointDirection m_direction; bool m_directionHasBeenSet; int m_ipAddressCount; bool m_ipAddressCountHasBeenSet; Aws::String m_hostVPCId; bool m_hostVPCIdHasBeenSet; ResolverEndpointStatus m_status; bool m_statusHasBeenSet; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet; Aws::String m_creationTime; bool m_creationTimeHasBeenSet; Aws::String m_modificationTime; bool m_modificationTimeHasBeenSet; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws