1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/eks/EKS_EXPORTS.h>
8 #include <aws/eks/EKSRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EKS
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_EKS_API DeleteNodegroupRequest : public EKSRequest
22   {
23   public:
24     DeleteNodegroupRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "DeleteNodegroup"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The name of the Amazon EKS cluster that is associated with your node
37      * group.</p>
38      */
GetClusterName()39     inline const Aws::String& GetClusterName() const{ return m_clusterName; }
40 
41     /**
42      * <p>The name of the Amazon EKS cluster that is associated with your node
43      * group.</p>
44      */
ClusterNameHasBeenSet()45     inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
46 
47     /**
48      * <p>The name of the Amazon EKS cluster that is associated with your node
49      * group.</p>
50      */
SetClusterName(const Aws::String & value)51     inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
52 
53     /**
54      * <p>The name of the Amazon EKS cluster that is associated with your node
55      * group.</p>
56      */
SetClusterName(Aws::String && value)57     inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
58 
59     /**
60      * <p>The name of the Amazon EKS cluster that is associated with your node
61      * group.</p>
62      */
SetClusterName(const char * value)63     inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
64 
65     /**
66      * <p>The name of the Amazon EKS cluster that is associated with your node
67      * group.</p>
68      */
WithClusterName(const Aws::String & value)69     inline DeleteNodegroupRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
70 
71     /**
72      * <p>The name of the Amazon EKS cluster that is associated with your node
73      * group.</p>
74      */
WithClusterName(Aws::String && value)75     inline DeleteNodegroupRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
76 
77     /**
78      * <p>The name of the Amazon EKS cluster that is associated with your node
79      * group.</p>
80      */
WithClusterName(const char * value)81     inline DeleteNodegroupRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
82 
83 
84     /**
85      * <p>The name of the node group to delete.</p>
86      */
GetNodegroupName()87     inline const Aws::String& GetNodegroupName() const{ return m_nodegroupName; }
88 
89     /**
90      * <p>The name of the node group to delete.</p>
91      */
NodegroupNameHasBeenSet()92     inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
93 
94     /**
95      * <p>The name of the node group to delete.</p>
96      */
SetNodegroupName(const Aws::String & value)97     inline void SetNodegroupName(const Aws::String& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = value; }
98 
99     /**
100      * <p>The name of the node group to delete.</p>
101      */
SetNodegroupName(Aws::String && value)102     inline void SetNodegroupName(Aws::String&& value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName = std::move(value); }
103 
104     /**
105      * <p>The name of the node group to delete.</p>
106      */
SetNodegroupName(const char * value)107     inline void SetNodegroupName(const char* value) { m_nodegroupNameHasBeenSet = true; m_nodegroupName.assign(value); }
108 
109     /**
110      * <p>The name of the node group to delete.</p>
111      */
WithNodegroupName(const Aws::String & value)112     inline DeleteNodegroupRequest& WithNodegroupName(const Aws::String& value) { SetNodegroupName(value); return *this;}
113 
114     /**
115      * <p>The name of the node group to delete.</p>
116      */
WithNodegroupName(Aws::String && value)117     inline DeleteNodegroupRequest& WithNodegroupName(Aws::String&& value) { SetNodegroupName(std::move(value)); return *this;}
118 
119     /**
120      * <p>The name of the node group to delete.</p>
121      */
WithNodegroupName(const char * value)122     inline DeleteNodegroupRequest& WithNodegroupName(const char* value) { SetNodegroupName(value); return *this;}
123 
124   private:
125 
126     Aws::String m_clusterName;
127     bool m_clusterNameHasBeenSet;
128 
129     Aws::String m_nodegroupName;
130     bool m_nodegroupNameHasBeenSet;
131   };
132 
133 } // namespace Model
134 } // namespace EKS
135 } // namespace Aws
136