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 DescribeAddonRequest : public EKSRequest
22   {
23   public:
24     DescribeAddonRequest();
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 "DescribeAddon"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The name of the cluster.</p>
37      */
GetClusterName()38     inline const Aws::String& GetClusterName() const{ return m_clusterName; }
39 
40     /**
41      * <p>The name of the cluster.</p>
42      */
ClusterNameHasBeenSet()43     inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
44 
45     /**
46      * <p>The name of the cluster.</p>
47      */
SetClusterName(const Aws::String & value)48     inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
49 
50     /**
51      * <p>The name of the cluster.</p>
52      */
SetClusterName(Aws::String && value)53     inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
54 
55     /**
56      * <p>The name of the cluster.</p>
57      */
SetClusterName(const char * value)58     inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
59 
60     /**
61      * <p>The name of the cluster.</p>
62      */
WithClusterName(const Aws::String & value)63     inline DescribeAddonRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
64 
65     /**
66      * <p>The name of the cluster.</p>
67      */
WithClusterName(Aws::String && value)68     inline DescribeAddonRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
69 
70     /**
71      * <p>The name of the cluster.</p>
72      */
WithClusterName(const char * value)73     inline DescribeAddonRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
74 
75 
76     /**
77      * <p>The name of the add-on. The name must match one of the names returned by <a
78      * href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html">
79      * <code>ListAddons</code> </a>.</p>
80      */
GetAddonName()81     inline const Aws::String& GetAddonName() const{ return m_addonName; }
82 
83     /**
84      * <p>The name of the add-on. The name must match one of the names returned by <a
85      * href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html">
86      * <code>ListAddons</code> </a>.</p>
87      */
AddonNameHasBeenSet()88     inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
89 
90     /**
91      * <p>The name of the add-on. The name must match one of the names returned by <a
92      * href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html">
93      * <code>ListAddons</code> </a>.</p>
94      */
SetAddonName(const Aws::String & value)95     inline void SetAddonName(const Aws::String& value) { m_addonNameHasBeenSet = true; m_addonName = value; }
96 
97     /**
98      * <p>The name of the add-on. The name must match one of the names returned by <a
99      * href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html">
100      * <code>ListAddons</code> </a>.</p>
101      */
SetAddonName(Aws::String && value)102     inline void SetAddonName(Aws::String&& value) { m_addonNameHasBeenSet = true; m_addonName = std::move(value); }
103 
104     /**
105      * <p>The name of the add-on. The name must match one of the names returned by <a
106      * href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html">
107      * <code>ListAddons</code> </a>.</p>
108      */
SetAddonName(const char * value)109     inline void SetAddonName(const char* value) { m_addonNameHasBeenSet = true; m_addonName.assign(value); }
110 
111     /**
112      * <p>The name of the add-on. The name must match one of the names returned by <a
113      * href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html">
114      * <code>ListAddons</code> </a>.</p>
115      */
WithAddonName(const Aws::String & value)116     inline DescribeAddonRequest& WithAddonName(const Aws::String& value) { SetAddonName(value); return *this;}
117 
118     /**
119      * <p>The name of the add-on. The name must match one of the names returned by <a
120      * href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html">
121      * <code>ListAddons</code> </a>.</p>
122      */
WithAddonName(Aws::String && value)123     inline DescribeAddonRequest& WithAddonName(Aws::String&& value) { SetAddonName(std::move(value)); return *this;}
124 
125     /**
126      * <p>The name of the add-on. The name must match one of the names returned by <a
127      * href="https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html">
128      * <code>ListAddons</code> </a>.</p>
129      */
WithAddonName(const char * value)130     inline DescribeAddonRequest& WithAddonName(const char* value) { SetAddonName(value); return *this;}
131 
132   private:
133 
134     Aws::String m_clusterName;
135     bool m_clusterNameHasBeenSet;
136 
137     Aws::String m_addonName;
138     bool m_addonNameHasBeenSet;
139   };
140 
141 } // namespace Model
142 } // namespace EKS
143 } // namespace Aws
144