/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace ChimeSDKVoice { namespace Model { /** */ class ListPhoneNumbersRequest : public ChimeSDKVoiceRequest { public: AWS_CHIMESDKVOICE_API ListPhoneNumbersRequest(); // 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 "ListPhoneNumbers"; } AWS_CHIMESDKVOICE_API Aws::String SerializePayload() const override; AWS_CHIMESDKVOICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The status of your organization's phone numbers.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of your organization's phone numbers.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of your organization's phone numbers.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of your organization's phone numbers.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of your organization's phone numbers.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of your organization's phone numbers.

*/ inline ListPhoneNumbersRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of your organization's phone numbers.

*/ inline ListPhoneNumbersRequest& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of your organization's phone numbers.

*/ inline ListPhoneNumbersRequest& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The phone number product types.

*/ inline const PhoneNumberProductType& GetProductType() const{ return m_productType; } /** *

The phone number product types.

*/ inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; } /** *

The phone number product types.

*/ inline void SetProductType(const PhoneNumberProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; } /** *

The phone number product types.

*/ inline void SetProductType(PhoneNumberProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); } /** *

The phone number product types.

*/ inline ListPhoneNumbersRequest& WithProductType(const PhoneNumberProductType& value) { SetProductType(value); return *this;} /** *

The phone number product types.

*/ inline ListPhoneNumbersRequest& WithProductType(PhoneNumberProductType&& value) { SetProductType(std::move(value)); return *this;} /** *

The filter to limit the number of results.

*/ inline const PhoneNumberAssociationName& GetFilterName() const{ return m_filterName; } /** *

The filter to limit the number of results.

*/ inline bool FilterNameHasBeenSet() const { return m_filterNameHasBeenSet; } /** *

The filter to limit the number of results.

*/ inline void SetFilterName(const PhoneNumberAssociationName& value) { m_filterNameHasBeenSet = true; m_filterName = value; } /** *

The filter to limit the number of results.

*/ inline void SetFilterName(PhoneNumberAssociationName&& value) { m_filterNameHasBeenSet = true; m_filterName = std::move(value); } /** *

The filter to limit the number of results.

*/ inline ListPhoneNumbersRequest& WithFilterName(const PhoneNumberAssociationName& value) { SetFilterName(value); return *this;} /** *

The filter to limit the number of results.

*/ inline ListPhoneNumbersRequest& WithFilterName(PhoneNumberAssociationName&& value) { SetFilterName(std::move(value)); return *this;} /** *

The filter value.

*/ inline const Aws::String& GetFilterValue() const{ return m_filterValue; } /** *

The filter value.

*/ inline bool FilterValueHasBeenSet() const { return m_filterValueHasBeenSet; } /** *

The filter value.

*/ inline void SetFilterValue(const Aws::String& value) { m_filterValueHasBeenSet = true; m_filterValue = value; } /** *

The filter value.

*/ inline void SetFilterValue(Aws::String&& value) { m_filterValueHasBeenSet = true; m_filterValue = std::move(value); } /** *

The filter value.

*/ inline void SetFilterValue(const char* value) { m_filterValueHasBeenSet = true; m_filterValue.assign(value); } /** *

The filter value.

*/ inline ListPhoneNumbersRequest& WithFilterValue(const Aws::String& value) { SetFilterValue(value); return *this;} /** *

The filter value.

*/ inline ListPhoneNumbersRequest& WithFilterValue(Aws::String&& value) { SetFilterValue(std::move(value)); return *this;} /** *

The filter value.

*/ inline ListPhoneNumbersRequest& WithFilterValue(const char* value) { SetFilterValue(value); return *this;} /** *

The maximum number of results to return in a single call.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return in a single call.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return in a single call.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return in a single call.

*/ inline ListPhoneNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token used to return the next page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token used to return the next page of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token used to return the next page of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token used to return the next page of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token used to return the next page of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token used to return the next page of results.

*/ inline ListPhoneNumbersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token used to return the next page of results.

*/ inline ListPhoneNumbersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token used to return the next page of results.

*/ inline ListPhoneNumbersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_status; bool m_statusHasBeenSet = false; PhoneNumberProductType m_productType; bool m_productTypeHasBeenSet = false; PhoneNumberAssociationName m_filterName; bool m_filterNameHasBeenSet = false; Aws::String m_filterValue; bool m_filterValueHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws