com.amazonaws.services.route53resolver.model.ResolverEndpoint Maven / Gradle / Ivy
Show all versions of aws-java-sdk-route53resolver Show documentation
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.route53resolver.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* 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 AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ResolverEndpoint implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ID of the Resolver endpoint.
*
*/
private String id;
/**
*
* A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId
* allows failed requests to be retried without the risk of running the operation twice.
*
*/
private String creatorRequestId;
/**
*
* The ARN (Amazon Resource Name) for the Resolver endpoint.
*
*/
private String arn;
/**
*
* The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
*
*/
private String name;
/**
*
* The ID of one or more security groups that control access to this VPC. The security group must include one or
* more inbound rules (for inbound endpoints) or outbound rules (for outbound 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.
*
*/
private java.util.List securityGroupIds;
/**
*
* Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
*
*/
private String direction;
/**
*
* The number of IP addresses that the Resolver endpoint can use for DNS queries.
*
*/
private Integer ipAddressCount;
/**
*
* The ID of the VPC that you want to create the Resolver endpoint in.
*
*/
private String hostVPCId;
/**
*
* A code that specifies the current status of the Resolver endpoint. Valid values include the following:
*
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for this
* endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and able
* to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are
* associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because
* of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see
* Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve
* the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP
* address that isn't available, add another IP address and then delete the IP address that isn't available. (An
* endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED
can have a
* variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
*
*/
private String status;
/**
*
* A detailed description of the status of the Resolver endpoint.
*
*/
private String statusMessage;
/**
*
* The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
*
*/
private String creationTime;
/**
*
* The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
*
*/
private String modificationTime;
/**
*
* The ID of the Resolver endpoint.
*
*
* @param id
* The ID of the Resolver endpoint.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The ID of the Resolver endpoint.
*
*
* @return The ID of the Resolver endpoint.
*/
public String getId() {
return this.id;
}
/**
*
* The ID of the Resolver endpoint.
*
*
* @param id
* The ID of the Resolver endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withId(String id) {
setId(id);
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 running the operation twice.
*
*
* @param 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 running the
* operation twice.
*/
public void setCreatorRequestId(String creatorRequestId) {
this.creatorRequestId = 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 running the operation twice.
*
*
* @return A unique string that identifies the request that created the Resolver endpoint. The
* CreatorRequestId
allows failed requests to be retried without the risk of running the
* operation twice.
*/
public String getCreatorRequestId() {
return this.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 running the operation twice.
*
*
* @param 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 running the
* operation twice.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withCreatorRequestId(String creatorRequestId) {
setCreatorRequestId(creatorRequestId);
return this;
}
/**
*
* The ARN (Amazon Resource Name) for the Resolver endpoint.
*
*
* @param arn
* The ARN (Amazon Resource Name) for the Resolver endpoint.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The ARN (Amazon Resource Name) for the Resolver endpoint.
*
*
* @return The ARN (Amazon Resource Name) for the Resolver endpoint.
*/
public String getArn() {
return this.arn;
}
/**
*
* The ARN (Amazon Resource Name) for the Resolver endpoint.
*
*
* @param arn
* The ARN (Amazon Resource Name) for the Resolver endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
*
*
* @param name
* The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
*
*
* @return The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
*/
public String getName() {
return this.name;
}
/**
*
* The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
*
*
* @param name
* The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withName(String name) {
setName(name);
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 rules (for inbound endpoints) or outbound rules (for outbound 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.
*
*
* @return The ID of one or more security groups that control access to this VPC. The security group must include
* one or more inbound rules (for inbound endpoints) or outbound rules (for outbound 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.
*/
public java.util.List getSecurityGroupIds() {
return securityGroupIds;
}
/**
*
* The ID of one or more security groups that control access to this VPC. The security group must include one or
* more inbound rules (for inbound endpoints) or outbound rules (for outbound 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.
*
*
* @param securityGroupIds
* The ID of one or more security groups that control access to this VPC. The security group must include one
* or more inbound rules (for inbound endpoints) or outbound rules (for outbound 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.
*/
public void setSecurityGroupIds(java.util.Collection securityGroupIds) {
if (securityGroupIds == null) {
this.securityGroupIds = null;
return;
}
this.securityGroupIds = new java.util.ArrayList(securityGroupIds);
}
/**
*
* The ID of one or more security groups that control access to this VPC. The security group must include one or
* more inbound rules (for inbound endpoints) or outbound rules (for outbound 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.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param securityGroupIds
* The ID of one or more security groups that control access to this VPC. The security group must include one
* or more inbound rules (for inbound endpoints) or outbound rules (for outbound 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withSecurityGroupIds(String... securityGroupIds) {
if (this.securityGroupIds == null) {
setSecurityGroupIds(new java.util.ArrayList(securityGroupIds.length));
}
for (String ele : securityGroupIds) {
this.securityGroupIds.add(ele);
}
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 rules (for inbound endpoints) or outbound rules (for outbound 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.
*
*
* @param securityGroupIds
* The ID of one or more security groups that control access to this VPC. The security group must include one
* or more inbound rules (for inbound endpoints) or outbound rules (for outbound 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withSecurityGroupIds(java.util.Collection securityGroupIds) {
setSecurityGroupIds(securityGroupIds);
return this;
}
/**
*
* Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
*
*
* @param direction
* Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
* @see ResolverEndpointDirection
*/
public void setDirection(String direction) {
this.direction = direction;
}
/**
*
* Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
*
*
* @return Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
* @see ResolverEndpointDirection
*/
public String getDirection() {
return this.direction;
}
/**
*
* Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
*
*
* @param direction
* Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResolverEndpointDirection
*/
public ResolverEndpoint withDirection(String direction) {
setDirection(direction);
return this;
}
/**
*
* Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
*
*
* @param direction
* Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:
*
* -
*
* INBOUND
: allows DNS queries to your VPC from your network
*
*
* -
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResolverEndpointDirection
*/
public ResolverEndpoint withDirection(ResolverEndpointDirection direction) {
this.direction = direction.toString();
return this;
}
/**
*
* The number of IP addresses that the Resolver endpoint can use for DNS queries.
*
*
* @param ipAddressCount
* The number of IP addresses that the Resolver endpoint can use for DNS queries.
*/
public void setIpAddressCount(Integer ipAddressCount) {
this.ipAddressCount = ipAddressCount;
}
/**
*
* The number of IP addresses that the Resolver endpoint can use for DNS queries.
*
*
* @return The number of IP addresses that the Resolver endpoint can use for DNS queries.
*/
public Integer getIpAddressCount() {
return this.ipAddressCount;
}
/**
*
* The number of IP addresses that the Resolver endpoint can use for DNS queries.
*
*
* @param ipAddressCount
* The number of IP addresses that the Resolver endpoint can use for DNS queries.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withIpAddressCount(Integer ipAddressCount) {
setIpAddressCount(ipAddressCount);
return this;
}
/**
*
* The ID of the VPC that you want to create the Resolver endpoint in.
*
*
* @param hostVPCId
* The ID of the VPC that you want to create the Resolver endpoint in.
*/
public void setHostVPCId(String hostVPCId) {
this.hostVPCId = hostVPCId;
}
/**
*
* The ID of the VPC that you want to create the Resolver endpoint in.
*
*
* @return The ID of the VPC that you want to create the Resolver endpoint in.
*/
public String getHostVPCId() {
return this.hostVPCId;
}
/**
*
* The ID of the VPC that you want to create the Resolver endpoint in.
*
*
* @param hostVPCId
* The ID of the VPC that you want to create the Resolver endpoint in.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withHostVPCId(String hostVPCId) {
setHostVPCId(hostVPCId);
return this;
}
/**
*
* A code that specifies the current status of the Resolver endpoint. Valid values include the following:
*
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for this
* endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and able
* to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are
* associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because
* of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see
* Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve
* the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP
* address that isn't available, add another IP address and then delete the IP address that isn't available. (An
* endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED
can have a
* variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
*
*
* @param status
* A code that specifies the current status of the Resolver endpoint. Valid values include the following:
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for
* this endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and
* able to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are
* associated with this endpoint. During the recovery process, the endpoint functions with limited capacity
* because of the limit on the number of DNS queries per IP address (per network interface). For the current
* limit, see Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To
* resolve the problem, we recommend that you check each IP address that you associated with the endpoint.
* For each IP address that isn't available, add another IP address and then delete the IP address that isn't
* available. (An endpoint must always include at least two IP addresses.) A status of
* ACTION_NEEDED
can have a variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
* @see ResolverEndpointStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* A code that specifies the current status of the Resolver endpoint. Valid values include the following:
*
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for this
* endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and able
* to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are
* associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because
* of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see
* Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve
* the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP
* address that isn't available, add another IP address and then delete the IP address that isn't available. (An
* endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED
can have a
* variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
*
*
* @return A code that specifies the current status of the Resolver endpoint. Valid values include the
* following:
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for
* this endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured
* and able to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that
* are associated with this endpoint. During the recovery process, the endpoint functions with limited
* capacity because of the limit on the number of DNS queries per IP address (per network interface). For
* the current limit, see Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To
* resolve the problem, we recommend that you check each IP address that you associated with the endpoint.
* For each IP address that isn't available, add another IP address and then delete the IP address that
* isn't available. (An endpoint must always include at least two IP addresses.) A status of
* ACTION_NEEDED
can have a variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon
* VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
* @see ResolverEndpointStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* A code that specifies the current status of the Resolver endpoint. Valid values include the following:
*
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for this
* endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and able
* to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are
* associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because
* of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see
* Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve
* the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP
* address that isn't available, add another IP address and then delete the IP address that isn't available. (An
* endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED
can have a
* variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
*
*
* @param status
* A code that specifies the current status of the Resolver endpoint. Valid values include the following:
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for
* this endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and
* able to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are
* associated with this endpoint. During the recovery process, the endpoint functions with limited capacity
* because of the limit on the number of DNS queries per IP address (per network interface). For the current
* limit, see Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To
* resolve the problem, we recommend that you check each IP address that you associated with the endpoint.
* For each IP address that isn't available, add another IP address and then delete the IP address that isn't
* available. (An endpoint must always include at least two IP addresses.) A status of
* ACTION_NEEDED
can have a variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResolverEndpointStatus
*/
public ResolverEndpoint withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* A code that specifies the current status of the Resolver endpoint. Valid values include the following:
*
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for this
* endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and able
* to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are
* associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because
* of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see
* Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve
* the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP
* address that isn't available, add another IP address and then delete the IP address that isn't available. (An
* endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED
can have a
* variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
*
*
* @param status
* A code that specifies the current status of the Resolver endpoint. Valid values include the following:
*
* -
*
* CREATING
: Resolver is creating and configuring one or more Amazon VPC network interfaces for
* this endpoint.
*
*
* -
*
* OPERATIONAL
: The Amazon VPC network interfaces for this endpoint are correctly configured and
* able to pass inbound or outbound DNS queries between your network and Resolver.
*
*
* -
*
* UPDATING
: Resolver is associating or disassociating one or more network interfaces with this
* endpoint.
*
*
* -
*
* AUTO_RECOVERING
: Resolver is trying to recover one or more of the network interfaces that are
* associated with this endpoint. During the recovery process, the endpoint functions with limited capacity
* because of the limit on the number of DNS queries per IP address (per network interface). For the current
* limit, see Limits on Route 53 Resolver.
*
*
* -
*
* ACTION_NEEDED
: This endpoint is unhealthy, and Resolver can't automatically recover it. To
* resolve the problem, we recommend that you check each IP address that you associated with the endpoint.
* For each IP address that isn't available, add another IP address and then delete the IP address that isn't
* available. (An endpoint must always include at least two IP addresses.) A status of
* ACTION_NEEDED
can have a variety of causes. Here are two common causes:
*
*
* -
*
* One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.
*
*
* -
*
* The network interface couldn't be created for some reason that's outside the control of Resolver.
*
*
*
*
* -
*
* DELETING
: Resolver is deleting this endpoint and the associated network interfaces.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResolverEndpointStatus
*/
public ResolverEndpoint withStatus(ResolverEndpointStatus status) {
this.status = status.toString();
return this;
}
/**
*
* A detailed description of the status of the Resolver endpoint.
*
*
* @param statusMessage
* A detailed description of the status of the Resolver endpoint.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
*
* A detailed description of the status of the Resolver endpoint.
*
*
* @return A detailed description of the status of the Resolver endpoint.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
*
* A detailed description of the status of the Resolver endpoint.
*
*
* @param statusMessage
* A detailed description of the status of the Resolver endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withStatusMessage(String statusMessage) {
setStatusMessage(statusMessage);
return this;
}
/**
*
* The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @param creationTime
* The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
*/
public void setCreationTime(String creationTime) {
this.creationTime = creationTime;
}
/**
*
* The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @return The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time
* (UTC).
*/
public String getCreationTime() {
return this.creationTime;
}
/**
*
* The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @param creationTime
* The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withCreationTime(String creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @param modificationTime
* The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time
* (UTC).
*/
public void setModificationTime(String modificationTime) {
this.modificationTime = modificationTime;
}
/**
*
* The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @return The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time
* (UTC).
*/
public String getModificationTime() {
return this.modificationTime;
}
/**
*
* The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).
*
*
* @param modificationTime
* The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time
* (UTC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResolverEndpoint withModificationTime(String modificationTime) {
setModificationTime(modificationTime);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getCreatorRequestId() != null)
sb.append("CreatorRequestId: ").append(getCreatorRequestId()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getSecurityGroupIds() != null)
sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(",");
if (getDirection() != null)
sb.append("Direction: ").append(getDirection()).append(",");
if (getIpAddressCount() != null)
sb.append("IpAddressCount: ").append(getIpAddressCount()).append(",");
if (getHostVPCId() != null)
sb.append("HostVPCId: ").append(getHostVPCId()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusMessage() != null)
sb.append("StatusMessage: ").append(getStatusMessage()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getModificationTime() != null)
sb.append("ModificationTime: ").append(getModificationTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ResolverEndpoint == false)
return false;
ResolverEndpoint other = (ResolverEndpoint) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getCreatorRequestId() == null ^ this.getCreatorRequestId() == null)
return false;
if (other.getCreatorRequestId() != null && other.getCreatorRequestId().equals(this.getCreatorRequestId()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == null)
return false;
if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == false)
return false;
if (other.getDirection() == null ^ this.getDirection() == null)
return false;
if (other.getDirection() != null && other.getDirection().equals(this.getDirection()) == false)
return false;
if (other.getIpAddressCount() == null ^ this.getIpAddressCount() == null)
return false;
if (other.getIpAddressCount() != null && other.getIpAddressCount().equals(this.getIpAddressCount()) == false)
return false;
if (other.getHostVPCId() == null ^ this.getHostVPCId() == null)
return false;
if (other.getHostVPCId() != null && other.getHostVPCId().equals(this.getHostVPCId()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getStatusMessage() == null ^ this.getStatusMessage() == null)
return false;
if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getModificationTime() == null ^ this.getModificationTime() == null)
return false;
if (other.getModificationTime() != null && other.getModificationTime().equals(this.getModificationTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getCreatorRequestId() == null) ? 0 : getCreatorRequestId().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getDirection() == null) ? 0 : getDirection().hashCode());
hashCode = prime * hashCode + ((getIpAddressCount() == null) ? 0 : getIpAddressCount().hashCode());
hashCode = prime * hashCode + ((getHostVPCId() == null) ? 0 : getHostVPCId().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getModificationTime() == null) ? 0 : getModificationTime().hashCode());
return hashCode;
}
@Override
public ResolverEndpoint clone() {
try {
return (ResolverEndpoint) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.route53resolver.model.transform.ResolverEndpointMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}