/* * 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.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 to return. *
*/ private Integer maxResults; /** *
* The nextToken
value returned from a previous paginated DescribeAddonVersionsRequest
* 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 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. *
*
* The name of the add-on. The name must match one of the names returned by ListAddons
.
*
* The type of the add-on. For valid types
, don't specify a value for this property.
*
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
* 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 to return. *
* * @param maxResults * The maximum number of results to return. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** ** The maximum number of results to return. *
* * @return The maximum number of results to return. */ public Integer getMaxResults() { return this.maxResults; } /** ** The maximum number of results to return. *
* * @param maxResults * The maximum number of results to return. * @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 DescribeAddonVersionsRequest
* 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 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. *
*nextToken
value returned from a previous paginated
* DescribeAddonVersionsRequest
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 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 DescribeAddonVersionsRequest
* 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 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. *
*nextToken
value returned from a previous paginated
* DescribeAddonVersionsRequest
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 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 DescribeAddonVersionsRequest
* 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 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. *
*nextToken
value returned from a previous paginated
* DescribeAddonVersionsRequest
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 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
.
*
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
.
*
ListAddons
* .
*/
public String getAddonName() {
return this.addonName;
}
/**
*
* The name of the add-on. The name must match one of the names returned by ListAddons
.
*
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.
*
types
, don't specify a value for this property.
*/
public java.util.List
* The type of the add-on. For valid types
, don't specify a value for this property.
*
types
, don't specify a value for this property.
*/
public void setTypes(java.util.Collection
* 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 validtypes
, 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
* The type of the add-on. For valid types
, don't specify a value for this property.
*
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
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
publishers
, don't specify a value for this property.
*/
public java.util.List
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
publishers
, don't specify a value for this property.
*/
public void setPublishers(java.util.Collection
* 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 validpublishers
, 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
* The publisher of the add-on. For valid publishers
, don't specify a value for this property.
*
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
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
owners
, don't specify a value for this property.
*/
public java.util.List
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
owners
, don't specify a value for this property.
*/
public void setOwners(java.util.Collection
* 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 validowners
, 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
* The owner of the add-on. For valid owners
, don't specify a value for this property.
*
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