AWS SDK for C++  1.9.103
AWS SDK for C++
PhoneNumber.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AlexaForBusiness
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetNumber() const{ return m_number; }
46 
50  inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
51 
55  inline void SetNumber(const Aws::String& value) { m_numberHasBeenSet = true; m_number = value; }
56 
60  inline void SetNumber(Aws::String&& value) { m_numberHasBeenSet = true; m_number = std::move(value); }
61 
65  inline void SetNumber(const char* value) { m_numberHasBeenSet = true; m_number.assign(value); }
66 
70  inline PhoneNumber& WithNumber(const Aws::String& value) { SetNumber(value); return *this;}
71 
75  inline PhoneNumber& WithNumber(Aws::String&& value) { SetNumber(std::move(value)); return *this;}
76 
80  inline PhoneNumber& WithNumber(const char* value) { SetNumber(value); return *this;}
81 
82 
86  inline const PhoneNumberType& GetType() const{ return m_type; }
87 
91  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 
96  inline void SetType(const PhoneNumberType& value) { m_typeHasBeenSet = true; m_type = value; }
97 
101  inline void SetType(PhoneNumberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
102 
106  inline PhoneNumber& WithType(const PhoneNumberType& value) { SetType(value); return *this;}
107 
111  inline PhoneNumber& WithType(PhoneNumberType&& value) { SetType(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_number;
116  bool m_numberHasBeenSet;
117 
118  PhoneNumberType m_type;
119  bool m_typeHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace AlexaForBusiness
124 } // namespace Aws
Aws::AlexaForBusiness::Model::PhoneNumber::SetType
void SetType(PhoneNumberType &&value)
Definition: PhoneNumber.h:101
Aws::AlexaForBusiness::Model::PhoneNumber::WithType
PhoneNumber & WithType(const PhoneNumberType &value)
Definition: PhoneNumber.h:106
Aws::AlexaForBusiness::Model::PhoneNumber::PhoneNumber
PhoneNumber(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::PhoneNumber::WithNumber
PhoneNumber & WithNumber(Aws::String &&value)
Definition: PhoneNumber.h:75
Aws::AlexaForBusiness::Model::PhoneNumber::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PhoneNumber.h:91
Aws::AlexaForBusiness::Model::PhoneNumber::GetNumber
const Aws::String & GetNumber() const
Definition: PhoneNumber.h:45
PhoneNumberType.h
Aws::AlexaForBusiness::Model::PhoneNumber::SetNumber
void SetNumber(const char *value)
Definition: PhoneNumber.h:65
Aws::AlexaForBusiness::Model::PhoneNumber::operator=
PhoneNumber & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AlexaForBusiness::Model::PhoneNumber
Definition: PhoneNumber.h:34
Aws::AlexaForBusiness::Model::PhoneNumber::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::PhoneNumber::SetNumber
void SetNumber(const Aws::String &value)
Definition: PhoneNumber.h:55
Aws::AlexaForBusiness::Model::PhoneNumberType
PhoneNumberType
Definition: PhoneNumberType.h:17
Aws::AlexaForBusiness::Model::PhoneNumber::PhoneNumber
PhoneNumber()
Aws::AlexaForBusiness::Model::PhoneNumber::WithNumber
PhoneNumber & WithNumber(const Aws::String &value)
Definition: PhoneNumber.h:70
Aws::AlexaForBusiness::Model::PhoneNumber::WithNumber
PhoneNumber & WithNumber(const char *value)
Definition: PhoneNumber.h:80
Aws::AlexaForBusiness::Model::PhoneNumber::SetNumber
void SetNumber(Aws::String &&value)
Definition: PhoneNumber.h:60
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AlexaForBusiness::Model::PhoneNumber::GetType
const PhoneNumberType & GetType() const
Definition: PhoneNumber.h:86
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::PhoneNumber::SetType
void SetType(const PhoneNumberType &value)
Definition: PhoneNumber.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::PhoneNumber::WithType
PhoneNumber & WithType(PhoneNumberType &&value)
Definition: PhoneNumber.h:111
Aws::AlexaForBusiness::Model::PhoneNumber::NumberHasBeenSet
bool NumberHasBeenSet() const
Definition: PhoneNumber.h:50