/* * 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.resiliencehub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The input source of the Amazon Elastic Kubernetes Service cluster. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EksSource implements Serializable, Cloneable, StructuredPojo { /** *
* The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn:
* aws
:eks:region
:account-id
:cluster/cluster-name
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the AWS General Reference guide.
*
* The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. *
*/ private java.util.List
* The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn:
* aws
:eks:region
:account-id
:cluster/cluster-name
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the AWS General Reference guide.
*
aws
:eks:region
:account-id
:cluster/cluster-name
* . For more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public void setEksClusterArn(String eksClusterArn) {
this.eksClusterArn = eksClusterArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn:
* aws
:eks:region
:account-id
:cluster/cluster-name
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the AWS General Reference guide.
*
aws
:eks:region
:account-id
:cluster/
* cluster-name
. For more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
*/
public String getEksClusterArn() {
return this.eksClusterArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon Elastic Kubernetes Service cluster. The format for this ARN is: arn:
* aws
:eks:region
:account-id
:cluster/cluster-name
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the AWS General Reference guide.
*
aws
:eks:region
:account-id
:cluster/cluster-name
* . For more information about ARNs, see Amazon Resource Names
* (ARNs) in the AWS General Reference guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EksSource withEksClusterArn(String eksClusterArn) {
setEksClusterArn(eksClusterArn);
return this;
}
/**
* * The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. *
* * @return The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. */ public java.util.List* The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. *
* * @param namespaces * The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. */ public void setNamespaces(java.util.Collection* The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNamespaces(java.util.Collection)} or {@link #withNamespaces(java.util.Collection)} if you want to * override the existing values. *
* * @param namespaces * The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public EksSource withNamespaces(String... namespaces) { if (this.namespaces == null) { setNamespaces(new java.util.ArrayList* The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. *
* * @param namespaces * The list of namespaces located on your Amazon Elastic Kubernetes Service cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public EksSource withNamespaces(java.util.Collection