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

Origination settings enable your SIP hosts to receive inbound calls using * your Amazon Chime SDK Voice Connector.

The parameters listed below * are not required, but you must use at least one.

See * Also:

AWS * API Reference

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

The call distribution properties defined for your SIP hosts. Valid range: * Minimum value of 1. Maximum value of 20. This parameter is not required, but you * must specify this parameter or Disabled.

*/ inline const Aws::Vector& GetRoutes() const{ return m_routes; } /** *

The call distribution properties defined for your SIP hosts. Valid range: * Minimum value of 1. Maximum value of 20. This parameter is not required, but you * must specify this parameter or Disabled.

*/ inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; } /** *

The call distribution properties defined for your SIP hosts. Valid range: * Minimum value of 1. Maximum value of 20. This parameter is not required, but you * must specify this parameter or Disabled.

*/ inline void SetRoutes(const Aws::Vector& value) { m_routesHasBeenSet = true; m_routes = value; } /** *

The call distribution properties defined for your SIP hosts. Valid range: * Minimum value of 1. Maximum value of 20. This parameter is not required, but you * must specify this parameter or Disabled.

*/ inline void SetRoutes(Aws::Vector&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); } /** *

The call distribution properties defined for your SIP hosts. Valid range: * Minimum value of 1. Maximum value of 20. This parameter is not required, but you * must specify this parameter or Disabled.

*/ inline Origination& WithRoutes(const Aws::Vector& value) { SetRoutes(value); return *this;} /** *

The call distribution properties defined for your SIP hosts. Valid range: * Minimum value of 1. Maximum value of 20. This parameter is not required, but you * must specify this parameter or Disabled.

*/ inline Origination& WithRoutes(Aws::Vector&& value) { SetRoutes(std::move(value)); return *this;} /** *

The call distribution properties defined for your SIP hosts. Valid range: * Minimum value of 1. Maximum value of 20. This parameter is not required, but you * must specify this parameter or Disabled.

*/ inline Origination& AddRoutes(const OriginationRoute& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; } /** *

The call distribution properties defined for your SIP hosts. Valid range: * Minimum value of 1. Maximum value of 20. This parameter is not required, but you * must specify this parameter or Disabled.

*/ inline Origination& AddRoutes(OriginationRoute&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; } /** *

When origination settings are disabled, inbound calls are not enabled for * your Amazon Chime SDK Voice Connector. This parameter is not required, but you * must specify this parameter or Routes.

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

When origination settings are disabled, inbound calls are not enabled for * your Amazon Chime SDK Voice Connector. This parameter is not required, but you * must specify this parameter or Routes.

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

When origination settings are disabled, inbound calls are not enabled for * your Amazon Chime SDK Voice Connector. This parameter is not required, but you * must specify this parameter or Routes.

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

When origination settings are disabled, inbound calls are not enabled for * your Amazon Chime SDK Voice Connector. This parameter is not required, but you * must specify this parameter or Routes.

*/ inline Origination& WithDisabled(bool value) { SetDisabled(value); return *this;} private: Aws::Vector m_routes; bool m_routesHasBeenSet = false; bool m_disabled; bool m_disabledHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws