
com.amazonaws.services.eks.model.ServerException Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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 server-side issue.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ServerException 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;
/**
*
* The Amazon EKS add-on name associated with the exception.
*
*/
private String addonName;
/**
*
* The Amazon EKS subscription ID with the exception.
*
*/
private String subscriptionId;
/**
* Constructs a new ServerException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ServerException(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 ServerException 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 ServerException withNodegroupName(String nodegroupName) {
setNodegroupName(nodegroupName);
return this;
}
/**
*
* The Amazon EKS add-on name associated with the exception.
*
*
* @param addonName
* The Amazon EKS add-on name associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("addonName")
public void setAddonName(String addonName) {
this.addonName = addonName;
}
/**
*
* The Amazon EKS add-on name associated with the exception.
*
*
* @return The Amazon EKS add-on name associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("addonName")
public String getAddonName() {
return this.addonName;
}
/**
*
* The Amazon EKS add-on name associated with the exception.
*
*
* @param addonName
* The Amazon EKS add-on name associated with the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerException withAddonName(String addonName) {
setAddonName(addonName);
return this;
}
/**
*
* The Amazon EKS subscription ID with the exception.
*
*
* @param subscriptionId
* The Amazon EKS subscription ID with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("subscriptionId")
public void setSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
}
/**
*
* The Amazon EKS subscription ID with the exception.
*
*
* @return The Amazon EKS subscription ID with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("subscriptionId")
public String getSubscriptionId() {
return this.subscriptionId;
}
/**
*
* The Amazon EKS subscription ID with the exception.
*
*
* @param subscriptionId
* The Amazon EKS subscription ID with the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerException withSubscriptionId(String subscriptionId) {
setSubscriptionId(subscriptionId);
return this;
}
}