/* * 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; /** *

* 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 * 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; private String addonName; /** * 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; } /** * @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 ResourceNotFoundException withAddonName(String addonName) { setAddonName(addonName); return this; } }