/* * 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 related to an add-on. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AddonIssue implements Serializable, Cloneable, StructuredPojo { /** ** A code that describes the type of issue. *
*/ private String code; /** ** A message that provides details about the issue and what might cause it. *
*/ private String message; /** ** The resource IDs of the issue. *
*/ private java.util.List* A code that describes the type of issue. *
* * @param code * A code that describes the type of issue. * @see AddonIssueCode */ public void setCode(String code) { this.code = code; } /** ** A code that describes the type of issue. *
* * @return A code that describes the type of issue. * @see AddonIssueCode */ public String getCode() { return this.code; } /** ** A code that describes the type of issue. *
* * @param code * A code that describes the type of issue. * @return Returns a reference to this object so that method calls can be chained together. * @see AddonIssueCode */ public AddonIssue withCode(String code) { setCode(code); return this; } /** ** A code that describes the type of issue. *
* * @param code * A code that describes the type of issue. * @return Returns a reference to this object so that method calls can be chained together. * @see AddonIssueCode */ public AddonIssue withCode(AddonIssueCode code) { this.code = code.toString(); return this; } /** ** A message that provides details about the issue and what might cause it. *
* * @param message * A message that provides details about the issue and what might cause it. */ public void setMessage(String message) { this.message = message; } /** ** A message that provides details about the issue and what might cause it. *
* * @return A message that provides details about the issue and what might cause it. */ public String getMessage() { return this.message; } /** ** A message that provides details about the issue and what might cause it. *
* * @param message * A message that provides details about the issue and what might cause it. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonIssue withMessage(String message) { setMessage(message); return this; } /** ** The resource IDs of the issue. *
* * @return The resource IDs of the issue. */ public java.util.List* The resource IDs of the issue. *
* * @param resourceIds * The resource IDs of the issue. */ public void setResourceIds(java.util.Collection* The resource IDs of the issue. *
** 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 of the issue. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonIssue withResourceIds(String... resourceIds) { if (this.resourceIds == null) { setResourceIds(new java.util.ArrayList* The resource IDs of the issue. *
* * @param resourceIds * The resource IDs of the issue. * @return Returns a reference to this object so that method calls can be chained together. */ public AddonIssue withResourceIds(java.util.Collection