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

Settings that allow management of telephony permissions for an Amazon Chime * user, such as inbound and outbound calling and text messaging.

See * Also:

AWS * API Reference

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

Allows or denies inbound calling.

*/ inline bool GetInboundCalling() const{ return m_inboundCalling; } /** *

Allows or denies inbound calling.

*/ inline bool InboundCallingHasBeenSet() const { return m_inboundCallingHasBeenSet; } /** *

Allows or denies inbound calling.

*/ inline void SetInboundCalling(bool value) { m_inboundCallingHasBeenSet = true; m_inboundCalling = value; } /** *

Allows or denies inbound calling.

*/ inline TelephonySettings& WithInboundCalling(bool value) { SetInboundCalling(value); return *this;} /** *

Allows or denies outbound calling.

*/ inline bool GetOutboundCalling() const{ return m_outboundCalling; } /** *

Allows or denies outbound calling.

*/ inline bool OutboundCallingHasBeenSet() const { return m_outboundCallingHasBeenSet; } /** *

Allows or denies outbound calling.

*/ inline void SetOutboundCalling(bool value) { m_outboundCallingHasBeenSet = true; m_outboundCalling = value; } /** *

Allows or denies outbound calling.

*/ inline TelephonySettings& WithOutboundCalling(bool value) { SetOutboundCalling(value); return *this;} /** *

Allows or denies SMS messaging.

*/ inline bool GetSMS() const{ return m_sMS; } /** *

Allows or denies SMS messaging.

*/ inline bool SMSHasBeenSet() const { return m_sMSHasBeenSet; } /** *

Allows or denies SMS messaging.

*/ inline void SetSMS(bool value) { m_sMSHasBeenSet = true; m_sMS = value; } /** *

Allows or denies SMS messaging.

*/ inline TelephonySettings& WithSMS(bool value) { SetSMS(value); return *this;} private: bool m_inboundCalling; bool m_inboundCallingHasBeenSet = false; bool m_outboundCalling; bool m_outboundCallingHasBeenSet = false; bool m_sMS; bool m_sMSHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws