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

com.amazonaws.services.eks.model.CreateAddonRequest 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 CreateAddonRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of your cluster. *

*/ private String clusterName; /** *

* The name of the add-on. The name must match one of the names returned by DescribeAddonVersions. *

*/ private String addonName; /** *

* The version of the add-on. The version must match one of the versions returned by * DescribeAddonVersions . *

*/ private String addonVersion; /** *

* The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be * assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on * uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the * Amazon EKS User Guide. *

* *

* To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. * For more information, see Enabling IAM * roles for service accounts on your cluster in the Amazon EKS User Guide. *

*
*/ private String serviceAccountRoleArn; /** *

* How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you * choose: *

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change * the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS * default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is installed on * your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if * conflicts are detected. This option works differently during the update operation. For more information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS * add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify. *

*/ private String resolveConflicts; /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

*/ private String clientRequestToken; /** *

* Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You * define both. Tags don't propagate to any other cluster or Amazon Web Services resources. *

*/ private java.util.Map tags; /** *

* The set of configuration values for the add-on that's created. The values that you provide are validated against * the schema returned by DescribeAddonConfiguration. *

*/ private String configurationValues; /** *

* An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service * account to an IAM Role. *

*

* For more information, see Attach an * IAM Role to an Amazon EKS add-on using Pod Identity in the EKS User Guide. *

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

* The name of your cluster. *

* * @param clusterName * The name of your cluster. */ public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** *

* The name of your cluster. *

* * @return The name of your cluster. */ public String getClusterName() { return this.clusterName; } /** *

* The name of your cluster. *

* * @param clusterName * The name of your cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withClusterName(String clusterName) { setClusterName(clusterName); return this; } /** *

* The name of the add-on. The name must match one of the names returned by DescribeAddonVersions. *

* * @param addonName * The name of the add-on. The name must match one of the names returned by * DescribeAddonVersions. */ public void setAddonName(String addonName) { this.addonName = addonName; } /** *

* The name of the add-on. The name must match one of the names returned by DescribeAddonVersions. *

* * @return The name of the add-on. The name must match one of the names returned by * DescribeAddonVersions. */ public String getAddonName() { return this.addonName; } /** *

* The name of the add-on. The name must match one of the names returned by DescribeAddonVersions. *

* * @param addonName * The name of the add-on. The name must match one of the names returned by * DescribeAddonVersions. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withAddonName(String addonName) { setAddonName(addonName); return this; } /** *

* The version of the add-on. The version must match one of the versions returned by * DescribeAddonVersions . *

* * @param addonVersion * The version of the add-on. The version must match one of the versions returned by * DescribeAddonVersions . */ public void setAddonVersion(String addonVersion) { this.addonVersion = addonVersion; } /** *

* The version of the add-on. The version must match one of the versions returned by * DescribeAddonVersions . *

* * @return The version of the add-on. The version must match one of the versions returned by * DescribeAddonVersions . */ public String getAddonVersion() { return this.addonVersion; } /** *

* The version of the add-on. The version must match one of the versions returned by * DescribeAddonVersions . *

* * @param addonVersion * The version of the add-on. The version must match one of the versions returned by * DescribeAddonVersions . * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withAddonVersion(String addonVersion) { setAddonVersion(addonVersion); return this; } /** *

* The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be * assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on * uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the * Amazon EKS User Guide. *

* *

* To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. * For more information, see Enabling IAM * roles for service accounts on your cluster in the Amazon EKS User Guide. *

*
* * @param serviceAccountRoleArn * The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role * must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, * then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role * in the Amazon EKS User Guide.

*

* To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your * cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide. *

*/ public void setServiceAccountRoleArn(String serviceAccountRoleArn) { this.serviceAccountRoleArn = serviceAccountRoleArn; } /** *

* The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be * assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on * uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the * Amazon EKS User Guide. *

* *

* To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. * For more information, see Enabling IAM * roles for service accounts on your cluster in the Amazon EKS User Guide. *

*
* * @return The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role * must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, * then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM * role in the Amazon EKS User Guide.

*

* To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your * cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide. *

*/ public String getServiceAccountRoleArn() { return this.serviceAccountRoleArn; } /** *

* The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role must be * assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, then the add-on * uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role in the * Amazon EKS User Guide. *

* *

* To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your cluster. * For more information, see Enabling IAM * roles for service accounts on your cluster in the Amazon EKS User Guide. *

*
* * @param serviceAccountRoleArn * The Amazon Resource Name (ARN) of an existing IAM role to bind to the add-on's service account. The role * must be assigned the IAM permissions required by the add-on. If you don't specify an existing IAM role, * then the add-on uses the permissions assigned to the node IAM role. For more information, see Amazon EKS node IAM role * in the Amazon EKS User Guide.

*

* To specify an existing IAM role, you must have an IAM OpenID Connect (OIDC) provider created for your * cluster. For more information, see Enabling IAM roles for service accounts on your cluster in the Amazon EKS User Guide. *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withServiceAccountRoleArn(String serviceAccountRoleArn) { setServiceAccountRoleArn(serviceAccountRoleArn); return this; } /** *

* How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you * choose: *

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change * the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS * default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is installed on * your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if * conflicts are detected. This option works differently during the update operation. For more information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS * add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify. *

* * @param resolveConflicts * How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value * you choose:

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't * change the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon * EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS * default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is * installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on * might fail if conflicts are detected. This option works differently during the update operation. For more * information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon * EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you * specify. * @see ResolveConflicts */ public void setResolveConflicts(String resolveConflicts) { this.resolveConflicts = resolveConflicts; } /** *

* How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you * choose: *

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change * the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS * default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is installed on * your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if * conflicts are detected. This option works differently during the update operation. For more information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS * add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify. *

* * @return How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value * you choose:

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't * change the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon * EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS * default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is * installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the * add-on might fail if conflicts are detected. This option works differently during the update operation. * For more information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon * EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you * specify. * @see ResolveConflicts */ public String getResolveConflicts() { return this.resolveConflicts; } /** *

* How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you * choose: *

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change * the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS * default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is installed on * your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if * conflicts are detected. This option works differently during the update operation. For more information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS * add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify. *

* * @param resolveConflicts * How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value * you choose:

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't * change the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon * EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS * default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is * installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on * might fail if conflicts are detected. This option works differently during the update operation. For more * information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon * EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you * specify. * @return Returns a reference to this object so that method calls can be chained together. * @see ResolveConflicts */ public CreateAddonRequest withResolveConflicts(String resolveConflicts) { setResolveConflicts(resolveConflicts); return this; } /** *

* How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you * choose: *

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change * the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS * default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is installed on * your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if * conflicts are detected. This option works differently during the update operation. For more information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS * add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify. *

* * @param resolveConflicts * How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value * you choose:

*
    *
  • *

    * None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't * change the value. Creation of the add-on might fail. *

    *
  • *
  • *

    * Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon * EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS * default value. *

    *
  • *
  • *

    * Preserve – This is similar to the NONE option. If the self-managed version of the add-on is * installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on * might fail if conflicts are detected. This option works differently during the update operation. For more * information, see UpdateAddon. *

    *
  • *
*

* If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon * EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you * specify. * @return Returns a reference to this object so that method calls can be chained together. * @see ResolveConflicts */ public CreateAddonRequest withResolveConflicts(ResolveConflicts resolveConflicts) { this.resolveConflicts = resolveConflicts.toString(); return this; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

* * @param clientRequestToken * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

* * @return A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. */ public String getClientRequestToken() { return this.clientRequestToken; } /** *

* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

* * @param clientRequestToken * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** *

* Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You * define both. Tags don't propagate to any other cluster or Amazon Web Services resources. *

* * @return Metadata that assists with categorization and organization. Each tag consists of a key and an optional * value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. */ public java.util.Map getTags() { return tags; } /** *

* Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You * define both. Tags don't propagate to any other cluster or Amazon Web Services resources. *

* * @param tags * Metadata that assists with categorization and organization. Each tag consists of a key and an optional * value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You * define both. Tags don't propagate to any other cluster or Amazon Web Services resources. *

* * @param tags * Metadata that assists with categorization and organization. Each tag consists of a key and an optional * value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateAddonRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest clearTagsEntries() { this.tags = null; return this; } /** *

* The set of configuration values for the add-on that's created. The values that you provide are validated against * the schema returned by DescribeAddonConfiguration. *

* * @param configurationValues * The set of configuration values for the add-on that's created. The values that you provide are validated * against the schema returned by DescribeAddonConfiguration. */ public void setConfigurationValues(String configurationValues) { this.configurationValues = configurationValues; } /** *

* The set of configuration values for the add-on that's created. The values that you provide are validated against * the schema returned by DescribeAddonConfiguration. *

* * @return The set of configuration values for the add-on that's created. The values that you provide are validated * against the schema returned by DescribeAddonConfiguration. */ public String getConfigurationValues() { return this.configurationValues; } /** *

* The set of configuration values for the add-on that's created. The values that you provide are validated against * the schema returned by DescribeAddonConfiguration. *

* * @param configurationValues * The set of configuration values for the add-on that's created. The values that you provide are validated * against the schema returned by DescribeAddonConfiguration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withConfigurationValues(String configurationValues) { setConfigurationValues(configurationValues); return this; } /** *

* An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service * account to an IAM Role. *

*

* For more information, see Attach an * IAM Role to an Amazon EKS add-on using Pod Identity in the EKS User Guide. *

* * @return An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes * service account to an IAM Role.

*

* For more information, see Attach an IAM Role to an Amazon * EKS add-on using Pod Identity in the EKS User Guide. */ public java.util.List getPodIdentityAssociations() { return podIdentityAssociations; } /** *

* An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service * account to an IAM Role. *

*

* For more information, see Attach an * IAM Role to an Amazon EKS add-on using Pod Identity in the EKS User Guide. *

* * @param podIdentityAssociations * An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes * service account to an IAM Role.

*

* For more information, see Attach an IAM Role to an Amazon * EKS add-on using Pod Identity in the EKS User Guide. */ public void setPodIdentityAssociations(java.util.Collection podIdentityAssociations) { if (podIdentityAssociations == null) { this.podIdentityAssociations = null; return; } this.podIdentityAssociations = new java.util.ArrayList(podIdentityAssociations); } /** *

* An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service * account to an IAM Role. *

*

* For more information, see Attach an * IAM Role to an Amazon EKS add-on using Pod Identity in the EKS User Guide. *

*

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

* * @param podIdentityAssociations * An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes * service account to an IAM Role.

*

* For more information, see Attach an IAM Role to an Amazon * EKS add-on using Pod Identity in the EKS User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withPodIdentityAssociations(AddonPodIdentityAssociations... podIdentityAssociations) { if (this.podIdentityAssociations == null) { setPodIdentityAssociations(new java.util.ArrayList(podIdentityAssociations.length)); } for (AddonPodIdentityAssociations ele : podIdentityAssociations) { this.podIdentityAssociations.add(ele); } return this; } /** *

* An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes service * account to an IAM Role. *

*

* For more information, see Attach an * IAM Role to an Amazon EKS add-on using Pod Identity in the EKS User Guide. *

* * @param podIdentityAssociations * An array of Pod Identity Assocations to be created. Each EKS Pod Identity association maps a Kubernetes * service account to an IAM Role.

*

* For more information, see Attach an IAM Role to an Amazon * EKS add-on using Pod Identity in the EKS User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAddonRequest withPodIdentityAssociations(java.util.Collection podIdentityAssociations) { setPodIdentityAssociations(podIdentityAssociations); 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 (getClusterName() != null) sb.append("ClusterName: ").append(getClusterName()).append(","); if (getAddonName() != null) sb.append("AddonName: ").append(getAddonName()).append(","); if (getAddonVersion() != null) sb.append("AddonVersion: ").append(getAddonVersion()).append(","); if (getServiceAccountRoleArn() != null) sb.append("ServiceAccountRoleArn: ").append(getServiceAccountRoleArn()).append(","); if (getResolveConflicts() != null) sb.append("ResolveConflicts: ").append(getResolveConflicts()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getConfigurationValues() != null) sb.append("ConfigurationValues: ").append(getConfigurationValues()).append(","); if (getPodIdentityAssociations() != null) sb.append("PodIdentityAssociations: ").append(getPodIdentityAssociations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateAddonRequest == false) return false; CreateAddonRequest other = (CreateAddonRequest) obj; if (other.getClusterName() == null ^ this.getClusterName() == null) return false; if (other.getClusterName() != null && other.getClusterName().equals(this.getClusterName()) == 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.getAddonVersion() == null ^ this.getAddonVersion() == null) return false; if (other.getAddonVersion() != null && other.getAddonVersion().equals(this.getAddonVersion()) == false) return false; if (other.getServiceAccountRoleArn() == null ^ this.getServiceAccountRoleArn() == null) return false; if (other.getServiceAccountRoleArn() != null && other.getServiceAccountRoleArn().equals(this.getServiceAccountRoleArn()) == false) return false; if (other.getResolveConflicts() == null ^ this.getResolveConflicts() == null) return false; if (other.getResolveConflicts() != null && other.getResolveConflicts().equals(this.getResolveConflicts()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getConfigurationValues() == null ^ this.getConfigurationValues() == null) return false; if (other.getConfigurationValues() != null && other.getConfigurationValues().equals(this.getConfigurationValues()) == false) return false; if (other.getPodIdentityAssociations() == null ^ this.getPodIdentityAssociations() == null) return false; if (other.getPodIdentityAssociations() != null && other.getPodIdentityAssociations().equals(this.getPodIdentityAssociations()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterName() == null) ? 0 : getClusterName().hashCode()); hashCode = prime * hashCode + ((getAddonName() == null) ? 0 : getAddonName().hashCode()); hashCode = prime * hashCode + ((getAddonVersion() == null) ? 0 : getAddonVersion().hashCode()); hashCode = prime * hashCode + ((getServiceAccountRoleArn() == null) ? 0 : getServiceAccountRoleArn().hashCode()); hashCode = prime * hashCode + ((getResolveConflicts() == null) ? 0 : getResolveConflicts().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getConfigurationValues() == null) ? 0 : getConfigurationValues().hashCode()); hashCode = prime * hashCode + ((getPodIdentityAssociations() == null) ? 0 : getPodIdentityAssociations().hashCode()); return hashCode; } @Override public CreateAddonRequest clone() { return (CreateAddonRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy