/** * 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 ChimeSDKVoice { namespace Model { /** */ class PutVoiceConnectorProxyRequest : public ChimeSDKVoiceRequest { public: AWS_CHIMESDKVOICE_API PutVoiceConnectorProxyRequest(); // 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 "PutVoiceConnectorProxy"; } AWS_CHIMESDKVOICE_API Aws::String SerializePayload() const override; /** *

The Voice Connector ID.

*/ inline const Aws::String& GetVoiceConnectorId() const{ return m_voiceConnectorId; } /** *

The Voice Connector ID.

*/ inline bool VoiceConnectorIdHasBeenSet() const { return m_voiceConnectorIdHasBeenSet; } /** *

The Voice Connector ID.

*/ inline void SetVoiceConnectorId(const Aws::String& value) { m_voiceConnectorIdHasBeenSet = true; m_voiceConnectorId = value; } /** *

The Voice Connector ID.

*/ inline void SetVoiceConnectorId(Aws::String&& value) { m_voiceConnectorIdHasBeenSet = true; m_voiceConnectorId = std::move(value); } /** *

The Voice Connector ID.

*/ inline void SetVoiceConnectorId(const char* value) { m_voiceConnectorIdHasBeenSet = true; m_voiceConnectorId.assign(value); } /** *

The Voice Connector ID.

*/ inline PutVoiceConnectorProxyRequest& WithVoiceConnectorId(const Aws::String& value) { SetVoiceConnectorId(value); return *this;} /** *

The Voice Connector ID.

*/ inline PutVoiceConnectorProxyRequest& WithVoiceConnectorId(Aws::String&& value) { SetVoiceConnectorId(std::move(value)); return *this;} /** *

The Voice Connector ID.

*/ inline PutVoiceConnectorProxyRequest& WithVoiceConnectorId(const char* value) { SetVoiceConnectorId(value); return *this;} /** *

The default number of minutes allowed for proxy session.

*/ inline int GetDefaultSessionExpiryMinutes() const{ return m_defaultSessionExpiryMinutes; } /** *

The default number of minutes allowed for proxy session.

*/ inline bool DefaultSessionExpiryMinutesHasBeenSet() const { return m_defaultSessionExpiryMinutesHasBeenSet; } /** *

The default number of minutes allowed for proxy session.

*/ inline void SetDefaultSessionExpiryMinutes(int value) { m_defaultSessionExpiryMinutesHasBeenSet = true; m_defaultSessionExpiryMinutes = value; } /** *

The default number of minutes allowed for proxy session.

*/ inline PutVoiceConnectorProxyRequest& WithDefaultSessionExpiryMinutes(int value) { SetDefaultSessionExpiryMinutes(value); return *this;} /** *

The countries for proxy phone numbers to be selected from.

*/ inline const Aws::Vector& GetPhoneNumberPoolCountries() const{ return m_phoneNumberPoolCountries; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline bool PhoneNumberPoolCountriesHasBeenSet() const { return m_phoneNumberPoolCountriesHasBeenSet; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline void SetPhoneNumberPoolCountries(const Aws::Vector& value) { m_phoneNumberPoolCountriesHasBeenSet = true; m_phoneNumberPoolCountries = value; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline void SetPhoneNumberPoolCountries(Aws::Vector&& value) { m_phoneNumberPoolCountriesHasBeenSet = true; m_phoneNumberPoolCountries = std::move(value); } /** *

The countries for proxy phone numbers to be selected from.

*/ inline PutVoiceConnectorProxyRequest& WithPhoneNumberPoolCountries(const Aws::Vector& value) { SetPhoneNumberPoolCountries(value); return *this;} /** *

The countries for proxy phone numbers to be selected from.

*/ inline PutVoiceConnectorProxyRequest& WithPhoneNumberPoolCountries(Aws::Vector&& value) { SetPhoneNumberPoolCountries(std::move(value)); return *this;} /** *

The countries for proxy phone numbers to be selected from.

*/ inline PutVoiceConnectorProxyRequest& AddPhoneNumberPoolCountries(const Aws::String& value) { m_phoneNumberPoolCountriesHasBeenSet = true; m_phoneNumberPoolCountries.push_back(value); return *this; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline PutVoiceConnectorProxyRequest& AddPhoneNumberPoolCountries(Aws::String&& value) { m_phoneNumberPoolCountriesHasBeenSet = true; m_phoneNumberPoolCountries.push_back(std::move(value)); return *this; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline PutVoiceConnectorProxyRequest& AddPhoneNumberPoolCountries(const char* value) { m_phoneNumberPoolCountriesHasBeenSet = true; m_phoneNumberPoolCountries.push_back(value); return *this; } /** *

The phone number to route calls to after a proxy session expires.

*/ inline const Aws::String& GetFallBackPhoneNumber() const{ return m_fallBackPhoneNumber; } /** *

The phone number to route calls to after a proxy session expires.

*/ inline bool FallBackPhoneNumberHasBeenSet() const { return m_fallBackPhoneNumberHasBeenSet; } /** *

The phone number to route calls to after a proxy session expires.

*/ inline void SetFallBackPhoneNumber(const Aws::String& value) { m_fallBackPhoneNumberHasBeenSet = true; m_fallBackPhoneNumber = value; } /** *

The phone number to route calls to after a proxy session expires.

*/ inline void SetFallBackPhoneNumber(Aws::String&& value) { m_fallBackPhoneNumberHasBeenSet = true; m_fallBackPhoneNumber = std::move(value); } /** *

The phone number to route calls to after a proxy session expires.

*/ inline void SetFallBackPhoneNumber(const char* value) { m_fallBackPhoneNumberHasBeenSet = true; m_fallBackPhoneNumber.assign(value); } /** *

The phone number to route calls to after a proxy session expires.

*/ inline PutVoiceConnectorProxyRequest& WithFallBackPhoneNumber(const Aws::String& value) { SetFallBackPhoneNumber(value); return *this;} /** *

The phone number to route calls to after a proxy session expires.

*/ inline PutVoiceConnectorProxyRequest& WithFallBackPhoneNumber(Aws::String&& value) { SetFallBackPhoneNumber(std::move(value)); return *this;} /** *

The phone number to route calls to after a proxy session expires.

*/ inline PutVoiceConnectorProxyRequest& WithFallBackPhoneNumber(const char* value) { SetFallBackPhoneNumber(value); return *this;} /** *

When true, stops proxy sessions from being created on the specified Amazon * Chime SDK Voice Connector.

*/ inline bool GetDisabled() const{ return m_disabled; } /** *

When true, stops proxy sessions from being created on the specified Amazon * Chime SDK Voice Connector.

*/ inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; } /** *

When true, stops proxy sessions from being created on the specified Amazon * Chime SDK Voice Connector.

*/ inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; } /** *

When true, stops proxy sessions from being created on the specified Amazon * Chime SDK Voice Connector.

*/ inline PutVoiceConnectorProxyRequest& WithDisabled(bool value) { SetDisabled(value); return *this;} private: Aws::String m_voiceConnectorId; bool m_voiceConnectorIdHasBeenSet = false; int m_defaultSessionExpiryMinutes; bool m_defaultSessionExpiryMinutesHasBeenSet = false; Aws::Vector m_phoneNumberPoolCountries; bool m_phoneNumberPoolCountriesHasBeenSet = false; Aws::String m_fallBackPhoneNumber; bool m_fallBackPhoneNumberHasBeenSet = false; bool m_disabled; bool m_disabledHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws