AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PhoneNumberConfig.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/Channel.h>
9#include <aws/connect/model/PhoneType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
31 public:
32 AWS_CONNECT_API PhoneNumberConfig() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline Channel GetChannel() const { return m_channel; }
43 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
44 inline void SetChannel(Channel value) {
45 m_channelHasBeenSet = true;
46 m_channel = value;
47 }
49 SetChannel(value);
50 return *this;
51 }
53
55
58 inline PhoneType GetPhoneType() const { return m_phoneType; }
59 inline bool PhoneTypeHasBeenSet() const { return m_phoneTypeHasBeenSet; }
60 inline void SetPhoneType(PhoneType value) {
61 m_phoneTypeHasBeenSet = true;
62 m_phoneType = value;
63 }
65 SetPhoneType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetPhoneNumber() const { return m_phoneNumber; }
75 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
76 template <typename PhoneNumberT = Aws::String>
77 void SetPhoneNumber(PhoneNumberT&& value) {
78 m_phoneNumberHasBeenSet = true;
79 m_phoneNumber = std::forward<PhoneNumberT>(value);
80 }
81 template <typename PhoneNumberT = Aws::String>
82 PhoneNumberConfig& WithPhoneNumber(PhoneNumberT&& value) {
83 SetPhoneNumber(std::forward<PhoneNumberT>(value));
84 return *this;
85 }
87 private:
88 Channel m_channel{Channel::NOT_SET};
89
90 PhoneType m_phoneType{PhoneType::NOT_SET};
91
92 Aws::String m_phoneNumber;
93 bool m_channelHasBeenSet = false;
94 bool m_phoneTypeHasBeenSet = false;
95 bool m_phoneNumberHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Connect
100} // namespace Aws
AWS_CONNECT_API PhoneNumberConfig(Aws::Utils::Json::JsonView jsonValue)
void SetPhoneNumber(PhoneNumberT &&value)
AWS_CONNECT_API PhoneNumberConfig()=default
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API PhoneNumberConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPhoneNumber() const
PhoneNumberConfig & WithPhoneNumber(PhoneNumberT &&value)
PhoneNumberConfig & WithPhoneType(PhoneType value)
PhoneNumberConfig & WithChannel(Channel value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue