AWS SDK for C++

AWS SDK for C++ Version 1.11.611

Loading...
Searching...
No Matches
UserPhoneConfig.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/PhoneType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECT_API UserPhoneConfig() = default;
37 AWS_CONNECT_API UserPhoneConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline PhoneType GetPhoneType() const { return m_phoneType; }
47 inline bool PhoneTypeHasBeenSet() const { return m_phoneTypeHasBeenSet; }
48 inline void SetPhoneType(PhoneType value) { m_phoneTypeHasBeenSet = true; m_phoneType = value; }
49 inline UserPhoneConfig& WithPhoneType(PhoneType value) { SetPhoneType(value); return *this;}
51
53
56 inline bool GetAutoAccept() const { return m_autoAccept; }
57 inline bool AutoAcceptHasBeenSet() const { return m_autoAcceptHasBeenSet; }
58 inline void SetAutoAccept(bool value) { m_autoAcceptHasBeenSet = true; m_autoAccept = value; }
59 inline UserPhoneConfig& WithAutoAccept(bool value) { SetAutoAccept(value); return *this;}
61
63
72 inline int GetAfterContactWorkTimeLimit() const { return m_afterContactWorkTimeLimit; }
73 inline bool AfterContactWorkTimeLimitHasBeenSet() const { return m_afterContactWorkTimeLimitHasBeenSet; }
74 inline void SetAfterContactWorkTimeLimit(int value) { m_afterContactWorkTimeLimitHasBeenSet = true; m_afterContactWorkTimeLimit = value; }
77
79
82 inline const Aws::String& GetDeskPhoneNumber() const { return m_deskPhoneNumber; }
83 inline bool DeskPhoneNumberHasBeenSet() const { return m_deskPhoneNumberHasBeenSet; }
84 template<typename DeskPhoneNumberT = Aws::String>
85 void SetDeskPhoneNumber(DeskPhoneNumberT&& value) { m_deskPhoneNumberHasBeenSet = true; m_deskPhoneNumber = std::forward<DeskPhoneNumberT>(value); }
86 template<typename DeskPhoneNumberT = Aws::String>
87 UserPhoneConfig& WithDeskPhoneNumber(DeskPhoneNumberT&& value) { SetDeskPhoneNumber(std::forward<DeskPhoneNumberT>(value)); return *this;}
89 private:
90
91 PhoneType m_phoneType{PhoneType::NOT_SET};
92 bool m_phoneTypeHasBeenSet = false;
93
94 bool m_autoAccept{false};
95 bool m_autoAcceptHasBeenSet = false;
96
97 int m_afterContactWorkTimeLimit{0};
98 bool m_afterContactWorkTimeLimitHasBeenSet = false;
99
100 Aws::String m_deskPhoneNumber;
101 bool m_deskPhoneNumberHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Connect
106} // namespace Aws
const Aws::String & GetDeskPhoneNumber() const
UserPhoneConfig & WithAutoAccept(bool value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
UserPhoneConfig & WithAfterContactWorkTimeLimit(int value)
UserPhoneConfig & WithPhoneType(PhoneType value)
AWS_CONNECT_API UserPhoneConfig()=default
void SetDeskPhoneNumber(DeskPhoneNumberT &&value)
AWS_CONNECT_API UserPhoneConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API UserPhoneConfig(Aws::Utils::Json::JsonView jsonValue)
UserPhoneConfig & WithDeskPhoneNumber(DeskPhoneNumberT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue