AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PhoneNumber.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/identitystore/IdentityStore_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IdentityStore {
20namespace Model {
21
28 public:
29 AWS_IDENTITYSTORE_API PhoneNumber() = default;
30 AWS_IDENTITYSTORE_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue);
31 AWS_IDENTITYSTORE_API PhoneNumber& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetValue() const { return m_value; }
40 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
41 template <typename ValueT = Aws::String>
42 void SetValue(ValueT&& value) {
43 m_valueHasBeenSet = true;
44 m_value = std::forward<ValueT>(value);
45 }
46 template <typename ValueT = Aws::String>
47 PhoneNumber& WithValue(ValueT&& value) {
48 SetValue(std::forward<ValueT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 template <typename TypeT = Aws::String>
60 void SetType(TypeT&& value) {
61 m_typeHasBeenSet = true;
62 m_type = std::forward<TypeT>(value);
63 }
64 template <typename TypeT = Aws::String>
65 PhoneNumber& WithType(TypeT&& value) {
66 SetType(std::forward<TypeT>(value));
67 return *this;
68 }
70
72
76 inline bool GetPrimary() const { return m_primary; }
77 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
78 inline void SetPrimary(bool value) {
79 m_primaryHasBeenSet = true;
80 m_primary = value;
81 }
82 inline PhoneNumber& WithPrimary(bool value) {
83 SetPrimary(value);
84 return *this;
85 }
87 private:
88 Aws::String m_value;
89
90 Aws::String m_type;
91
92 bool m_primary{false};
93 bool m_valueHasBeenSet = false;
94 bool m_typeHasBeenSet = false;
95 bool m_primaryHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace IdentityStore
100} // namespace Aws
AWS_IDENTITYSTORE_API PhoneNumber()=default
PhoneNumber & WithValue(ValueT &&value)
Definition PhoneNumber.h:47
const Aws::String & GetType() const
Definition PhoneNumber.h:57
AWS_IDENTITYSTORE_API PhoneNumber & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IDENTITYSTORE_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue)
PhoneNumber & WithPrimary(bool value)
Definition PhoneNumber.h:82
PhoneNumber & WithType(TypeT &&value)
Definition PhoneNumber.h:65
const Aws::String & GetValue() const
Definition PhoneNumber.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue