All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.route53resolver.model.ResolverEndpoint Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Route 53 Resolver module holds the client classes that are used for communicating with Amazon Route 53 Resolver Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2014-2019 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 executing 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 resolver rules. *

*/ 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 or another VPC *

    *
  • *
  • *

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

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

*/ 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 executing 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 executing 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 executing 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 executing 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 executing 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 executing 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 resolver rules. *

* * @return 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. */ 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 resolver rules. *

* * @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 resolver rules. */ 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 resolver rules. *

*

* 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 resolver rules. * @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 resolver rules. *

* * @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 resolver rules. * @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 or another VPC *

    *
  • *
  • *

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

    *
  • *
* * @param 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 *

    *
  • * @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 or another VPC *

      *
    • *
    • *

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

      *
    • *
    * * @return 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 *

      *
    • * @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 or another VPC *

        *
      • *
      • *

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

        *
      • *
      * * @param 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 *

        *
      • * @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 or another VPC *

          *
        • *
        • *

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

          *
        • *
        * * @param 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 *

          *
        • * @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. *

          * * @param status * A code that specifies the current status of the resolver endpoint. * @see ResolverEndpointStatus */ public void setStatus(String status) { this.status = status; } /** *

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

          * * @return A code that specifies the current status of the resolver endpoint. * @see ResolverEndpointStatus */ public String getStatus() { return this.status; } /** *

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

          * * @param status * A code that specifies the current status of the resolver endpoint. * @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. *

          * * @param status * A code that specifies the current status of the resolver endpoint. * @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); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy