/** * 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 { /** *

Termination settings enable SIP hosts to make outbound calls using an Amazon * Chime SDK Voice Connector.

See Also:

AWS * API Reference

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

The limit on calls per second. Max value based on account service quota. * Default value of 1.

*/ inline int GetCpsLimit() const{ return m_cpsLimit; } /** *

The limit on calls per second. Max value based on account service quota. * Default value of 1.

*/ inline bool CpsLimitHasBeenSet() const { return m_cpsLimitHasBeenSet; } /** *

The limit on calls per second. Max value based on account service quota. * Default value of 1.

*/ inline void SetCpsLimit(int value) { m_cpsLimitHasBeenSet = true; m_cpsLimit = value; } /** *

The limit on calls per second. Max value based on account service quota. * Default value of 1.

*/ inline Termination& WithCpsLimit(int value) { SetCpsLimit(value); return *this;} /** *

The default outbound calling number.

*/ inline const Aws::String& GetDefaultPhoneNumber() const{ return m_defaultPhoneNumber; } /** *

The default outbound calling number.

*/ inline bool DefaultPhoneNumberHasBeenSet() const { return m_defaultPhoneNumberHasBeenSet; } /** *

The default outbound calling number.

*/ inline void SetDefaultPhoneNumber(const Aws::String& value) { m_defaultPhoneNumberHasBeenSet = true; m_defaultPhoneNumber = value; } /** *

The default outbound calling number.

*/ inline void SetDefaultPhoneNumber(Aws::String&& value) { m_defaultPhoneNumberHasBeenSet = true; m_defaultPhoneNumber = std::move(value); } /** *

The default outbound calling number.

*/ inline void SetDefaultPhoneNumber(const char* value) { m_defaultPhoneNumberHasBeenSet = true; m_defaultPhoneNumber.assign(value); } /** *

The default outbound calling number.

*/ inline Termination& WithDefaultPhoneNumber(const Aws::String& value) { SetDefaultPhoneNumber(value); return *this;} /** *

The default outbound calling number.

*/ inline Termination& WithDefaultPhoneNumber(Aws::String&& value) { SetDefaultPhoneNumber(std::move(value)); return *this;} /** *

The default outbound calling number.

*/ inline Termination& WithDefaultPhoneNumber(const char* value) { SetDefaultPhoneNumber(value); return *this;} /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline const Aws::Vector& GetCallingRegions() const{ return m_callingRegions; } /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline bool CallingRegionsHasBeenSet() const { return m_callingRegionsHasBeenSet; } /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline void SetCallingRegions(const Aws::Vector& value) { m_callingRegionsHasBeenSet = true; m_callingRegions = value; } /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline void SetCallingRegions(Aws::Vector&& value) { m_callingRegionsHasBeenSet = true; m_callingRegions = std::move(value); } /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline Termination& WithCallingRegions(const Aws::Vector& value) { SetCallingRegions(value); return *this;} /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline Termination& WithCallingRegions(Aws::Vector&& value) { SetCallingRegions(std::move(value)); return *this;} /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline Termination& AddCallingRegions(const Aws::String& value) { m_callingRegionsHasBeenSet = true; m_callingRegions.push_back(value); return *this; } /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline Termination& AddCallingRegions(Aws::String&& value) { m_callingRegionsHasBeenSet = true; m_callingRegions.push_back(std::move(value)); return *this; } /** *

The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. * Required.

*/ inline Termination& AddCallingRegions(const char* value) { m_callingRegionsHasBeenSet = true; m_callingRegions.push_back(value); return *this; } /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline const Aws::Vector& GetCidrAllowedList() const{ return m_cidrAllowedList; } /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline bool CidrAllowedListHasBeenSet() const { return m_cidrAllowedListHasBeenSet; } /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline void SetCidrAllowedList(const Aws::Vector& value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList = value; } /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline void SetCidrAllowedList(Aws::Vector&& value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList = std::move(value); } /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline Termination& WithCidrAllowedList(const Aws::Vector& value) { SetCidrAllowedList(value); return *this;} /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline Termination& WithCidrAllowedList(Aws::Vector&& value) { SetCidrAllowedList(std::move(value)); return *this;} /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline Termination& AddCidrAllowedList(const Aws::String& value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList.push_back(value); return *this; } /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline Termination& AddCidrAllowedList(Aws::String&& value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList.push_back(std::move(value)); return *this; } /** *

The IP addresses allowed to make calls, in CIDR format.

*/ inline Termination& AddCidrAllowedList(const char* value) { m_cidrAllowedListHasBeenSet = true; m_cidrAllowedList.push_back(value); return *this; } /** *

When termination is disabled, outbound calls cannot be made.

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

When termination is disabled, outbound calls cannot be made.

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

When termination is disabled, outbound calls cannot be made.

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

When termination is disabled, outbound calls cannot be made.

*/ inline Termination& WithDisabled(bool value) { SetDisabled(value); return *this;} private: int m_cpsLimit; bool m_cpsLimitHasBeenSet = false; Aws::String m_defaultPhoneNumber; bool m_defaultPhoneNumberHasBeenSet = false; Aws::Vector m_callingRegions; bool m_callingRegionsHasBeenSet = false; Aws::Vector m_cidrAllowedList; bool m_cidrAllowedListHasBeenSet = false; bool m_disabled; bool m_disabledHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws