/* * 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 javax.annotation.Generated; /** *
* These errors are usually caused by a client action. Actions can include using an action or resource on behalf of a * user that doesn't have permissions to use the action or resource or specifying an identifier that is not valid. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ClientException extends com.amazonaws.services.eks.model.AmazonEKSException { private static final long serialVersionUID = 1L; /** ** The Amazon EKS cluster associated with the exception. *
*/ private String clusterName; /** ** The Amazon EKS managed node group associated with the exception. *
*/ private String nodegroupName; private String addonName; /** * Constructs a new ClientException with the specified error message. * * @param message * Describes the error encountered. */ public ClientException(String message) { super(message); } /** ** The Amazon EKS cluster associated with the exception. *
* * @param clusterName * The Amazon EKS cluster associated with the exception. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterName") public void setClusterName(String clusterName) { this.clusterName = clusterName; } /** ** The Amazon EKS cluster associated with the exception. *
* * @return The Amazon EKS cluster associated with the exception. */ @com.fasterxml.jackson.annotation.JsonProperty("clusterName") public String getClusterName() { return this.clusterName; } /** ** The Amazon EKS cluster associated with the exception. *
* * @param clusterName * The Amazon EKS cluster associated with the exception. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientException withClusterName(String clusterName) { setClusterName(clusterName); return this; } /** ** The Amazon EKS managed node group associated with the exception. *
* * @param nodegroupName * The Amazon EKS managed node group associated with the exception. */ @com.fasterxml.jackson.annotation.JsonProperty("nodegroupName") public void setNodegroupName(String nodegroupName) { this.nodegroupName = nodegroupName; } /** ** The Amazon EKS managed node group associated with the exception. *
* * @return The Amazon EKS managed node group associated with the exception. */ @com.fasterxml.jackson.annotation.JsonProperty("nodegroupName") public String getNodegroupName() { return this.nodegroupName; } /** ** The Amazon EKS managed node group associated with the exception. *
* * @param nodegroupName * The Amazon EKS managed node group associated with the exception. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientException withNodegroupName(String nodegroupName) { setNodegroupName(nodegroupName); return this; } /** * @param addonName */ @com.fasterxml.jackson.annotation.JsonProperty("addonName") public void setAddonName(String addonName) { this.addonName = addonName; } /** * @return */ @com.fasterxml.jackson.annotation.JsonProperty("addonName") public String getAddonName() { return this.addonName; } /** * @param addonName * @return Returns a reference to this object so that method calls can be chained together. */ public ClientException withAddonName(String addonName) { setAddonName(addonName); return this; } }