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

com.amazonaws.services.route53resolver.model.ListResolverEndpointIpAddressesResult 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 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;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListResolverEndpointIpAddressesResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
        Cloneable {

    /**
     * 

* If the specified endpoint has more than MaxResults IP addresses, you can submit another * ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, * specify the value of NextToken from the previous response. *

*/ private String nextToken; /** *

* The value that you specified for MaxResults in the request. *

*/ private Integer maxResults; /** *

* Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that * you forward DNS queries to (for inbound endpoints). *

*/ private java.util.List ipAddresses; /** *

* If the specified endpoint has more than MaxResults IP addresses, you can submit another * ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, * specify the value of NextToken from the previous response. *

* * @param nextToken * If the specified endpoint has more than MaxResults IP addresses, you can submit another * ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next * request, specify the value of NextToken from the previous response. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* If the specified endpoint has more than MaxResults IP addresses, you can submit another * ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, * specify the value of NextToken from the previous response. *

* * @return If the specified endpoint has more than MaxResults IP addresses, you can submit another * ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next * request, specify the value of NextToken from the previous response. */ public String getNextToken() { return this.nextToken; } /** *

* If the specified endpoint has more than MaxResults IP addresses, you can submit another * ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, * specify the value of NextToken from the previous response. *

* * @param nextToken * If the specified endpoint has more than MaxResults IP addresses, you can submit another * ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next * request, specify the value of NextToken from the previous response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverEndpointIpAddressesResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The value that you specified for MaxResults in the request. *

* * @param maxResults * The value that you specified for MaxResults in the request. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The value that you specified for MaxResults in the request. *

* * @return The value that you specified for MaxResults in the request. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The value that you specified for MaxResults in the request. *

* * @param maxResults * The value that you specified for MaxResults in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverEndpointIpAddressesResult withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that * you forward DNS queries to (for inbound endpoints). *

* * @return Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) * or that you forward DNS queries to (for inbound endpoints). */ public java.util.List getIpAddresses() { return ipAddresses; } /** *

* Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that * you forward DNS queries to (for inbound endpoints). *

* * @param ipAddresses * Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or * that you forward DNS queries to (for inbound endpoints). */ public void setIpAddresses(java.util.Collection ipAddresses) { if (ipAddresses == null) { this.ipAddresses = null; return; } this.ipAddresses = new java.util.ArrayList(ipAddresses); } /** *

* Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that * you forward DNS queries to (for inbound endpoints). *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setIpAddresses(java.util.Collection)} or {@link #withIpAddresses(java.util.Collection)} if you want to * override the existing values. *

* * @param ipAddresses * Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or * that you forward DNS queries to (for inbound endpoints). * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverEndpointIpAddressesResult withIpAddresses(IpAddressResponse... ipAddresses) { if (this.ipAddresses == null) { setIpAddresses(new java.util.ArrayList(ipAddresses.length)); } for (IpAddressResponse ele : ipAddresses) { this.ipAddresses.add(ele); } return this; } /** *

* Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that * you forward DNS queries to (for inbound endpoints). *

* * @param ipAddresses * Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or * that you forward DNS queries to (for inbound endpoints). * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverEndpointIpAddressesResult withIpAddresses(java.util.Collection ipAddresses) { setIpAddresses(ipAddresses); 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 (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getIpAddresses() != null) sb.append("IpAddresses: ").append(getIpAddresses()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListResolverEndpointIpAddressesResult == false) return false; ListResolverEndpointIpAddressesResult other = (ListResolverEndpointIpAddressesResult) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getIpAddresses() == null ^ this.getIpAddresses() == null) return false; if (other.getIpAddresses() != null && other.getIpAddresses().equals(this.getIpAddresses()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getIpAddresses() == null) ? 0 : getIpAddresses().hashCode()); return hashCode; } @Override public ListResolverEndpointIpAddressesResult clone() { try { return (ListResolverEndpointIpAddressesResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy