AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PhoneNumber.h
1
6#pragma once
7#include <aws/identitystore/IdentityStore_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IdentityStore
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_IDENTITYSTORE_API PhoneNumber();
35 AWS_IDENTITYSTORE_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IDENTITYSTORE_API PhoneNumber& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::String& GetValue() const{ return m_value; }
46 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
47 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
48 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
49 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
50 inline PhoneNumber& WithValue(const Aws::String& value) { SetValue(value); return *this;}
51 inline PhoneNumber& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
52 inline PhoneNumber& WithValue(const char* value) { SetValue(value); return *this;}
54
56
59 inline const Aws::String& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
64 inline PhoneNumber& WithType(const Aws::String& value) { SetType(value); return *this;}
65 inline PhoneNumber& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
66 inline PhoneNumber& WithType(const char* value) { SetType(value); return *this;}
68
70
74 inline bool GetPrimary() const{ return m_primary; }
75 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
76 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
77 inline PhoneNumber& WithPrimary(bool value) { SetPrimary(value); return *this;}
79 private:
80
81 Aws::String m_value;
82 bool m_valueHasBeenSet = false;
83
84 Aws::String m_type;
85 bool m_typeHasBeenSet = false;
86
87 bool m_primary;
88 bool m_primaryHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace IdentityStore
93} // namespace Aws
PhoneNumber & WithValue(const Aws::String &value)
Definition PhoneNumber.h:50
AWS_IDENTITYSTORE_API PhoneNumber()
const Aws::String & GetType() const
Definition PhoneNumber.h:59
AWS_IDENTITYSTORE_API PhoneNumber & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const char *value)
Definition PhoneNumber.h:63
AWS_IDENTITYSTORE_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const char *value)
Definition PhoneNumber.h:49
PhoneNumber & WithType(const char *value)
Definition PhoneNumber.h:66
void SetValue(Aws::String &&value)
Definition PhoneNumber.h:48
void SetType(Aws::String &&value)
Definition PhoneNumber.h:62
void SetType(const Aws::String &value)
Definition PhoneNumber.h:61
PhoneNumber & WithPrimary(bool value)
Definition PhoneNumber.h:77
PhoneNumber & WithType(const Aws::String &value)
Definition PhoneNumber.h:64
PhoneNumber & WithType(Aws::String &&value)
Definition PhoneNumber.h:65
PhoneNumber & WithValue(Aws::String &&value)
Definition PhoneNumber.h:51
const Aws::String & GetValue() const
Definition PhoneNumber.h:45
PhoneNumber & WithValue(const char *value)
Definition PhoneNumber.h:52
void SetValue(const Aws::String &value)
Definition PhoneNumber.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue