/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SWF { namespace Model { /** */ class ListDomainsRequest : public SWFRequest { public: AWS_SWF_API ListDomainsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListDomains"; } AWS_SWF_API Aws::String SerializePayload() const override; AWS_SWF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

If NextPageToken is returned there are more results available. * The value of NextPageToken is a unique pagination token for each * page. Make the call again using the returned token to retrieve the next page. * Keep all other arguments unchanged. Each pagination token expires after 24 * hours. Using an expired pagination token will return a 400 error: * "Specified token has exceeded its maximum lifetime".

The * configured maximumPageSize determines how many results can be * returned in a single call.

*/ inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } /** *

If NextPageToken is returned there are more results available. * The value of NextPageToken is a unique pagination token for each * page. Make the call again using the returned token to retrieve the next page. * Keep all other arguments unchanged. Each pagination token expires after 24 * hours. Using an expired pagination token will return a 400 error: * "Specified token has exceeded its maximum lifetime".

The * configured maximumPageSize determines how many results can be * returned in a single call.

*/ inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; } /** *

If NextPageToken is returned there are more results available. * The value of NextPageToken is a unique pagination token for each * page. Make the call again using the returned token to retrieve the next page. * Keep all other arguments unchanged. Each pagination token expires after 24 * hours. Using an expired pagination token will return a 400 error: * "Specified token has exceeded its maximum lifetime".

The * configured maximumPageSize determines how many results can be * returned in a single call.

*/ inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; } /** *

If NextPageToken is returned there are more results available. * The value of NextPageToken is a unique pagination token for each * page. Make the call again using the returned token to retrieve the next page. * Keep all other arguments unchanged. Each pagination token expires after 24 * hours. Using an expired pagination token will return a 400 error: * "Specified token has exceeded its maximum lifetime".

The * configured maximumPageSize determines how many results can be * returned in a single call.

*/ inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); } /** *

If NextPageToken is returned there are more results available. * The value of NextPageToken is a unique pagination token for each * page. Make the call again using the returned token to retrieve the next page. * Keep all other arguments unchanged. Each pagination token expires after 24 * hours. Using an expired pagination token will return a 400 error: * "Specified token has exceeded its maximum lifetime".

The * configured maximumPageSize determines how many results can be * returned in a single call.

*/ inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); } /** *

If NextPageToken is returned there are more results available. * The value of NextPageToken is a unique pagination token for each * page. Make the call again using the returned token to retrieve the next page. * Keep all other arguments unchanged. Each pagination token expires after 24 * hours. Using an expired pagination token will return a 400 error: * "Specified token has exceeded its maximum lifetime".

The * configured maximumPageSize determines how many results can be * returned in a single call.

*/ inline ListDomainsRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} /** *

If NextPageToken is returned there are more results available. * The value of NextPageToken is a unique pagination token for each * page. Make the call again using the returned token to retrieve the next page. * Keep all other arguments unchanged. Each pagination token expires after 24 * hours. Using an expired pagination token will return a 400 error: * "Specified token has exceeded its maximum lifetime".

The * configured maximumPageSize determines how many results can be * returned in a single call.

*/ inline ListDomainsRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} /** *

If NextPageToken is returned there are more results available. * The value of NextPageToken is a unique pagination token for each * page. Make the call again using the returned token to retrieve the next page. * Keep all other arguments unchanged. Each pagination token expires after 24 * hours. Using an expired pagination token will return a 400 error: * "Specified token has exceeded its maximum lifetime".

The * configured maximumPageSize determines how many results can be * returned in a single call.

*/ inline ListDomainsRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;} /** *

Specifies the registration status of the domains to list.

*/ inline const RegistrationStatus& GetRegistrationStatus() const{ return m_registrationStatus; } /** *

Specifies the registration status of the domains to list.

*/ inline bool RegistrationStatusHasBeenSet() const { return m_registrationStatusHasBeenSet; } /** *

Specifies the registration status of the domains to list.

*/ inline void SetRegistrationStatus(const RegistrationStatus& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = value; } /** *

Specifies the registration status of the domains to list.

*/ inline void SetRegistrationStatus(RegistrationStatus&& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = std::move(value); } /** *

Specifies the registration status of the domains to list.

*/ inline ListDomainsRequest& WithRegistrationStatus(const RegistrationStatus& value) { SetRegistrationStatus(value); return *this;} /** *

Specifies the registration status of the domains to list.

*/ inline ListDomainsRequest& WithRegistrationStatus(RegistrationStatus&& value) { SetRegistrationStatus(std::move(value)); return *this;} /** *

The maximum number of results that are returned per call. Use * nextPageToken to obtain further pages of results.

*/ inline int GetMaximumPageSize() const{ return m_maximumPageSize; } /** *

The maximum number of results that are returned per call. Use * nextPageToken to obtain further pages of results.

*/ inline bool MaximumPageSizeHasBeenSet() const { return m_maximumPageSizeHasBeenSet; } /** *

The maximum number of results that are returned per call. Use * nextPageToken to obtain further pages of results.

*/ inline void SetMaximumPageSize(int value) { m_maximumPageSizeHasBeenSet = true; m_maximumPageSize = value; } /** *

The maximum number of results that are returned per call. Use * nextPageToken to obtain further pages of results.

*/ inline ListDomainsRequest& WithMaximumPageSize(int value) { SetMaximumPageSize(value); return *this;} /** *

When set to true, returns the results in reverse order. By * default, the results are returned in ascending alphabetical order by * name of the domains.

*/ inline bool GetReverseOrder() const{ return m_reverseOrder; } /** *

When set to true, returns the results in reverse order. By * default, the results are returned in ascending alphabetical order by * name of the domains.

*/ inline bool ReverseOrderHasBeenSet() const { return m_reverseOrderHasBeenSet; } /** *

When set to true, returns the results in reverse order. By * default, the results are returned in ascending alphabetical order by * name of the domains.

*/ inline void SetReverseOrder(bool value) { m_reverseOrderHasBeenSet = true; m_reverseOrder = value; } /** *

When set to true, returns the results in reverse order. By * default, the results are returned in ascending alphabetical order by * name of the domains.

*/ inline ListDomainsRequest& WithReverseOrder(bool value) { SetReverseOrder(value); return *this;} private: Aws::String m_nextPageToken; bool m_nextPageTokenHasBeenSet = false; RegistrationStatus m_registrationStatus; bool m_registrationStatusHasBeenSet = false; int m_maximumPageSize; bool m_maximumPageSizeHasBeenSet = false; bool m_reverseOrder; bool m_reverseOrderHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws