/* * 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 the configuration of your local Amazon EKS cluster on an Amazon Web Services Outpost. This API * isn't available for Amazon EKS clusters on the Amazon Web Services cloud. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OutpostConfigResponse implements Serializable, Cloneable, StructuredPojo { /** *

* The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. *

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

* The Amazon EC2 instance type used for the control plane. The instance type is the same for all control plane * instances. *

*/ private String controlPlaneInstanceType; /** *

* An object representing the placement configuration for all the control plane instances of your local Amazon EKS * cluster on an Amazon Web Services Outpost. For more information, see Capacity * considerations in the Amazon EKS User Guide. *

*/ private ControlPlanePlacementResponse controlPlanePlacement; /** *

* The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. *

* * @return The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. */ public java.util.List getOutpostArns() { return outpostArns; } /** *

* The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. *

* * @param outpostArns * The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. */ public void setOutpostArns(java.util.Collection outpostArns) { if (outpostArns == null) { this.outpostArns = null; return; } this.outpostArns = new java.util.ArrayList(outpostArns); } /** *

* The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. *

*

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

* * @param outpostArns * The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. * @return Returns a reference to this object so that method calls can be chained together. */ public OutpostConfigResponse withOutpostArns(String... outpostArns) { if (this.outpostArns == null) { setOutpostArns(new java.util.ArrayList(outpostArns.length)); } for (String ele : outpostArns) { this.outpostArns.add(ele); } return this; } /** *

* The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. *

* * @param outpostArns * The ARN of the Outpost that you specified for use with your local Amazon EKS cluster on Outposts. * @return Returns a reference to this object so that method calls can be chained together. */ public OutpostConfigResponse withOutpostArns(java.util.Collection outpostArns) { setOutpostArns(outpostArns); return this; } /** *

* The Amazon EC2 instance type used for the control plane. The instance type is the same for all control plane * instances. *

* * @param controlPlaneInstanceType * The Amazon EC2 instance type used for the control plane. The instance type is the same for all control * plane instances. */ public void setControlPlaneInstanceType(String controlPlaneInstanceType) { this.controlPlaneInstanceType = controlPlaneInstanceType; } /** *

* The Amazon EC2 instance type used for the control plane. The instance type is the same for all control plane * instances. *

* * @return The Amazon EC2 instance type used for the control plane. The instance type is the same for all control * plane instances. */ public String getControlPlaneInstanceType() { return this.controlPlaneInstanceType; } /** *

* The Amazon EC2 instance type used for the control plane. The instance type is the same for all control plane * instances. *

* * @param controlPlaneInstanceType * The Amazon EC2 instance type used for the control plane. The instance type is the same for all control * plane instances. * @return Returns a reference to this object so that method calls can be chained together. */ public OutpostConfigResponse withControlPlaneInstanceType(String controlPlaneInstanceType) { setControlPlaneInstanceType(controlPlaneInstanceType); return this; } /** *

* An object representing the placement configuration for all the control plane instances of your local Amazon EKS * cluster on an Amazon Web Services Outpost. For more information, see Capacity * considerations in the Amazon EKS User Guide. *

* * @param controlPlanePlacement * An object representing the placement configuration for all the control plane instances of your local * Amazon EKS cluster on an Amazon Web Services Outpost. For more information, see Capacity * considerations in the Amazon EKS User Guide. */ public void setControlPlanePlacement(ControlPlanePlacementResponse controlPlanePlacement) { this.controlPlanePlacement = controlPlanePlacement; } /** *

* An object representing the placement configuration for all the control plane instances of your local Amazon EKS * cluster on an Amazon Web Services Outpost. For more information, see Capacity * considerations in the Amazon EKS User Guide. *

* * @return An object representing the placement configuration for all the control plane instances of your local * Amazon EKS cluster on an Amazon Web Services Outpost. For more information, see Capacity considerations in the Amazon EKS User Guide. */ public ControlPlanePlacementResponse getControlPlanePlacement() { return this.controlPlanePlacement; } /** *

* An object representing the placement configuration for all the control plane instances of your local Amazon EKS * cluster on an Amazon Web Services Outpost. For more information, see Capacity * considerations in the Amazon EKS User Guide. *

* * @param controlPlanePlacement * An object representing the placement configuration for all the control plane instances of your local * Amazon EKS cluster on an Amazon Web Services Outpost. For more information, see Capacity * considerations in the Amazon EKS User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public OutpostConfigResponse withControlPlanePlacement(ControlPlanePlacementResponse controlPlanePlacement) { setControlPlanePlacement(controlPlanePlacement); 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 (getOutpostArns() != null) sb.append("OutpostArns: ").append(getOutpostArns()).append(","); if (getControlPlaneInstanceType() != null) sb.append("ControlPlaneInstanceType: ").append(getControlPlaneInstanceType()).append(","); if (getControlPlanePlacement() != null) sb.append("ControlPlanePlacement: ").append(getControlPlanePlacement()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OutpostConfigResponse == false) return false; OutpostConfigResponse other = (OutpostConfigResponse) obj; if (other.getOutpostArns() == null ^ this.getOutpostArns() == null) return false; if (other.getOutpostArns() != null && other.getOutpostArns().equals(this.getOutpostArns()) == false) return false; if (other.getControlPlaneInstanceType() == null ^ this.getControlPlaneInstanceType() == null) return false; if (other.getControlPlaneInstanceType() != null && other.getControlPlaneInstanceType().equals(this.getControlPlaneInstanceType()) == false) return false; if (other.getControlPlanePlacement() == null ^ this.getControlPlanePlacement() == null) return false; if (other.getControlPlanePlacement() != null && other.getControlPlanePlacement().equals(this.getControlPlanePlacement()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOutpostArns() == null) ? 0 : getOutpostArns().hashCode()); hashCode = prime * hashCode + ((getControlPlaneInstanceType() == null) ? 0 : getControlPlaneInstanceType().hashCode()); hashCode = prime * hashCode + ((getControlPlanePlacement() == null) ? 0 : getControlPlanePlacement().hashCode()); return hashCode; } @Override public OutpostConfigResponse clone() { try { return (OutpostConfigResponse) 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.eks.model.transform.OutpostConfigResponseMarshaller.getInstance().marshall(this, protocolMarshaller); } }