/* * Copyright 2018-2023 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, Updates the name, or ResolverEndpointType for an endpoint, 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.
*
* 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* 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
*
* 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.
*
* 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 Resolver endpoint IP address type. *
*/ private String resolverEndpointType; /** ** The ARN (Amazon Resource Name) for the Outpost. *
*/ private String outpostArn; /** ** The Amazon EC2 instance type. *
*/ private String preferredInstanceType; /** ** 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.
*
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.
*
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.
*
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* 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* 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* 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* 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
*
* INBOUND
: allows DNS queries to your VPC from your network
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
* 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
*
* INBOUND
: allows DNS queries to your VPC from your network
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
* 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
*
* INBOUND
: allows DNS queries to your VPC from your network
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
* 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
*
* INBOUND
: allows DNS queries to your VPC from your network
*
* OUTBOUND
: allows DNS queries from your VPC to your network
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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; } /** ** The Resolver endpoint IP address type. *
* * @param resolverEndpointType * The Resolver endpoint IP address type. * @see ResolverEndpointType */ public void setResolverEndpointType(String resolverEndpointType) { this.resolverEndpointType = resolverEndpointType; } /** ** The Resolver endpoint IP address type. *
* * @return The Resolver endpoint IP address type. * @see ResolverEndpointType */ public String getResolverEndpointType() { return this.resolverEndpointType; } /** ** The Resolver endpoint IP address type. *
* * @param resolverEndpointType * The Resolver endpoint IP address type. * @return Returns a reference to this object so that method calls can be chained together. * @see ResolverEndpointType */ public ResolverEndpoint withResolverEndpointType(String resolverEndpointType) { setResolverEndpointType(resolverEndpointType); return this; } /** ** The Resolver endpoint IP address type. *
* * @param resolverEndpointType * The Resolver endpoint IP address type. * @return Returns a reference to this object so that method calls can be chained together. * @see ResolverEndpointType */ public ResolverEndpoint withResolverEndpointType(ResolverEndpointType resolverEndpointType) { this.resolverEndpointType = resolverEndpointType.toString(); return this; } /** ** The ARN (Amazon Resource Name) for the Outpost. *
* * @param outpostArn * The ARN (Amazon Resource Name) for the Outpost. */ public void setOutpostArn(String outpostArn) { this.outpostArn = outpostArn; } /** ** The ARN (Amazon Resource Name) for the Outpost. *
* * @return The ARN (Amazon Resource Name) for the Outpost. */ public String getOutpostArn() { return this.outpostArn; } /** ** The ARN (Amazon Resource Name) for the Outpost. *
* * @param outpostArn * The ARN (Amazon Resource Name) for the Outpost. * @return Returns a reference to this object so that method calls can be chained together. */ public ResolverEndpoint withOutpostArn(String outpostArn) { setOutpostArn(outpostArn); return this; } /** ** The Amazon EC2 instance type. *
* * @param preferredInstanceType * The Amazon EC2 instance type. */ public void setPreferredInstanceType(String preferredInstanceType) { this.preferredInstanceType = preferredInstanceType; } /** ** The Amazon EC2 instance type. *
* * @return The Amazon EC2 instance type. */ public String getPreferredInstanceType() { return this.preferredInstanceType; } /** ** The Amazon EC2 instance type. *
* * @param preferredInstanceType * The Amazon EC2 instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public ResolverEndpoint withPreferredInstanceType(String preferredInstanceType) { setPreferredInstanceType(preferredInstanceType); 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()).append(","); if (getResolverEndpointType() != null) sb.append("ResolverEndpointType: ").append(getResolverEndpointType()).append(","); if (getOutpostArn() != null) sb.append("OutpostArn: ").append(getOutpostArn()).append(","); if (getPreferredInstanceType() != null) sb.append("PreferredInstanceType: ").append(getPreferredInstanceType()); 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; if (other.getResolverEndpointType() == null ^ this.getResolverEndpointType() == null) return false; if (other.getResolverEndpointType() != null && other.getResolverEndpointType().equals(this.getResolverEndpointType()) == false) return false; if (other.getOutpostArn() == null ^ this.getOutpostArn() == null) return false; if (other.getOutpostArn() != null && other.getOutpostArn().equals(this.getOutpostArn()) == false) return false; if (other.getPreferredInstanceType() == null ^ this.getPreferredInstanceType() == null) return false; if (other.getPreferredInstanceType() != null && other.getPreferredInstanceType().equals(this.getPreferredInstanceType()) == 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()); hashCode = prime * hashCode + ((getResolverEndpointType() == null) ? 0 : getResolverEndpointType().hashCode()); hashCode = prime * hashCode + ((getOutpostArn() == null) ? 0 : getOutpostArn().hashCode()); hashCode = prime * hashCode + ((getPreferredInstanceType() == null) ? 0 : getPreferredInstanceType().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); } }