AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserMetadata.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_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 WorkDocs
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_WORKDOCS_API UserMetadata();
35 AWS_WORKDOCS_API UserMetadata(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetId() const{ return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
47 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
48 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
49 inline UserMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
50 inline UserMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
51 inline UserMetadata& WithId(const char* value) { SetId(value); return *this;}
53
55
58 inline const Aws::String& GetUsername() const{ return m_username; }
59 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
60 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
61 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
62 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
63 inline UserMetadata& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
64 inline UserMetadata& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
65 inline UserMetadata& WithUsername(const char* value) { SetUsername(value); return *this;}
67
69
72 inline const Aws::String& GetGivenName() const{ return m_givenName; }
73 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
74 inline void SetGivenName(const Aws::String& value) { m_givenNameHasBeenSet = true; m_givenName = value; }
75 inline void SetGivenName(Aws::String&& value) { m_givenNameHasBeenSet = true; m_givenName = std::move(value); }
76 inline void SetGivenName(const char* value) { m_givenNameHasBeenSet = true; m_givenName.assign(value); }
77 inline UserMetadata& WithGivenName(const Aws::String& value) { SetGivenName(value); return *this;}
78 inline UserMetadata& WithGivenName(Aws::String&& value) { SetGivenName(std::move(value)); return *this;}
79 inline UserMetadata& WithGivenName(const char* value) { SetGivenName(value); return *this;}
81
83
86 inline const Aws::String& GetSurname() const{ return m_surname; }
87 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
88 inline void SetSurname(const Aws::String& value) { m_surnameHasBeenSet = true; m_surname = value; }
89 inline void SetSurname(Aws::String&& value) { m_surnameHasBeenSet = true; m_surname = std::move(value); }
90 inline void SetSurname(const char* value) { m_surnameHasBeenSet = true; m_surname.assign(value); }
91 inline UserMetadata& WithSurname(const Aws::String& value) { SetSurname(value); return *this;}
92 inline UserMetadata& WithSurname(Aws::String&& value) { SetSurname(std::move(value)); return *this;}
93 inline UserMetadata& WithSurname(const char* value) { SetSurname(value); return *this;}
95
97
100 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
101 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
102 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
103 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
104 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
105 inline UserMetadata& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
106 inline UserMetadata& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
107 inline UserMetadata& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
109 private:
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 Aws::String m_username;
115 bool m_usernameHasBeenSet = false;
116
117 Aws::String m_givenName;
118 bool m_givenNameHasBeenSet = false;
119
120 Aws::String m_surname;
121 bool m_surnameHasBeenSet = false;
122
123 Aws::String m_emailAddress;
124 bool m_emailAddressHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace WorkDocs
129} // namespace Aws
void SetGivenName(const char *value)
UserMetadata & WithEmailAddress(Aws::String &&value)
void SetSurname(const Aws::String &value)
void SetId(const Aws::String &value)
void SetUsername(const Aws::String &value)
UserMetadata & WithId(const char *value)
void SetSurname(Aws::String &&value)
const Aws::String & GetId() const
void SetEmailAddress(const char *value)
const Aws::String & GetSurname() const
UserMetadata & WithId(const Aws::String &value)
void SetId(const char *value)
UserMetadata & WithSurname(const char *value)
void SetGivenName(const Aws::String &value)
UserMetadata & WithUsername(Aws::String &&value)
void SetEmailAddress(Aws::String &&value)
void SetUsername(const char *value)
void SetId(Aws::String &&value)
UserMetadata & WithGivenName(const Aws::String &value)
void SetEmailAddress(const Aws::String &value)
UserMetadata & WithEmailAddress(const char *value)
void SetUsername(Aws::String &&value)
const Aws::String & GetUsername() const
UserMetadata & WithGivenName(Aws::String &&value)
AWS_WORKDOCS_API UserMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
UserMetadata & WithEmailAddress(const Aws::String &value)
UserMetadata & WithGivenName(const char *value)
void SetGivenName(Aws::String &&value)
UserMetadata & WithId(Aws::String &&value)
const Aws::String & GetEmailAddress() const
UserMetadata & WithUsername(const char *value)
UserMetadata & WithSurname(const Aws::String &value)
AWS_WORKDOCS_API UserMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetSurname(const char *value)
UserMetadata & WithUsername(const Aws::String &value)
UserMetadata & WithSurname(Aws::String &&value)
const Aws::String & GetGivenName() const
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue