
com.amazonaws.services.eks.model.ResourceNotFoundException 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;
/**
*
* The specified resource could not be found. You can view your available clusters with ListClusters
. You
* can view your available managed node groups with ListNodegroups
. Amazon EKS clusters and node groups are
* Amazon Web Services Region specific.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ResourceNotFoundException 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 Fargate profile associated with the exception.
*
*/
private String fargateProfileName;
/**
*
* 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 ResourceNotFoundException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ResourceNotFoundException(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 ResourceNotFoundException 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 ResourceNotFoundException withNodegroupName(String nodegroupName) {
setNodegroupName(nodegroupName);
return this;
}
/**
*
* The Fargate profile associated with the exception.
*
*
* @param fargateProfileName
* The Fargate profile associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("fargateProfileName")
public void setFargateProfileName(String fargateProfileName) {
this.fargateProfileName = fargateProfileName;
}
/**
*
* The Fargate profile associated with the exception.
*
*
* @return The Fargate profile associated with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("fargateProfileName")
public String getFargateProfileName() {
return this.fargateProfileName;
}
/**
*
* The Fargate profile associated with the exception.
*
*
* @param fargateProfileName
* The Fargate profile associated with the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResourceNotFoundException withFargateProfileName(String fargateProfileName) {
setFargateProfileName(fargateProfileName);
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 ResourceNotFoundException 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 ResourceNotFoundException withSubscriptionId(String subscriptionId) {
setSubscriptionId(subscriptionId);
return this;
}
}