AWS SDK for C++

AWS SDK for C++ Version 1.11.691

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
30 public:
31 AWS_CONNECT_API UserPhoneConfig() = default;
32 AWS_CONNECT_API UserPhoneConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline PhoneType GetPhoneType() const { return m_phoneType; }
41 inline bool PhoneTypeHasBeenSet() const { return m_phoneTypeHasBeenSet; }
42 inline void SetPhoneType(PhoneType value) {
43 m_phoneTypeHasBeenSet = true;
44 m_phoneType = value;
45 }
47 SetPhoneType(value);
48 return *this;
49 }
51
53
56 inline bool GetAutoAccept() const { return m_autoAccept; }
57 inline bool AutoAcceptHasBeenSet() const { return m_autoAcceptHasBeenSet; }
58 inline void SetAutoAccept(bool value) {
59 m_autoAcceptHasBeenSet = true;
60 m_autoAccept = value;
61 }
62 inline UserPhoneConfig& WithAutoAccept(bool value) {
63 SetAutoAccept(value);
64 return *this;
65 }
67
69
78 inline int GetAfterContactWorkTimeLimit() const { return m_afterContactWorkTimeLimit; }
79 inline bool AfterContactWorkTimeLimitHasBeenSet() const { return m_afterContactWorkTimeLimitHasBeenSet; }
80 inline void SetAfterContactWorkTimeLimit(int value) {
81 m_afterContactWorkTimeLimitHasBeenSet = true;
82 m_afterContactWorkTimeLimit = value;
83 }
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDeskPhoneNumber() const { return m_deskPhoneNumber; }
95 inline bool DeskPhoneNumberHasBeenSet() const { return m_deskPhoneNumberHasBeenSet; }
96 template <typename DeskPhoneNumberT = Aws::String>
97 void SetDeskPhoneNumber(DeskPhoneNumberT&& value) {
98 m_deskPhoneNumberHasBeenSet = true;
99 m_deskPhoneNumber = std::forward<DeskPhoneNumberT>(value);
100 }
101 template <typename DeskPhoneNumberT = Aws::String>
102 UserPhoneConfig& WithDeskPhoneNumber(DeskPhoneNumberT&& value) {
103 SetDeskPhoneNumber(std::forward<DeskPhoneNumberT>(value));
104 return *this;
105 }
107
109
112 inline bool GetPersistentConnection() const { return m_persistentConnection; }
113 inline bool PersistentConnectionHasBeenSet() const { return m_persistentConnectionHasBeenSet; }
114 inline void SetPersistentConnection(bool value) {
115 m_persistentConnectionHasBeenSet = true;
116 m_persistentConnection = value;
117 }
120 return *this;
121 }
123 private:
124 PhoneType m_phoneType{PhoneType::NOT_SET};
125 bool m_phoneTypeHasBeenSet = false;
126
127 bool m_autoAccept{false};
128 bool m_autoAcceptHasBeenSet = false;
129
130 int m_afterContactWorkTimeLimit{0};
131 bool m_afterContactWorkTimeLimitHasBeenSet = false;
132
133 Aws::String m_deskPhoneNumber;
134 bool m_deskPhoneNumberHasBeenSet = false;
135
136 bool m_persistentConnection{false};
137 bool m_persistentConnectionHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Connect
142} // namespace Aws
const Aws::String & GetDeskPhoneNumber() const
UserPhoneConfig & WithAutoAccept(bool value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
UserPhoneConfig & WithPersistentConnection(bool value)
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