AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
47 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
48 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
49 inline Email& WithValue(const Aws::String& value) { SetValue(value); return *this;}
50 inline Email& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
51 inline Email& WithValue(const char* value) { SetValue(value); return *this;}
53
55
58 inline const Aws::String& GetType() const{ return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
61 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
62 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
63 inline Email& WithType(const Aws::String& value) { SetType(value); return *this;}
64 inline Email& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
65 inline Email& WithType(const char* value) { SetType(value); return *this;}
67
69
73 inline bool GetPrimary() const{ return m_primary; }
74 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
75 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
76 inline Email& WithPrimary(bool value) { SetPrimary(value); return *this;}
78 private:
79
80 Aws::String m_value;
81 bool m_valueHasBeenSet = false;
82
83 Aws::String m_type;
84 bool m_typeHasBeenSet = false;
85
86 bool m_primary;
87 bool m_primaryHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace IdentityStore
92} // namespace Aws
Email & WithValue(Aws::String &&value)
Definition Email.h:50
const Aws::String & GetValue() const
Definition Email.h:44
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const Aws::String &value)
Definition Email.h:60
Email & WithPrimary(bool value)
Definition Email.h:76
void SetType(const char *value)
Definition Email.h:62
void SetValue(Aws::String &&value)
Definition Email.h:47
bool PrimaryHasBeenSet() const
Definition Email.h:74
void SetValue(const Aws::String &value)
Definition Email.h:46
const Aws::String & GetType() const
Definition Email.h:58
AWS_IDENTITYSTORE_API Email(Aws::Utils::Json::JsonView jsonValue)
void SetType(Aws::String &&value)
Definition Email.h:61
Email & WithType(const char *value)
Definition Email.h:65
Email & WithType(const Aws::String &value)
Definition Email.h:63
void SetValue(const char *value)
Definition Email.h:48
AWS_IDENTITYSTORE_API Email()
Email & WithType(Aws::String &&value)
Definition Email.h:64
void SetPrimary(bool value)
Definition Email.h:75
Email & WithValue(const Aws::String &value)
Definition Email.h:49
AWS_IDENTITYSTORE_API Email & operator=(Aws::Utils::Json::JsonView jsonValue)
Email & WithValue(const char *value)
Definition Email.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue