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

com.amazonaws.services.elasticsearch.model.ListVpcEndpointsForDomainResult Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 2019-2024 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.elasticsearch.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Container for response parameters to the ListVpcEndpointsForDomain operation. Returns a list * containing summarized details of the VPC endpoints. *

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

* Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. *

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

* Information about each endpoint associated with the domain. *

*/ private String nextToken; /** *

* Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. *

* * @return Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. */ public java.util.List getVpcEndpointSummaryList() { return vpcEndpointSummaryList; } /** *

* Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. *

* * @param vpcEndpointSummaryList * Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. */ public void setVpcEndpointSummaryList(java.util.Collection vpcEndpointSummaryList) { if (vpcEndpointSummaryList == null) { this.vpcEndpointSummaryList = null; return; } this.vpcEndpointSummaryList = new java.util.ArrayList(vpcEndpointSummaryList); } /** *

* Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. *

*

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

* * @param vpcEndpointSummaryList * Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVpcEndpointsForDomainResult withVpcEndpointSummaryList(VpcEndpointSummary... vpcEndpointSummaryList) { if (this.vpcEndpointSummaryList == null) { setVpcEndpointSummaryList(new java.util.ArrayList(vpcEndpointSummaryList.length)); } for (VpcEndpointSummary ele : vpcEndpointSummaryList) { this.vpcEndpointSummaryList.add(ele); } return this; } /** *

* Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. *

* * @param vpcEndpointSummaryList * Provides list of VpcEndpointSummary summarizing details of the VPC endpoints. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVpcEndpointsForDomainResult withVpcEndpointSummaryList(java.util.Collection vpcEndpointSummaryList) { setVpcEndpointSummaryList(vpcEndpointSummaryList); return this; } /** *

* Information about each endpoint associated with the domain. *

* * @param nextToken * Information about each endpoint associated with the domain. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Information about each endpoint associated with the domain. *

* * @return Information about each endpoint associated with the domain. */ public String getNextToken() { return this.nextToken; } /** *

* Information about each endpoint associated with the domain. *

* * @param nextToken * Information about each endpoint associated with the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVpcEndpointsForDomainResult withNextToken(String nextToken) { setNextToken(nextToken); 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 (getVpcEndpointSummaryList() != null) sb.append("VpcEndpointSummaryList: ").append(getVpcEndpointSummaryList()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListVpcEndpointsForDomainResult == false) return false; ListVpcEndpointsForDomainResult other = (ListVpcEndpointsForDomainResult) obj; if (other.getVpcEndpointSummaryList() == null ^ this.getVpcEndpointSummaryList() == null) return false; if (other.getVpcEndpointSummaryList() != null && other.getVpcEndpointSummaryList().equals(this.getVpcEndpointSummaryList()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVpcEndpointSummaryList() == null) ? 0 : getVpcEndpointSummaryList().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListVpcEndpointsForDomainResult clone() { try { return (ListVpcEndpointsForDomainResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy