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/swf/SWF_EXPORTS.h> 8 #include <aws/swf/SWFRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/swf/model/RegistrationStatus.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace SWF 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_SWF_API ListActivityTypesRequest : public SWFRequest 23 { 24 public: 25 ListActivityTypesRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "ListActivityTypes"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The name of the domain in which the activity types have been registered.</p> 40 */ GetDomain()41 inline const Aws::String& GetDomain() const{ return m_domain; } 42 43 /** 44 * <p>The name of the domain in which the activity types have been registered.</p> 45 */ DomainHasBeenSet()46 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } 47 48 /** 49 * <p>The name of the domain in which the activity types have been registered.</p> 50 */ SetDomain(const Aws::String & value)51 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } 52 53 /** 54 * <p>The name of the domain in which the activity types have been registered.</p> 55 */ SetDomain(Aws::String && value)56 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } 57 58 /** 59 * <p>The name of the domain in which the activity types have been registered.</p> 60 */ SetDomain(const char * value)61 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } 62 63 /** 64 * <p>The name of the domain in which the activity types have been registered.</p> 65 */ WithDomain(const Aws::String & value)66 inline ListActivityTypesRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} 67 68 /** 69 * <p>The name of the domain in which the activity types have been registered.</p> 70 */ WithDomain(Aws::String && value)71 inline ListActivityTypesRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} 72 73 /** 74 * <p>The name of the domain in which the activity types have been registered.</p> 75 */ WithDomain(const char * value)76 inline ListActivityTypesRequest& WithDomain(const char* value) { SetDomain(value); return *this;} 77 78 79 /** 80 * <p>If specified, only lists the activity types that have this name.</p> 81 */ GetName()82 inline const Aws::String& GetName() const{ return m_name; } 83 84 /** 85 * <p>If specified, only lists the activity types that have this name.</p> 86 */ NameHasBeenSet()87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 88 89 /** 90 * <p>If specified, only lists the activity types that have this name.</p> 91 */ SetName(const Aws::String & value)92 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 93 94 /** 95 * <p>If specified, only lists the activity types that have this name.</p> 96 */ SetName(Aws::String && value)97 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 98 99 /** 100 * <p>If specified, only lists the activity types that have this name.</p> 101 */ SetName(const char * value)102 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 103 104 /** 105 * <p>If specified, only lists the activity types that have this name.</p> 106 */ WithName(const Aws::String & value)107 inline ListActivityTypesRequest& WithName(const Aws::String& value) { SetName(value); return *this;} 108 109 /** 110 * <p>If specified, only lists the activity types that have this name.</p> 111 */ WithName(Aws::String && value)112 inline ListActivityTypesRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 113 114 /** 115 * <p>If specified, only lists the activity types that have this name.</p> 116 */ WithName(const char * value)117 inline ListActivityTypesRequest& WithName(const char* value) { SetName(value); return *this;} 118 119 120 /** 121 * <p>Specifies the registration status of the activity types to list.</p> 122 */ GetRegistrationStatus()123 inline const RegistrationStatus& GetRegistrationStatus() const{ return m_registrationStatus; } 124 125 /** 126 * <p>Specifies the registration status of the activity types to list.</p> 127 */ RegistrationStatusHasBeenSet()128 inline bool RegistrationStatusHasBeenSet() const { return m_registrationStatusHasBeenSet; } 129 130 /** 131 * <p>Specifies the registration status of the activity types to list.</p> 132 */ SetRegistrationStatus(const RegistrationStatus & value)133 inline void SetRegistrationStatus(const RegistrationStatus& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = value; } 134 135 /** 136 * <p>Specifies the registration status of the activity types to list.</p> 137 */ SetRegistrationStatus(RegistrationStatus && value)138 inline void SetRegistrationStatus(RegistrationStatus&& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = std::move(value); } 139 140 /** 141 * <p>Specifies the registration status of the activity types to list.</p> 142 */ WithRegistrationStatus(const RegistrationStatus & value)143 inline ListActivityTypesRequest& WithRegistrationStatus(const RegistrationStatus& value) { SetRegistrationStatus(value); return *this;} 144 145 /** 146 * <p>Specifies the registration status of the activity types to list.</p> 147 */ WithRegistrationStatus(RegistrationStatus && value)148 inline ListActivityTypesRequest& WithRegistrationStatus(RegistrationStatus&& value) { SetRegistrationStatus(std::move(value)); return *this;} 149 150 151 /** 152 * <p>If <code>NextPageToken</code> is returned there are more results available. 153 * The value of <code>NextPageToken</code> is a unique pagination token for each 154 * page. Make the call again using the returned token to retrieve the next page. 155 * Keep all other arguments unchanged. Each pagination token expires after 60 156 * seconds. Using an expired pagination token will return a <code>400</code> error: 157 * "<code>Specified token has exceeded its maximum lifetime</code>". </p> <p>The 158 * configured <code>maximumPageSize</code> determines how many results can be 159 * returned in a single call. </p> 160 */ GetNextPageToken()161 inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } 162 163 /** 164 * <p>If <code>NextPageToken</code> is returned there are more results available. 165 * The value of <code>NextPageToken</code> is a unique pagination token for each 166 * page. Make the call again using the returned token to retrieve the next page. 167 * Keep all other arguments unchanged. Each pagination token expires after 60 168 * seconds. Using an expired pagination token will return a <code>400</code> error: 169 * "<code>Specified token has exceeded its maximum lifetime</code>". </p> <p>The 170 * configured <code>maximumPageSize</code> determines how many results can be 171 * returned in a single call. </p> 172 */ NextPageTokenHasBeenSet()173 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; } 174 175 /** 176 * <p>If <code>NextPageToken</code> is returned there are more results available. 177 * The value of <code>NextPageToken</code> is a unique pagination token for each 178 * page. Make the call again using the returned token to retrieve the next page. 179 * Keep all other arguments unchanged. Each pagination token expires after 60 180 * seconds. Using an expired pagination token will return a <code>400</code> error: 181 * "<code>Specified token has exceeded its maximum lifetime</code>". </p> <p>The 182 * configured <code>maximumPageSize</code> determines how many results can be 183 * returned in a single call. </p> 184 */ SetNextPageToken(const Aws::String & value)185 inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; } 186 187 /** 188 * <p>If <code>NextPageToken</code> is returned there are more results available. 189 * The value of <code>NextPageToken</code> is a unique pagination token for each 190 * page. Make the call again using the returned token to retrieve the next page. 191 * Keep all other arguments unchanged. Each pagination token expires after 60 192 * seconds. Using an expired pagination token will return a <code>400</code> error: 193 * "<code>Specified token has exceeded its maximum lifetime</code>". </p> <p>The 194 * configured <code>maximumPageSize</code> determines how many results can be 195 * returned in a single call. </p> 196 */ SetNextPageToken(Aws::String && value)197 inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); } 198 199 /** 200 * <p>If <code>NextPageToken</code> is returned there are more results available. 201 * The value of <code>NextPageToken</code> is a unique pagination token for each 202 * page. Make the call again using the returned token to retrieve the next page. 203 * Keep all other arguments unchanged. Each pagination token expires after 60 204 * seconds. Using an expired pagination token will return a <code>400</code> error: 205 * "<code>Specified token has exceeded its maximum lifetime</code>". </p> <p>The 206 * configured <code>maximumPageSize</code> determines how many results can be 207 * returned in a single call. </p> 208 */ SetNextPageToken(const char * value)209 inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); } 210 211 /** 212 * <p>If <code>NextPageToken</code> is returned there are more results available. 213 * The value of <code>NextPageToken</code> is a unique pagination token for each 214 * page. Make the call again using the returned token to retrieve the next page. 215 * Keep all other arguments unchanged. Each pagination token expires after 60 216 * seconds. Using an expired pagination token will return a <code>400</code> error: 217 * "<code>Specified token has exceeded its maximum lifetime</code>". </p> <p>The 218 * configured <code>maximumPageSize</code> determines how many results can be 219 * returned in a single call. </p> 220 */ WithNextPageToken(const Aws::String & value)221 inline ListActivityTypesRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} 222 223 /** 224 * <p>If <code>NextPageToken</code> is returned there are more results available. 225 * The value of <code>NextPageToken</code> is a unique pagination token for each 226 * page. Make the call again using the returned token to retrieve the next page. 227 * Keep all other arguments unchanged. Each pagination token expires after 60 228 * seconds. Using an expired pagination token will return a <code>400</code> error: 229 * "<code>Specified token has exceeded its maximum lifetime</code>". </p> <p>The 230 * configured <code>maximumPageSize</code> determines how many results can be 231 * returned in a single call. </p> 232 */ WithNextPageToken(Aws::String && value)233 inline ListActivityTypesRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} 234 235 /** 236 * <p>If <code>NextPageToken</code> is returned there are more results available. 237 * The value of <code>NextPageToken</code> is a unique pagination token for each 238 * page. Make the call again using the returned token to retrieve the next page. 239 * Keep all other arguments unchanged. Each pagination token expires after 60 240 * seconds. Using an expired pagination token will return a <code>400</code> error: 241 * "<code>Specified token has exceeded its maximum lifetime</code>". </p> <p>The 242 * configured <code>maximumPageSize</code> determines how many results can be 243 * returned in a single call. </p> 244 */ WithNextPageToken(const char * value)245 inline ListActivityTypesRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;} 246 247 248 /** 249 * <p>The maximum number of results that are returned per call. Use 250 * <code>nextPageToken</code> to obtain further pages of results. </p> 251 */ GetMaximumPageSize()252 inline int GetMaximumPageSize() const{ return m_maximumPageSize; } 253 254 /** 255 * <p>The maximum number of results that are returned per call. Use 256 * <code>nextPageToken</code> to obtain further pages of results. </p> 257 */ MaximumPageSizeHasBeenSet()258 inline bool MaximumPageSizeHasBeenSet() const { return m_maximumPageSizeHasBeenSet; } 259 260 /** 261 * <p>The maximum number of results that are returned per call. Use 262 * <code>nextPageToken</code> to obtain further pages of results. </p> 263 */ SetMaximumPageSize(int value)264 inline void SetMaximumPageSize(int value) { m_maximumPageSizeHasBeenSet = true; m_maximumPageSize = value; } 265 266 /** 267 * <p>The maximum number of results that are returned per call. Use 268 * <code>nextPageToken</code> to obtain further pages of results. </p> 269 */ WithMaximumPageSize(int value)270 inline ListActivityTypesRequest& WithMaximumPageSize(int value) { SetMaximumPageSize(value); return *this;} 271 272 273 /** 274 * <p>When set to <code>true</code>, returns the results in reverse order. By 275 * default, the results are returned in ascending alphabetical order by 276 * <code>name</code> of the activity types.</p> 277 */ GetReverseOrder()278 inline bool GetReverseOrder() const{ return m_reverseOrder; } 279 280 /** 281 * <p>When set to <code>true</code>, returns the results in reverse order. By 282 * default, the results are returned in ascending alphabetical order by 283 * <code>name</code> of the activity types.</p> 284 */ ReverseOrderHasBeenSet()285 inline bool ReverseOrderHasBeenSet() const { return m_reverseOrderHasBeenSet; } 286 287 /** 288 * <p>When set to <code>true</code>, returns the results in reverse order. By 289 * default, the results are returned in ascending alphabetical order by 290 * <code>name</code> of the activity types.</p> 291 */ SetReverseOrder(bool value)292 inline void SetReverseOrder(bool value) { m_reverseOrderHasBeenSet = true; m_reverseOrder = value; } 293 294 /** 295 * <p>When set to <code>true</code>, returns the results in reverse order. By 296 * default, the results are returned in ascending alphabetical order by 297 * <code>name</code> of the activity types.</p> 298 */ WithReverseOrder(bool value)299 inline ListActivityTypesRequest& WithReverseOrder(bool value) { SetReverseOrder(value); return *this;} 300 301 private: 302 303 Aws::String m_domain; 304 bool m_domainHasBeenSet; 305 306 Aws::String m_name; 307 bool m_nameHasBeenSet; 308 309 RegistrationStatus m_registrationStatus; 310 bool m_registrationStatusHasBeenSet; 311 312 Aws::String m_nextPageToken; 313 bool m_nextPageTokenHasBeenSet; 314 315 int m_maximumPageSize; 316 bool m_maximumPageSizeHasBeenSet; 317 318 bool m_reverseOrder; 319 bool m_reverseOrderHasBeenSet; 320 }; 321 322 } // namespace Model 323 } // namespace SWF 324 } // namespace Aws 325