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

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

    /**
     * 

* The name of the cluster to create the association in. *

*/ private String clusterName; /** *

* The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the * pods that use the service account must be in this namespace. *

*/ private String namespace; /** *

* The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. *

*/ private String serviceAccount; /** *

* The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity agent * manages credentials to assume this role for applications in the containers in the pods that use this service * account. *

*/ private String roleArn; /** *

* 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. *

*

* The following basic restrictions apply to tags: *

*
    *
  • *

    * Maximum number of tags per resource – 50 *

    *
  • *
  • *

    * For each resource, each tag key must be unique, and each tag key can have only one value. *

    *
  • *
  • *

    * Maximum key length – 128 Unicode characters in UTF-8 *

    *
  • *
  • *

    * Maximum value length – 256 Unicode characters in UTF-8 *

    *
  • *
  • *

    * If your tagging schema is used across multiple services and resources, remember that other services may have * restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable * in UTF-8, and the following characters: + - = . _ : / @. *

    *
  • *
  • *

    * Tag keys and values are case-sensitive. *

    *
  • *
  • *

    * Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for * either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values * with this prefix. Tags with this prefix do not count against your tags per resource limit. *

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

* The name of the cluster to create the association in. *

* * @param clusterName * The name of the cluster to create the association in. */ public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** *

* The name of the cluster to create the association in. *

* * @return The name of the cluster to create the association in. */ public String getClusterName() { return this.clusterName; } /** *

* The name of the cluster to create the association in. *

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

* The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the * pods that use the service account must be in this namespace. *

* * @param namespace * The name of the Kubernetes namespace inside the cluster to create the association in. The service account * and the pods that use the service account must be in this namespace. */ public void setNamespace(String namespace) { this.namespace = namespace; } /** *

* The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the * pods that use the service account must be in this namespace. *

* * @return The name of the Kubernetes namespace inside the cluster to create the association in. The service account * and the pods that use the service account must be in this namespace. */ public String getNamespace() { return this.namespace; } /** *

* The name of the Kubernetes namespace inside the cluster to create the association in. The service account and the * pods that use the service account must be in this namespace. *

* * @param namespace * The name of the Kubernetes namespace inside the cluster to create the association in. The service account * and the pods that use the service account must be in this namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePodIdentityAssociationRequest withNamespace(String namespace) { setNamespace(namespace); return this; } /** *

* The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. *

* * @param serviceAccount * The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. */ public void setServiceAccount(String serviceAccount) { this.serviceAccount = serviceAccount; } /** *

* The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. *

* * @return The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. */ public String getServiceAccount() { return this.serviceAccount; } /** *

* The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. *

* * @param serviceAccount * The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePodIdentityAssociationRequest withServiceAccount(String serviceAccount) { setServiceAccount(serviceAccount); return this; } /** *

* The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity agent * manages credentials to assume this role for applications in the containers in the pods that use this service * account. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity * agent manages credentials to assume this role for applications in the containers in the pods that use this * service account. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity agent * manages credentials to assume this role for applications in the containers in the pods that use this service * account. *

* * @return The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod * Identity agent manages credentials to assume this role for applications in the containers in the pods * that use this service account. */ public String getRoleArn() { return this.roleArn; } /** *

* The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity agent * manages credentials to assume this role for applications in the containers in the pods that use this service * account. *

* * @param roleArn * The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity * agent manages credentials to assume this role for applications in the containers in the pods that use this * service account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePodIdentityAssociationRequest withRoleArn(String roleArn) { setRoleArn(roleArn); 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 CreatePodIdentityAssociationRequest 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. *

*

* The following basic restrictions apply to tags: *

*
    *
  • *

    * Maximum number of tags per resource – 50 *

    *
  • *
  • *

    * For each resource, each tag key must be unique, and each tag key can have only one value. *

    *
  • *
  • *

    * Maximum key length – 128 Unicode characters in UTF-8 *

    *
  • *
  • *

    * Maximum value length – 256 Unicode characters in UTF-8 *

    *
  • *
  • *

    * If your tagging schema is used across multiple services and resources, remember that other services may have * restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable * in UTF-8, and the following characters: + - = . _ : / @. *

    *
  • *
  • *

    * Tag keys and values are case-sensitive. *

    *
  • *
  • *

    * Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for * either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values * with this prefix. Tags with this prefix do not count against your tags per resource limit. *

    *
  • *
* * @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.

*

* The following basic restrictions apply to tags: *

*
    *
  • *

    * Maximum number of tags per resource – 50 *

    *
  • *
  • *

    * For each resource, each tag key must be unique, and each tag key can have only one value. *

    *
  • *
  • *

    * Maximum key length – 128 Unicode characters in UTF-8 *

    *
  • *
  • *

    * Maximum value length – 256 Unicode characters in UTF-8 *

    *
  • *
  • *

    * If your tagging schema is used across multiple services and resources, remember that other services may * have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @. *

    *
  • *
  • *

    * Tag keys and values are case-sensitive. *

    *
  • *
  • *

    * Do not use aws:, AWS:, or any upper or lowercase combination of such as a * prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete * tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource * limit. *

    *
  • */ 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. *

    *

    * The following basic restrictions apply to tags: *

    *
      *
    • *

      * Maximum number of tags per resource – 50 *

      *
    • *
    • *

      * For each resource, each tag key must be unique, and each tag key can have only one value. *

      *
    • *
    • *

      * Maximum key length – 128 Unicode characters in UTF-8 *

      *
    • *
    • *

      * Maximum value length – 256 Unicode characters in UTF-8 *

      *
    • *
    • *

      * If your tagging schema is used across multiple services and resources, remember that other services may have * restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable * in UTF-8, and the following characters: + - = . _ : / @. *

      *
    • *
    • *

      * Tag keys and values are case-sensitive. *

      *
    • *
    • *

      * Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for * either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values * with this prefix. Tags with this prefix do not count against your tags per resource limit. *

      *
    • *
    * * @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.

    *

    * The following basic restrictions apply to tags: *

    *
      *
    • *

      * Maximum number of tags per resource – 50 *

      *
    • *
    • *

      * For each resource, each tag key must be unique, and each tag key can have only one value. *

      *
    • *
    • *

      * Maximum key length – 128 Unicode characters in UTF-8 *

      *
    • *
    • *

      * Maximum value length – 256 Unicode characters in UTF-8 *

      *
    • *
    • *

      * If your tagging schema is used across multiple services and resources, remember that other services may * have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @. *

      *
    • *
    • *

      * Tag keys and values are case-sensitive. *

      *
    • *
    • *

      * Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix * for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag * keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit. *

      *
    • */ 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. *

      *

      * The following basic restrictions apply to tags: *

      *
        *
      • *

        * Maximum number of tags per resource – 50 *

        *
      • *
      • *

        * For each resource, each tag key must be unique, and each tag key can have only one value. *

        *
      • *
      • *

        * Maximum key length – 128 Unicode characters in UTF-8 *

        *
      • *
      • *

        * Maximum value length – 256 Unicode characters in UTF-8 *

        *
      • *
      • *

        * If your tagging schema is used across multiple services and resources, remember that other services may have * restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable * in UTF-8, and the following characters: + - = . _ : / @. *

        *
      • *
      • *

        * Tag keys and values are case-sensitive. *

        *
      • *
      • *

        * Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for * either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values * with this prefix. Tags with this prefix do not count against your tags per resource limit. *

        *
      • *
      * * @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.

      *

      * The following basic restrictions apply to tags: *

      *
        *
      • *

        * Maximum number of tags per resource – 50 *

        *
      • *
      • *

        * For each resource, each tag key must be unique, and each tag key can have only one value. *

        *
      • *
      • *

        * Maximum key length – 128 Unicode characters in UTF-8 *

        *
      • *
      • *

        * Maximum value length – 256 Unicode characters in UTF-8 *

        *
      • *
      • *

        * If your tagging schema is used across multiple services and resources, remember that other services may * have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces * representable in UTF-8, and the following characters: + - = . _ : / @. *

        *
      • *
      • *

        * Tag keys and values are case-sensitive. *

        *
      • *
      • *

        * Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix * for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag * keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePodIdentityAssociationRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreatePodIdentityAssociationRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreatePodIdentityAssociationRequest 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 CreatePodIdentityAssociationRequest clearTagsEntries() { this.tags = null; 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 (getNamespace() != null) sb.append("Namespace: ").append(getNamespace()).append(","); if (getServiceAccount() != null) sb.append("ServiceAccount: ").append(getServiceAccount()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePodIdentityAssociationRequest == false) return false; CreatePodIdentityAssociationRequest other = (CreatePodIdentityAssociationRequest) obj; if (other.getClusterName() == null ^ this.getClusterName() == null) return false; if (other.getClusterName() != null && other.getClusterName().equals(this.getClusterName()) == false) return false; if (other.getNamespace() == null ^ this.getNamespace() == null) return false; if (other.getNamespace() != null && other.getNamespace().equals(this.getNamespace()) == false) return false; if (other.getServiceAccount() == null ^ this.getServiceAccount() == null) return false; if (other.getServiceAccount() != null && other.getServiceAccount().equals(this.getServiceAccount()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterName() == null) ? 0 : getClusterName().hashCode()); hashCode = prime * hashCode + ((getNamespace() == null) ? 0 : getNamespace().hashCode()); hashCode = prime * hashCode + ((getServiceAccount() == null) ? 0 : getServiceAccount().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreatePodIdentityAssociationRequest clone() { return (CreatePodIdentityAssociationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy