com.amazonaws.services.resiliencehub.model.EksSourceClusterNamespace Maven / Gradle / Ivy
Show all versions of aws-java-sdk-resiliencehub Show documentation
/*
* 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 namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class EksSourceClusterNamespace implements Serializable, Cloneable, StructuredPojo {
/**
*
* 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 Amazon Web Services General Reference guide.
*
*/
private String eksClusterArn;
/**
*
* Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*
*/
private String namespace;
/**
*
* 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 Amazon Web Services General Reference guide.
*
*
* @param eksClusterArn
* 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 Amazon Web Services General Reference guide.
*/
public void setEksClusterArn(String eksClusterArn) {
this.eksClusterArn = eksClusterArn;
}
/**
*
* 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 Amazon Web Services General Reference guide.
*
*
* @return 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 Amazon Web Services General Reference guide.
*/
public String getEksClusterArn() {
return this.eksClusterArn;
}
/**
*
* 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 Amazon Web Services General Reference guide.
*
*
* @param eksClusterArn
* 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 Amazon Web Services General Reference guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EksSourceClusterNamespace withEksClusterArn(String eksClusterArn) {
setEksClusterArn(eksClusterArn);
return this;
}
/**
*
* Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*
*
* @param namespace
* Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*/
public void setNamespace(String namespace) {
this.namespace = namespace;
}
/**
*
* Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*
*
* @return Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*/
public String getNamespace() {
return this.namespace;
}
/**
*
* Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
*
*
* @param namespace
* Name of the namespace that is located on your Amazon Elastic Kubernetes Service cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EksSourceClusterNamespace withNamespace(String namespace) {
setNamespace(namespace);
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 (getEksClusterArn() != null)
sb.append("EksClusterArn: ").append(getEksClusterArn()).append(",");
if (getNamespace() != null)
sb.append("Namespace: ").append(getNamespace());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof EksSourceClusterNamespace == false)
return false;
EksSourceClusterNamespace other = (EksSourceClusterNamespace) obj;
if (other.getEksClusterArn() == null ^ this.getEksClusterArn() == null)
return false;
if (other.getEksClusterArn() != null && other.getEksClusterArn().equals(this.getEksClusterArn()) == false)
return false;
if (other.getNamespace() == null ^ this.getNamespace() == null)
return false;
if (other.getNamespace() != null && other.getNamespace().equals(this.getNamespace()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEksClusterArn() == null) ? 0 : getEksClusterArn().hashCode());
hashCode = prime * hashCode + ((getNamespace() == null) ? 0 : getNamespace().hashCode());
return hashCode;
}
@Override
public EksSourceClusterNamespace clone() {
try {
return (EksSourceClusterNamespace) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.resiliencehub.model.transform.EksSourceClusterNamespaceMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}