/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object representing an Fargate profile. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FargateProfile implements Serializable, Cloneable, StructuredPojo { /** ** The name of the Fargate profile. *
*/ private String fargateProfileName; /** ** The full Amazon Resource Name (ARN) of the Fargate profile. *
*/ private String fargateProfileArn; /** ** The name of the Amazon EKS cluster that the Fargate profile belongs to. *
*/ private String clusterName; /** ** The Unix epoch timestamp in seconds for when the Fargate profile was created. *
*/ private java.util.Date createdAt; /** ** The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate * profile. For more information, see Pod Execution Role in the * Amazon EKS User Guide. *
*/ private String podExecutionRoleArn; /** ** The IDs of subnets to launch pods into. *
*/ private java.util.List* The selectors to match for pods to use this Fargate profile. *
*/ private java.util.List* The current status of the Fargate profile. *
*/ private String status; /** ** The metadata applied to the Fargate profile to assist with categorization and organization. Each tag consists of * a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources * associated with the Fargate profile, such as the pods that are scheduled with it. *
*/ private java.util.Map* The name of the Fargate profile. *
* * @param fargateProfileName * The name of the Fargate profile. */ public void setFargateProfileName(String fargateProfileName) { this.fargateProfileName = fargateProfileName; } /** ** The name of the Fargate profile. *
* * @return The name of the Fargate profile. */ public String getFargateProfileName() { return this.fargateProfileName; } /** ** The name of the Fargate profile. *
* * @param fargateProfileName * The name of the Fargate profile. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withFargateProfileName(String fargateProfileName) { setFargateProfileName(fargateProfileName); return this; } /** ** The full Amazon Resource Name (ARN) of the Fargate profile. *
* * @param fargateProfileArn * The full Amazon Resource Name (ARN) of the Fargate profile. */ public void setFargateProfileArn(String fargateProfileArn) { this.fargateProfileArn = fargateProfileArn; } /** ** The full Amazon Resource Name (ARN) of the Fargate profile. *
* * @return The full Amazon Resource Name (ARN) of the Fargate profile. */ public String getFargateProfileArn() { return this.fargateProfileArn; } /** ** The full Amazon Resource Name (ARN) of the Fargate profile. *
* * @param fargateProfileArn * The full Amazon Resource Name (ARN) of the Fargate profile. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withFargateProfileArn(String fargateProfileArn) { setFargateProfileArn(fargateProfileArn); return this; } /** ** The name of the Amazon EKS cluster that the Fargate profile belongs to. *
* * @param clusterName * The name of the Amazon EKS cluster that the Fargate profile belongs to. */ public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** ** The name of the Amazon EKS cluster that the Fargate profile belongs to. *
* * @return The name of the Amazon EKS cluster that the Fargate profile belongs to. */ public String getClusterName() { return this.clusterName; } /** ** The name of the Amazon EKS cluster that the Fargate profile belongs to. *
* * @param clusterName * The name of the Amazon EKS cluster that the Fargate profile belongs to. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withClusterName(String clusterName) { setClusterName(clusterName); return this; } /** ** The Unix epoch timestamp in seconds for when the Fargate profile was created. *
* * @param createdAt * The Unix epoch timestamp in seconds for when the Fargate profile was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The Unix epoch timestamp in seconds for when the Fargate profile was created. *
* * @return The Unix epoch timestamp in seconds for when the Fargate profile was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The Unix epoch timestamp in seconds for when the Fargate profile was created. *
* * @param createdAt * The Unix epoch timestamp in seconds for when the Fargate profile was created. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate * profile. For more information, see Pod Execution Role in the * Amazon EKS User Guide. *
* * @param podExecutionRoleArn * The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the * Fargate profile. For more information, see Pod Execution Role in * the Amazon EKS User Guide. */ public void setPodExecutionRoleArn(String podExecutionRoleArn) { this.podExecutionRoleArn = podExecutionRoleArn; } /** ** The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate * profile. For more information, see Pod Execution Role in the * Amazon EKS User Guide. *
* * @return The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the * Fargate profile. For more information, see Pod Execution Role in * the Amazon EKS User Guide. */ public String getPodExecutionRoleArn() { return this.podExecutionRoleArn; } /** ** The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate * profile. For more information, see Pod Execution Role in the * Amazon EKS User Guide. *
* * @param podExecutionRoleArn * The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the * Fargate profile. For more information, see Pod Execution Role in * the Amazon EKS User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withPodExecutionRoleArn(String podExecutionRoleArn) { setPodExecutionRoleArn(podExecutionRoleArn); return this; } /** ** The IDs of subnets to launch pods into. *
* * @return The IDs of subnets to launch pods into. */ public java.util.List* The IDs of subnets to launch pods into. *
* * @param subnets * The IDs of subnets to launch pods into. */ public void setSubnets(java.util.Collection* The IDs of subnets to launch pods into. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override * the existing values. *
* * @param subnets * The IDs of subnets to launch pods into. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withSubnets(String... subnets) { if (this.subnets == null) { setSubnets(new java.util.ArrayList* The IDs of subnets to launch pods into. *
* * @param subnets * The IDs of subnets to launch pods into. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withSubnets(java.util.Collection* The selectors to match for pods to use this Fargate profile. *
* * @return The selectors to match for pods to use this Fargate profile. */ public java.util.List* The selectors to match for pods to use this Fargate profile. *
* * @param selectors * The selectors to match for pods to use this Fargate profile. */ public void setSelectors(java.util.Collection* The selectors to match for pods to use this Fargate profile. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSelectors(java.util.Collection)} or {@link #withSelectors(java.util.Collection)} if you want to * override the existing values. *
* * @param selectors * The selectors to match for pods to use this Fargate profile. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withSelectors(FargateProfileSelector... selectors) { if (this.selectors == null) { setSelectors(new java.util.ArrayList* The selectors to match for pods to use this Fargate profile. *
* * @param selectors * The selectors to match for pods to use this Fargate profile. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withSelectors(java.util.Collection* The current status of the Fargate profile. *
* * @param status * The current status of the Fargate profile. * @see FargateProfileStatus */ public void setStatus(String status) { this.status = status; } /** ** The current status of the Fargate profile. *
* * @return The current status of the Fargate profile. * @see FargateProfileStatus */ public String getStatus() { return this.status; } /** ** The current status of the Fargate profile. *
* * @param status * The current status of the Fargate profile. * @return Returns a reference to this object so that method calls can be chained together. * @see FargateProfileStatus */ public FargateProfile withStatus(String status) { setStatus(status); return this; } /** ** The current status of the Fargate profile. *
* * @param status * The current status of the Fargate profile. * @return Returns a reference to this object so that method calls can be chained together. * @see FargateProfileStatus */ public FargateProfile withStatus(FargateProfileStatus status) { this.status = status.toString(); return this; } /** ** The metadata applied to the Fargate profile to assist with categorization and organization. Each tag consists of * a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources * associated with the Fargate profile, such as the pods that are scheduled with it. *
* * @return The metadata applied to the Fargate profile to assist with categorization and organization. Each tag * consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any * other resources associated with the Fargate profile, such as the pods that are scheduled with it. */ public java.util.Map* The metadata applied to the Fargate profile to assist with categorization and organization. Each tag consists of * a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources * associated with the Fargate profile, such as the pods that are scheduled with it. *
* * @param tags * The metadata applied to the Fargate profile to assist with categorization and organization. Each tag * consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any * other resources associated with the Fargate profile, such as the pods that are scheduled with it. */ public void setTags(java.util.Map* The metadata applied to the Fargate profile to assist with categorization and organization. Each tag consists of * a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources * associated with the Fargate profile, such as the pods that are scheduled with it. *
* * @param tags * The metadata applied to the Fargate profile to assist with categorization and organization. Each tag * consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any * other resources associated with the Fargate profile, such as the pods that are scheduled with it. * @return Returns a reference to this object so that method calls can be chained together. */ public FargateProfile withTags(java.util.Map