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

For Amazon Chime SDK Voice Connector groups, the Amazon Chime SDK Voice * Connectors to which you route inbound calls. Includes priority configuration * settings. Limit: 3 VoiceConnectorItems per Voice Connector group.

See * Also:

AWS * API Reference

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

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 VoiceConnectorItem& WithVoiceConnectorId(const Aws::String& value) { SetVoiceConnectorId(value); return *this;} /** *

The Voice Connector ID.

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

The Voice Connector ID.

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

The priority setting of a Voice Connector item. Calls are routed to hosts in * priority order, with 1 as the highest priority. When hosts have equal priority, * the system distributes calls among them based on their relative weight.

*/ inline int GetPriority() const{ return m_priority; } /** *

The priority setting of a Voice Connector item. Calls are routed to hosts in * priority order, with 1 as the highest priority. When hosts have equal priority, * the system distributes calls among them based on their relative weight.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

The priority setting of a Voice Connector item. Calls are routed to hosts in * priority order, with 1 as the highest priority. When hosts have equal priority, * the system distributes calls among them based on their relative weight.

*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

The priority setting of a Voice Connector item. Calls are routed to hosts in * priority order, with 1 as the highest priority. When hosts have equal priority, * the system distributes calls among them based on their relative weight.

*/ inline VoiceConnectorItem& WithPriority(int value) { SetPriority(value); return *this;} private: Aws::String m_voiceConnectorId; bool m_voiceConnectorIdHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws