/* * 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 an error when an asynchronous operation fails. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ErrorDetail implements Serializable, Cloneable, StructuredPojo { /** ** A brief description of the error. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required access * permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** A more complete description of the error. *
*/ private String errorMessage; /** ** An optional field that contains the resource IDs associated with the error. *
*/ private java.util.List* A brief description of the error. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required access * permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required * access permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** A brief description of the error. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required access * permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required * access permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** A brief description of the error. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required access * permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required * access permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** A brief description of the error. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required access * permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** SubnetNotFound: We couldn't find one of the subnets associated with the cluster. *
** SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. *
** EniLimitReached: You have reached the elastic network interface limit for your account. *
** IpNotAvailable: A subnet associated with the cluster doesn't have any free IP addresses. *
** AccessDenied: You don't have permissions to perform the specified operation. *
** OperationNotPermitted: The service role associated with the cluster doesn't have the required * access permissions for Amazon EKS. *
** VpcIdNotFound: We couldn't find the VPC associated with the cluster. *
** A more complete description of the error. *
* * @param errorMessage * A more complete description of the error. */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** ** A more complete description of the error. *
* * @return A more complete description of the error. */ public String getErrorMessage() { return this.errorMessage; } /** ** A more complete description of the error. *
* * @param errorMessage * A more complete description of the error. * @return Returns a reference to this object so that method calls can be chained together. */ public ErrorDetail withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** ** An optional field that contains the resource IDs associated with the error. *
* * @return An optional field that contains the resource IDs associated with the error. */ public java.util.List* An optional field that contains the resource IDs associated with the error. *
* * @param resourceIds * An optional field that contains the resource IDs associated with the error. */ public void setResourceIds(java.util.Collection* An optional field that contains the resource IDs associated with the error. *
** 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 * An optional field that contains the resource IDs associated with the error. * @return Returns a reference to this object so that method calls can be chained together. */ public ErrorDetail withResourceIds(String... resourceIds) { if (this.resourceIds == null) { setResourceIds(new java.util.ArrayList* An optional field that contains the resource IDs associated with the error. *
* * @param resourceIds * An optional field that contains the resource IDs associated with the error. * @return Returns a reference to this object so that method calls can be chained together. */ public ErrorDetail withResourceIds(java.util.Collection