/* * 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 issue with your local Amazon EKS cluster on an Amazon Web Services Outpost. You can't use this API with an Amazon * EKS cluster on the Amazon Web Services cloud. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ClusterIssue implements Serializable, Cloneable, StructuredPojo { /** ** The error code of the issue. *
*/ private String code; /** ** A description of the issue. *
*/ private String message; /** ** The resource IDs that the issue relates to. *
*/ private java.util.List* The error code of the issue. *
* * @param code * The error code of the issue. * @see ClusterIssueCode */ public void setCode(String code) { this.code = code; } /** ** The error code of the issue. *
* * @return The error code of the issue. * @see ClusterIssueCode */ public String getCode() { return this.code; } /** ** The error code of the issue. *
* * @param code * The error code of the issue. * @return Returns a reference to this object so that method calls can be chained together. * @see ClusterIssueCode */ public ClusterIssue withCode(String code) { setCode(code); return this; } /** ** The error code of the issue. *
* * @param code * The error code of the issue. * @return Returns a reference to this object so that method calls can be chained together. * @see ClusterIssueCode */ public ClusterIssue withCode(ClusterIssueCode code) { this.code = code.toString(); return this; } /** ** A description of the issue. *
* * @param message * A description of the issue. */ public void setMessage(String message) { this.message = message; } /** ** A description of the issue. *
* * @return A description of the issue. */ public String getMessage() { return this.message; } /** ** A description of the issue. *
* * @param message * A description of the issue. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterIssue withMessage(String message) { setMessage(message); return this; } /** ** The resource IDs that the issue relates to. *
* * @return The resource IDs that the issue relates to. */ public java.util.List* The resource IDs that the issue relates to. *
* * @param resourceIds * The resource IDs that the issue relates to. */ public void setResourceIds(java.util.Collection* The resource IDs that the issue relates to. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceIds(java.util.Collection)} or {@link #withResourceIds(java.util.Collection)} if you want to * override the existing values. *
* * @param resourceIds * The resource IDs that the issue relates to. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterIssue withResourceIds(String... resourceIds) { if (this.resourceIds == null) { setResourceIds(new java.util.ArrayList* The resource IDs that the issue relates to. *
* * @param resourceIds * The resource IDs that the issue relates to. * @return Returns a reference to this object so that method calls can be chained together. */ public ClusterIssue withResourceIds(java.util.Collection