
com.amazonaws.services.eks.model.DescribeAddonVersionsRequest Maven / Gradle / Ivy
/*
* 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.eks.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeAddonVersionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Kubernetes versions that you can use the add-on with.
*
*/
private String kubernetesVersion;
/**
*
* The maximum number of results, returned in paginated output. You receive maxResults
in a single
* page, along with a nextToken
response element. You can see the remaining results of the initial
* request by sending another request with the returned nextToken
value. This value can be between 1
* and 100. If you don't use this parameter, 100 results and a nextToken
value, if applicable, are
* returned.
*
*/
private Integer maxResults;
/**
*
* The nextToken
value returned from a previous paginated request, where maxResults
was
* used and the results exceeded the value of that parameter. Pagination continues from the end of the previous
* results that returned the nextToken
value. This value is null when there are no more results to
* return.
*
*
*
* This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and
* not for other programmatic purposes.
*
*
*/
private String nextToken;
/**
*
* The name of the add-on. The name must match one of the names returned by ListAddons
.
*
*/
private String addonName;
/**
*
* The type of the add-on. For valid types
, don't specify a value for this property.
*
*/
private java.util.List types;
/**
*
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
*/
private java.util.List publishers;
/**
*
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
*/
private java.util.List owners;
/**
*
* The Kubernetes versions that you can use the add-on with.
*
*
* @param kubernetesVersion
* The Kubernetes versions that you can use the add-on with.
*/
public void setKubernetesVersion(String kubernetesVersion) {
this.kubernetesVersion = kubernetesVersion;
}
/**
*
* The Kubernetes versions that you can use the add-on with.
*
*
* @return The Kubernetes versions that you can use the add-on with.
*/
public String getKubernetesVersion() {
return this.kubernetesVersion;
}
/**
*
* The Kubernetes versions that you can use the add-on with.
*
*
* @param kubernetesVersion
* The Kubernetes versions that you can use the add-on with.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withKubernetesVersion(String kubernetesVersion) {
setKubernetesVersion(kubernetesVersion);
return this;
}
/**
*
* The maximum number of results, returned in paginated output. You receive maxResults
in a single
* page, along with a nextToken
response element. You can see the remaining results of the initial
* request by sending another request with the returned nextToken
value. This value can be between 1
* and 100. If you don't use this parameter, 100 results and a nextToken
value, if applicable, are
* returned.
*
*
* @param maxResults
* The maximum number of results, returned in paginated output. You receive maxResults
in a
* single page, along with a nextToken
response element. You can see the remaining results of
* the initial request by sending another request with the returned nextToken
value. This value
* can be between 1 and 100. If you don't use this parameter, 100 results and a nextToken
value,
* if applicable, are returned.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of results, returned in paginated output. You receive maxResults
in a single
* page, along with a nextToken
response element. You can see the remaining results of the initial
* request by sending another request with the returned nextToken
value. This value can be between 1
* and 100. If you don't use this parameter, 100 results and a nextToken
value, if applicable, are
* returned.
*
*
* @return The maximum number of results, returned in paginated output. You receive maxResults
in a
* single page, along with a nextToken
response element. You can see the remaining results of
* the initial request by sending another request with the returned nextToken
value. This value
* can be between 1 and 100. If you don't use this parameter, 100 results and a nextToken
* value, if applicable, are returned.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of results, returned in paginated output. You receive maxResults
in a single
* page, along with a nextToken
response element. You can see the remaining results of the initial
* request by sending another request with the returned nextToken
value. This value can be between 1
* and 100. If you don't use this parameter, 100 results and a nextToken
value, if applicable, are
* returned.
*
*
* @param maxResults
* The maximum number of results, returned in paginated output. You receive maxResults
in a
* single page, along with a nextToken
response element. You can see the remaining results of
* the initial request by sending another request with the returned nextToken
value. This value
* can be between 1 and 100. If you don't use this parameter, 100 results and a nextToken
value,
* if applicable, are returned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The nextToken
value returned from a previous paginated request, where maxResults
was
* used and the results exceeded the value of that parameter. Pagination continues from the end of the previous
* results that returned the nextToken
value. This value is null when there are no more results to
* return.
*
*
*
* This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and
* not for other programmatic purposes.
*
*
*
* @param nextToken
* The nextToken
value returned from a previous paginated request, where maxResults
* was used and the results exceeded the value of that parameter. Pagination continues from the end of the
* previous results that returned the nextToken
value. This value is null when there are no more
* results to return.
*
* This token should be treated as an opaque identifier that is used only to retrieve the next items in a
* list and not for other programmatic purposes.
*
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The nextToken
value returned from a previous paginated request, where maxResults
was
* used and the results exceeded the value of that parameter. Pagination continues from the end of the previous
* results that returned the nextToken
value. This value is null when there are no more results to
* return.
*
*
*
* This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and
* not for other programmatic purposes.
*
*
*
* @return The nextToken
value returned from a previous paginated request, where
* maxResults
was used and the results exceeded the value of that parameter. Pagination
* continues from the end of the previous results that returned the nextToken
value. This value
* is null when there are no more results to return.
*
* This token should be treated as an opaque identifier that is used only to retrieve the next items in a
* list and not for other programmatic purposes.
*
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The nextToken
value returned from a previous paginated request, where maxResults
was
* used and the results exceeded the value of that parameter. Pagination continues from the end of the previous
* results that returned the nextToken
value. This value is null when there are no more results to
* return.
*
*
*
* This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and
* not for other programmatic purposes.
*
*
*
* @param nextToken
* The nextToken
value returned from a previous paginated request, where maxResults
* was used and the results exceeded the value of that parameter. Pagination continues from the end of the
* previous results that returned the nextToken
value. This value is null when there are no more
* results to return.
*
* This token should be treated as an opaque identifier that is used only to retrieve the next items in a
* list and not for other programmatic purposes.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The name of the add-on. The name must match one of the names returned by ListAddons
.
*
*
* @param addonName
* The name of the add-on. The name must match one of the names returned by ListAddons
* .
*/
public void setAddonName(String addonName) {
this.addonName = addonName;
}
/**
*
* The name of the add-on. The name must match one of the names returned by ListAddons
.
*
*
* @return The name of the add-on. The name must match one of the names returned by ListAddons
* .
*/
public String getAddonName() {
return this.addonName;
}
/**
*
* The name of the add-on. The name must match one of the names returned by ListAddons
.
*
*
* @param addonName
* The name of the add-on. The name must match one of the names returned by ListAddons
* .
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withAddonName(String addonName) {
setAddonName(addonName);
return this;
}
/**
*
* The type of the add-on. For valid types
, don't specify a value for this property.
*
*
* @return The type of the add-on. For valid types
, don't specify a value for this property.
*/
public java.util.List getTypes() {
return types;
}
/**
*
* The type of the add-on. For valid types
, don't specify a value for this property.
*
*
* @param types
* The type of the add-on. For valid types
, don't specify a value for this property.
*/
public void setTypes(java.util.Collection types) {
if (types == null) {
this.types = null;
return;
}
this.types = new java.util.ArrayList(types);
}
/**
*
* The type of the add-on. For valid types
, don't specify a value for this property.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTypes(java.util.Collection)} or {@link #withTypes(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param types
* The type of the add-on. For valid types
, don't specify a value for this property.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withTypes(String... types) {
if (this.types == null) {
setTypes(new java.util.ArrayList(types.length));
}
for (String ele : types) {
this.types.add(ele);
}
return this;
}
/**
*
* The type of the add-on. For valid types
, don't specify a value for this property.
*
*
* @param types
* The type of the add-on. For valid types
, don't specify a value for this property.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withTypes(java.util.Collection types) {
setTypes(types);
return this;
}
/**
*
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
*
* @return The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*/
public java.util.List getPublishers() {
return publishers;
}
/**
*
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
*
* @param publishers
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*/
public void setPublishers(java.util.Collection publishers) {
if (publishers == null) {
this.publishers = null;
return;
}
this.publishers = new java.util.ArrayList(publishers);
}
/**
*
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPublishers(java.util.Collection)} or {@link #withPublishers(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param publishers
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withPublishers(String... publishers) {
if (this.publishers == null) {
setPublishers(new java.util.ArrayList(publishers.length));
}
for (String ele : publishers) {
this.publishers.add(ele);
}
return this;
}
/**
*
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
*
* @param publishers
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withPublishers(java.util.Collection publishers) {
setPublishers(publishers);
return this;
}
/**
*
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
*
* @return The owner of the add-on. For valid owners
, don't specify a value for this property.
*/
public java.util.List getOwners() {
return owners;
}
/**
*
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
*
* @param owners
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*/
public void setOwners(java.util.Collection owners) {
if (owners == null) {
this.owners = null;
return;
}
this.owners = new java.util.ArrayList(owners);
}
/**
*
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOwners(java.util.Collection)} or {@link #withOwners(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param owners
* The owner of the add-on. For valid owners
, don't specify a value for this property.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withOwners(String... owners) {
if (this.owners == null) {
setOwners(new java.util.ArrayList(owners.length));
}
for (String ele : owners) {
this.owners.add(ele);
}
return this;
}
/**
*
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
*
* @param owners
* The owner of the add-on. For valid owners
, don't specify a value for this property.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeAddonVersionsRequest withOwners(java.util.Collection owners) {
setOwners(owners);
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 (getKubernetesVersion() != null)
sb.append("KubernetesVersion: ").append(getKubernetesVersion()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getAddonName() != null)
sb.append("AddonName: ").append(getAddonName()).append(",");
if (getTypes() != null)
sb.append("Types: ").append(getTypes()).append(",");
if (getPublishers() != null)
sb.append("Publishers: ").append(getPublishers()).append(",");
if (getOwners() != null)
sb.append("Owners: ").append(getOwners());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeAddonVersionsRequest == false)
return false;
DescribeAddonVersionsRequest other = (DescribeAddonVersionsRequest) obj;
if (other.getKubernetesVersion() == null ^ this.getKubernetesVersion() == null)
return false;
if (other.getKubernetesVersion() != null && other.getKubernetesVersion().equals(this.getKubernetesVersion()) == 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.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
if (other.getAddonName() == null ^ this.getAddonName() == null)
return false;
if (other.getAddonName() != null && other.getAddonName().equals(this.getAddonName()) == false)
return false;
if (other.getTypes() == null ^ this.getTypes() == null)
return false;
if (other.getTypes() != null && other.getTypes().equals(this.getTypes()) == false)
return false;
if (other.getPublishers() == null ^ this.getPublishers() == null)
return false;
if (other.getPublishers() != null && other.getPublishers().equals(this.getPublishers()) == false)
return false;
if (other.getOwners() == null ^ this.getOwners() == null)
return false;
if (other.getOwners() != null && other.getOwners().equals(this.getOwners()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getKubernetesVersion() == null) ? 0 : getKubernetesVersion().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getAddonName() == null) ? 0 : getAddonName().hashCode());
hashCode = prime * hashCode + ((getTypes() == null) ? 0 : getTypes().hashCode());
hashCode = prime * hashCode + ((getPublishers() == null) ? 0 : getPublishers().hashCode());
hashCode = prime * hashCode + ((getOwners() == null) ? 0 : getOwners().hashCode());
return hashCode;
}
@Override
public DescribeAddonVersionsRequest clone() {
return (DescribeAddonVersionsRequest) super.clone();
}
}