AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Email.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
31 class Email
32 {
33 public:
34 AWS_IDENTITYSTORE_API Email() = default;
35 AWS_IDENTITYSTORE_API Email(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IDENTITYSTORE_API Email& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetValue() const { return m_value; }
45 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
46 template<typename ValueT = Aws::String>
47 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
48 template<typename ValueT = Aws::String>
49 Email& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
51
53
56 inline const Aws::String& GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 template<typename TypeT = Aws::String>
59 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
60 template<typename TypeT = Aws::String>
61 Email& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
63
65
69 inline bool GetPrimary() const { return m_primary; }
70 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
71 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
72 inline Email& WithPrimary(bool value) { SetPrimary(value); return *this;}
74 private:
75
76 Aws::String m_value;
77 bool m_valueHasBeenSet = false;
78
79 Aws::String m_type;
80 bool m_typeHasBeenSet = false;
81
82 bool m_primary{false};
83 bool m_primaryHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace IdentityStore
88} // namespace Aws
const Aws::String & GetValue() const
Definition Email.h:44
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
Email & WithType(TypeT &&value)
Definition Email.h:61
void SetType(TypeT &&value)
Definition Email.h:59
void SetValue(ValueT &&value)
Definition Email.h:47
Email & WithPrimary(bool value)
Definition Email.h:72
bool PrimaryHasBeenSet() const
Definition Email.h:70
Email & WithValue(ValueT &&value)
Definition Email.h:49
AWS_IDENTITYSTORE_API Email()=default
const Aws::String & GetType() const
Definition Email.h:56
AWS_IDENTITYSTORE_API Email(Aws::Utils::Json::JsonView jsonValue)
void SetPrimary(bool value)
Definition Email.h:71
AWS_IDENTITYSTORE_API Email & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue