/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ChimeSDKVoice { namespace Model { /** *

The proxy configuration for an Amazon Chime SDK Voice * Connector.

See Also:

AWS * API Reference

*/ class Proxy { public: AWS_CHIMESDKVOICE_API Proxy(); AWS_CHIMESDKVOICE_API Proxy(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKVOICE_API Proxy& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKVOICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The default number of minutes allowed for proxy sessions.

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

The default number of minutes allowed for proxy sessions.

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

The default number of minutes allowed for proxy sessions.

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

The default number of minutes allowed for proxy sessions.

*/ inline Proxy& WithDefaultSessionExpiryMinutes(int value) { SetDefaultSessionExpiryMinutes(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 Proxy& WithDisabled(bool value) { SetDisabled(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 Proxy& WithFallBackPhoneNumber(const Aws::String& value) { SetFallBackPhoneNumber(value); return *this;} /** *

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

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

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

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

The countries for proxy phone numbers to be selected from.

*/ inline const Aws::Vector& GetPhoneNumberCountries() const{ return m_phoneNumberCountries; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline bool PhoneNumberCountriesHasBeenSet() const { return m_phoneNumberCountriesHasBeenSet; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline void SetPhoneNumberCountries(const Aws::Vector& value) { m_phoneNumberCountriesHasBeenSet = true; m_phoneNumberCountries = value; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline void SetPhoneNumberCountries(Aws::Vector&& value) { m_phoneNumberCountriesHasBeenSet = true; m_phoneNumberCountries = std::move(value); } /** *

The countries for proxy phone numbers to be selected from.

*/ inline Proxy& WithPhoneNumberCountries(const Aws::Vector& value) { SetPhoneNumberCountries(value); return *this;} /** *

The countries for proxy phone numbers to be selected from.

*/ inline Proxy& WithPhoneNumberCountries(Aws::Vector&& value) { SetPhoneNumberCountries(std::move(value)); return *this;} /** *

The countries for proxy phone numbers to be selected from.

*/ inline Proxy& AddPhoneNumberCountries(const Aws::String& value) { m_phoneNumberCountriesHasBeenSet = true; m_phoneNumberCountries.push_back(value); return *this; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline Proxy& AddPhoneNumberCountries(Aws::String&& value) { m_phoneNumberCountriesHasBeenSet = true; m_phoneNumberCountries.push_back(std::move(value)); return *this; } /** *

The countries for proxy phone numbers to be selected from.

*/ inline Proxy& AddPhoneNumberCountries(const char* value) { m_phoneNumberCountriesHasBeenSet = true; m_phoneNumberCountries.push_back(value); return *this; } private: int m_defaultSessionExpiryMinutes; bool m_defaultSessionExpiryMinutesHasBeenSet = false; bool m_disabled; bool m_disabledHasBeenSet = false; Aws::String m_fallBackPhoneNumber; bool m_fallBackPhoneNumberHasBeenSet = false; Aws::Vector m_phoneNumberCountries; bool m_phoneNumberCountriesHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws