/** * 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 Connect { namespace Model { /** *

Contains information about the phone configuration settings for a * user.

See Also:

AWS * API Reference

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

The phone type.

*/ inline const PhoneType& GetPhoneType() const{ return m_phoneType; } /** *

The phone type.

*/ inline bool PhoneTypeHasBeenSet() const { return m_phoneTypeHasBeenSet; } /** *

The phone type.

*/ inline void SetPhoneType(const PhoneType& value) { m_phoneTypeHasBeenSet = true; m_phoneType = value; } /** *

The phone type.

*/ inline void SetPhoneType(PhoneType&& value) { m_phoneTypeHasBeenSet = true; m_phoneType = std::move(value); } /** *

The phone type.

*/ inline UserPhoneConfig& WithPhoneType(const PhoneType& value) { SetPhoneType(value); return *this;} /** *

The phone type.

*/ inline UserPhoneConfig& WithPhoneType(PhoneType&& value) { SetPhoneType(std::move(value)); return *this;} /** *

The Auto accept setting.

*/ inline bool GetAutoAccept() const{ return m_autoAccept; } /** *

The Auto accept setting.

*/ inline bool AutoAcceptHasBeenSet() const { return m_autoAcceptHasBeenSet; } /** *

The Auto accept setting.

*/ inline void SetAutoAccept(bool value) { m_autoAcceptHasBeenSet = true; m_autoAccept = value; } /** *

The Auto accept setting.

*/ inline UserPhoneConfig& WithAutoAccept(bool value) { SetAutoAccept(value); return *this;} /** *

The After Call Work (ACW) timeout setting, in seconds.

When * returned by a SearchUsers call, * AfterContactWorkTimeLimit is returned in milliseconds.

*/ inline int GetAfterContactWorkTimeLimit() const{ return m_afterContactWorkTimeLimit; } /** *

The After Call Work (ACW) timeout setting, in seconds.

When * returned by a SearchUsers call, * AfterContactWorkTimeLimit is returned in milliseconds.

*/ inline bool AfterContactWorkTimeLimitHasBeenSet() const { return m_afterContactWorkTimeLimitHasBeenSet; } /** *

The After Call Work (ACW) timeout setting, in seconds.

When * returned by a SearchUsers call, * AfterContactWorkTimeLimit is returned in milliseconds.

*/ inline void SetAfterContactWorkTimeLimit(int value) { m_afterContactWorkTimeLimitHasBeenSet = true; m_afterContactWorkTimeLimit = value; } /** *

The After Call Work (ACW) timeout setting, in seconds.

When * returned by a SearchUsers call, * AfterContactWorkTimeLimit is returned in milliseconds.

*/ inline UserPhoneConfig& WithAfterContactWorkTimeLimit(int value) { SetAfterContactWorkTimeLimit(value); return *this;} /** *

The phone number for the user's desk phone.

*/ inline const Aws::String& GetDeskPhoneNumber() const{ return m_deskPhoneNumber; } /** *

The phone number for the user's desk phone.

*/ inline bool DeskPhoneNumberHasBeenSet() const { return m_deskPhoneNumberHasBeenSet; } /** *

The phone number for the user's desk phone.

*/ inline void SetDeskPhoneNumber(const Aws::String& value) { m_deskPhoneNumberHasBeenSet = true; m_deskPhoneNumber = value; } /** *

The phone number for the user's desk phone.

*/ inline void SetDeskPhoneNumber(Aws::String&& value) { m_deskPhoneNumberHasBeenSet = true; m_deskPhoneNumber = std::move(value); } /** *

The phone number for the user's desk phone.

*/ inline void SetDeskPhoneNumber(const char* value) { m_deskPhoneNumberHasBeenSet = true; m_deskPhoneNumber.assign(value); } /** *

The phone number for the user's desk phone.

*/ inline UserPhoneConfig& WithDeskPhoneNumber(const Aws::String& value) { SetDeskPhoneNumber(value); return *this;} /** *

The phone number for the user's desk phone.

*/ inline UserPhoneConfig& WithDeskPhoneNumber(Aws::String&& value) { SetDeskPhoneNumber(std::move(value)); return *this;} /** *

The phone number for the user's desk phone.

*/ inline UserPhoneConfig& WithDeskPhoneNumber(const char* value) { SetDeskPhoneNumber(value); return *this;} private: PhoneType m_phoneType; bool m_phoneTypeHasBeenSet = false; bool m_autoAccept; bool m_autoAcceptHasBeenSet = false; int m_afterContactWorkTimeLimit; bool m_afterContactWorkTimeLimitHasBeenSet = false; Aws::String m_deskPhoneNumber; bool m_deskPhoneNumberHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws