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 Http 15 { 16 class URI; 17 } //namespace Http 18 namespace EKS 19 { 20 namespace Model 21 { 22 23 /** 24 */ 25 class AWS_EKS_API ListFargateProfilesRequest : public EKSRequest 26 { 27 public: 28 ListFargateProfilesRequest(); 29 30 // Service request name is the Operation name which will send this request out, 31 // each operation should has unique request name, so that we can get operation's name from this request. 32 // Note: this is not true for response, multiple operations may have the same response name, 33 // so we can not get operation's name from response. GetServiceRequestName()34 inline virtual const char* GetServiceRequestName() const override { return "ListFargateProfiles"; } 35 36 Aws::String SerializePayload() const override; 37 38 void AddQueryStringParameters(Aws::Http::URI& uri) const override; 39 40 41 /** 42 * <p>The name of the Amazon EKS cluster that you would like to list Fargate 43 * profiles in.</p> 44 */ GetClusterName()45 inline const Aws::String& GetClusterName() const{ return m_clusterName; } 46 47 /** 48 * <p>The name of the Amazon EKS cluster that you would like to list Fargate 49 * profiles in.</p> 50 */ ClusterNameHasBeenSet()51 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } 52 53 /** 54 * <p>The name of the Amazon EKS cluster that you would like to list Fargate 55 * profiles in.</p> 56 */ SetClusterName(const Aws::String & value)57 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } 58 59 /** 60 * <p>The name of the Amazon EKS cluster that you would like to list Fargate 61 * profiles in.</p> 62 */ SetClusterName(Aws::String && value)63 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } 64 65 /** 66 * <p>The name of the Amazon EKS cluster that you would like to list Fargate 67 * profiles in.</p> 68 */ SetClusterName(const char * value)69 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } 70 71 /** 72 * <p>The name of the Amazon EKS cluster that you would like to list Fargate 73 * profiles in.</p> 74 */ WithClusterName(const Aws::String & value)75 inline ListFargateProfilesRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} 76 77 /** 78 * <p>The name of the Amazon EKS cluster that you would like to list Fargate 79 * profiles in.</p> 80 */ WithClusterName(Aws::String && value)81 inline ListFargateProfilesRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} 82 83 /** 84 * <p>The name of the Amazon EKS cluster that you would like to list Fargate 85 * profiles in.</p> 86 */ WithClusterName(const char * value)87 inline ListFargateProfilesRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} 88 89 90 /** 91 * <p>The maximum number of Fargate profile results returned by 92 * <code>ListFargateProfiles</code> in paginated output. When you use this 93 * parameter, <code>ListFargateProfiles</code> returns only <code>maxResults</code> 94 * results in a single page along with a <code>nextToken</code> response element. 95 * You can see the remaining results of the initial request by sending another 96 * <code>ListFargateProfiles</code> request with the returned 97 * <code>nextToken</code> value. This value can be between 1 and 100. If you don't 98 * use this parameter, <code>ListFargateProfiles</code> returns up to 100 results 99 * and a <code>nextToken</code> value if applicable.</p> 100 */ GetMaxResults()101 inline int GetMaxResults() const{ return m_maxResults; } 102 103 /** 104 * <p>The maximum number of Fargate profile results returned by 105 * <code>ListFargateProfiles</code> in paginated output. When you use this 106 * parameter, <code>ListFargateProfiles</code> returns only <code>maxResults</code> 107 * results in a single page along with a <code>nextToken</code> response element. 108 * You can see the remaining results of the initial request by sending another 109 * <code>ListFargateProfiles</code> request with the returned 110 * <code>nextToken</code> value. This value can be between 1 and 100. If you don't 111 * use this parameter, <code>ListFargateProfiles</code> returns up to 100 results 112 * and a <code>nextToken</code> value if applicable.</p> 113 */ MaxResultsHasBeenSet()114 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 115 116 /** 117 * <p>The maximum number of Fargate profile results returned by 118 * <code>ListFargateProfiles</code> in paginated output. When you use this 119 * parameter, <code>ListFargateProfiles</code> returns only <code>maxResults</code> 120 * results in a single page along with a <code>nextToken</code> response element. 121 * You can see the remaining results of the initial request by sending another 122 * <code>ListFargateProfiles</code> request with the returned 123 * <code>nextToken</code> value. This value can be between 1 and 100. If you don't 124 * use this parameter, <code>ListFargateProfiles</code> returns up to 100 results 125 * and a <code>nextToken</code> value if applicable.</p> 126 */ SetMaxResults(int value)127 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 128 129 /** 130 * <p>The maximum number of Fargate profile results returned by 131 * <code>ListFargateProfiles</code> in paginated output. When you use this 132 * parameter, <code>ListFargateProfiles</code> returns only <code>maxResults</code> 133 * results in a single page along with a <code>nextToken</code> response element. 134 * You can see the remaining results of the initial request by sending another 135 * <code>ListFargateProfiles</code> request with the returned 136 * <code>nextToken</code> value. This value can be between 1 and 100. If you don't 137 * use this parameter, <code>ListFargateProfiles</code> returns up to 100 results 138 * and a <code>nextToken</code> value if applicable.</p> 139 */ WithMaxResults(int value)140 inline ListFargateProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 141 142 143 /** 144 * <p>The <code>nextToken</code> value returned from a previous paginated 145 * <code>ListFargateProfiles</code> request where <code>maxResults</code> was used 146 * and the results exceeded the value of that parameter. Pagination continues from 147 * the end of the previous results that returned the <code>nextToken</code> 148 * value.</p> 149 */ GetNextToken()150 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 151 152 /** 153 * <p>The <code>nextToken</code> value returned from a previous paginated 154 * <code>ListFargateProfiles</code> request where <code>maxResults</code> was used 155 * and the results exceeded the value of that parameter. Pagination continues from 156 * the end of the previous results that returned the <code>nextToken</code> 157 * value.</p> 158 */ NextTokenHasBeenSet()159 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 160 161 /** 162 * <p>The <code>nextToken</code> value returned from a previous paginated 163 * <code>ListFargateProfiles</code> request where <code>maxResults</code> was used 164 * and the results exceeded the value of that parameter. Pagination continues from 165 * the end of the previous results that returned the <code>nextToken</code> 166 * value.</p> 167 */ SetNextToken(const Aws::String & value)168 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 169 170 /** 171 * <p>The <code>nextToken</code> value returned from a previous paginated 172 * <code>ListFargateProfiles</code> request where <code>maxResults</code> was used 173 * and the results exceeded the value of that parameter. Pagination continues from 174 * the end of the previous results that returned the <code>nextToken</code> 175 * value.</p> 176 */ SetNextToken(Aws::String && value)177 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 178 179 /** 180 * <p>The <code>nextToken</code> value returned from a previous paginated 181 * <code>ListFargateProfiles</code> request where <code>maxResults</code> was used 182 * and the results exceeded the value of that parameter. Pagination continues from 183 * the end of the previous results that returned the <code>nextToken</code> 184 * value.</p> 185 */ SetNextToken(const char * value)186 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 187 188 /** 189 * <p>The <code>nextToken</code> value returned from a previous paginated 190 * <code>ListFargateProfiles</code> request where <code>maxResults</code> was used 191 * and the results exceeded the value of that parameter. Pagination continues from 192 * the end of the previous results that returned the <code>nextToken</code> 193 * value.</p> 194 */ WithNextToken(const Aws::String & value)195 inline ListFargateProfilesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 196 197 /** 198 * <p>The <code>nextToken</code> value returned from a previous paginated 199 * <code>ListFargateProfiles</code> request where <code>maxResults</code> was used 200 * and the results exceeded the value of that parameter. Pagination continues from 201 * the end of the previous results that returned the <code>nextToken</code> 202 * value.</p> 203 */ WithNextToken(Aws::String && value)204 inline ListFargateProfilesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 205 206 /** 207 * <p>The <code>nextToken</code> value returned from a previous paginated 208 * <code>ListFargateProfiles</code> request where <code>maxResults</code> was used 209 * and the results exceeded the value of that parameter. Pagination continues from 210 * the end of the previous results that returned the <code>nextToken</code> 211 * value.</p> 212 */ WithNextToken(const char * value)213 inline ListFargateProfilesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 214 215 private: 216 217 Aws::String m_clusterName; 218 bool m_clusterNameHasBeenSet; 219 220 int m_maxResults; 221 bool m_maxResultsHasBeenSet; 222 223 Aws::String m_nextToken; 224 bool m_nextTokenHasBeenSet; 225 }; 226 227 } // namespace Model 228 } // namespace EKS 229 } // namespace Aws 230