/** * 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 Http { class URI; } //namespace Http namespace ChimeSDKVoice { namespace Model { /** */ class SearchAvailablePhoneNumbersRequest : public ChimeSDKVoiceRequest { public: AWS_CHIMESDKVOICE_API SearchAvailablePhoneNumbersRequest(); // 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 "SearchAvailablePhoneNumbers"; } AWS_CHIMESDKVOICE_API Aws::String SerializePayload() const override; AWS_CHIMESDKVOICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Confines a search to just the phone numbers associated with the specified * area code.

*/ inline const Aws::String& GetAreaCode() const{ return m_areaCode; } /** *

Confines a search to just the phone numbers associated with the specified * area code.

*/ inline bool AreaCodeHasBeenSet() const { return m_areaCodeHasBeenSet; } /** *

Confines a search to just the phone numbers associated with the specified * area code.

*/ inline void SetAreaCode(const Aws::String& value) { m_areaCodeHasBeenSet = true; m_areaCode = value; } /** *

Confines a search to just the phone numbers associated with the specified * area code.

*/ inline void SetAreaCode(Aws::String&& value) { m_areaCodeHasBeenSet = true; m_areaCode = std::move(value); } /** *

Confines a search to just the phone numbers associated with the specified * area code.

*/ inline void SetAreaCode(const char* value) { m_areaCodeHasBeenSet = true; m_areaCode.assign(value); } /** *

Confines a search to just the phone numbers associated with the specified * area code.

*/ inline SearchAvailablePhoneNumbersRequest& WithAreaCode(const Aws::String& value) { SetAreaCode(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * area code.

*/ inline SearchAvailablePhoneNumbersRequest& WithAreaCode(Aws::String&& value) { SetAreaCode(std::move(value)); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * area code.

*/ inline SearchAvailablePhoneNumbersRequest& WithAreaCode(const char* value) { SetAreaCode(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * city.

*/ inline const Aws::String& GetCity() const{ return m_city; } /** *

Confines a search to just the phone numbers associated with the specified * city.

*/ inline bool CityHasBeenSet() const { return m_cityHasBeenSet; } /** *

Confines a search to just the phone numbers associated with the specified * city.

*/ inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; } /** *

Confines a search to just the phone numbers associated with the specified * city.

*/ inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); } /** *

Confines a search to just the phone numbers associated with the specified * city.

*/ inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); } /** *

Confines a search to just the phone numbers associated with the specified * city.

*/ inline SearchAvailablePhoneNumbersRequest& WithCity(const Aws::String& value) { SetCity(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * city.

*/ inline SearchAvailablePhoneNumbersRequest& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * city.

*/ inline SearchAvailablePhoneNumbersRequest& WithCity(const char* value) { SetCity(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * country.

*/ inline const Aws::String& GetCountry() const{ return m_country; } /** *

Confines a search to just the phone numbers associated with the specified * country.

*/ inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } /** *

Confines a search to just the phone numbers associated with the specified * country.

*/ inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; } /** *

Confines a search to just the phone numbers associated with the specified * country.

*/ inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } /** *

Confines a search to just the phone numbers associated with the specified * country.

*/ inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); } /** *

Confines a search to just the phone numbers associated with the specified * country.

*/ inline SearchAvailablePhoneNumbersRequest& WithCountry(const Aws::String& value) { SetCountry(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * country.

*/ inline SearchAvailablePhoneNumbersRequest& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * country.

*/ inline SearchAvailablePhoneNumbersRequest& WithCountry(const char* value) { SetCountry(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * state.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

Confines a search to just the phone numbers associated with the specified * state.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

Confines a search to just the phone numbers associated with the specified * state.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

Confines a search to just the phone numbers associated with the specified * state.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

Confines a search to just the phone numbers associated with the specified * state.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

Confines a search to just the phone numbers associated with the specified * state.

*/ inline SearchAvailablePhoneNumbersRequest& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * state.

*/ inline SearchAvailablePhoneNumbersRequest& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * state.

*/ inline SearchAvailablePhoneNumbersRequest& WithState(const char* value) { SetState(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * toll-free prefix.

*/ inline const Aws::String& GetTollFreePrefix() const{ return m_tollFreePrefix; } /** *

Confines a search to just the phone numbers associated with the specified * toll-free prefix.

*/ inline bool TollFreePrefixHasBeenSet() const { return m_tollFreePrefixHasBeenSet; } /** *

Confines a search to just the phone numbers associated with the specified * toll-free prefix.

*/ inline void SetTollFreePrefix(const Aws::String& value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix = value; } /** *

Confines a search to just the phone numbers associated with the specified * toll-free prefix.

*/ inline void SetTollFreePrefix(Aws::String&& value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix = std::move(value); } /** *

Confines a search to just the phone numbers associated with the specified * toll-free prefix.

*/ inline void SetTollFreePrefix(const char* value) { m_tollFreePrefixHasBeenSet = true; m_tollFreePrefix.assign(value); } /** *

Confines a search to just the phone numbers associated with the specified * toll-free prefix.

*/ inline SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(const Aws::String& value) { SetTollFreePrefix(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * toll-free prefix.

*/ inline SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(Aws::String&& value) { SetTollFreePrefix(std::move(value)); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * toll-free prefix.

*/ inline SearchAvailablePhoneNumbersRequest& WithTollFreePrefix(const char* value) { SetTollFreePrefix(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * phone number type, either local or toll-free.

*/ inline const PhoneNumberType& GetPhoneNumberType() const{ return m_phoneNumberType; } /** *

Confines a search to just the phone numbers associated with the specified * phone number type, either local or toll-free.

*/ inline bool PhoneNumberTypeHasBeenSet() const { return m_phoneNumberTypeHasBeenSet; } /** *

Confines a search to just the phone numbers associated with the specified * phone number type, either local or toll-free.

*/ inline void SetPhoneNumberType(const PhoneNumberType& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = value; } /** *

Confines a search to just the phone numbers associated with the specified * phone number type, either local or toll-free.

*/ inline void SetPhoneNumberType(PhoneNumberType&& value) { m_phoneNumberTypeHasBeenSet = true; m_phoneNumberType = std::move(value); } /** *

Confines a search to just the phone numbers associated with the specified * phone number type, either local or toll-free.

*/ inline SearchAvailablePhoneNumbersRequest& WithPhoneNumberType(const PhoneNumberType& value) { SetPhoneNumberType(value); return *this;} /** *

Confines a search to just the phone numbers associated with the specified * phone number type, either local or toll-free.

*/ inline SearchAvailablePhoneNumbersRequest& WithPhoneNumberType(PhoneNumberType&& value) { SetPhoneNumberType(std::move(value)); return *this;} /** *

The maximum number of results to return.

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

The maximum number of results to return.

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

The maximum number of results to return.

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

The maximum number of results to return.

*/ inline SearchAvailablePhoneNumbersRequest& 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 SearchAvailablePhoneNumbersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token used to return the next page of results.

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

The token used to return the next page of results.

*/ inline SearchAvailablePhoneNumbersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_areaCode; bool m_areaCodeHasBeenSet = false; Aws::String m_city; bool m_cityHasBeenSet = false; Aws::String m_country; bool m_countryHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_tollFreePrefix; bool m_tollFreePrefixHasBeenSet = false; PhoneNumberType m_phoneNumberType; bool m_phoneNumberTypeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws