AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ValueT = Aws::String>
48 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
49 template<typename ValueT = Aws::String>
50 PhoneNumber& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
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) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
61 template<typename TypeT = Aws::String>
62 PhoneNumber& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
64
66
70 inline bool GetPrimary() const { return m_primary; }
71 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
72 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
73 inline PhoneNumber& WithPrimary(bool value) { SetPrimary(value); return *this;}
75 private:
76
77 Aws::String m_value;
78 bool m_valueHasBeenSet = false;
79
80 Aws::String m_type;
81 bool m_typeHasBeenSet = false;
82
83 bool m_primary{false};
84 bool m_primaryHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace IdentityStore
89} // namespace Aws
AWS_IDENTITYSTORE_API PhoneNumber()=default
PhoneNumber & WithValue(ValueT &&value)
Definition PhoneNumber.h:50
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:73
PhoneNumber & WithType(TypeT &&value)
Definition PhoneNumber.h:62
const Aws::String & GetValue() const
Definition PhoneNumber.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue