
com.amazonaws.services.eks.model.ClientException Maven / Gradle / Ivy
/*
* Copyright 2014-2019 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;
/**
* 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy