AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Member.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/macie2/model/RelationshipStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Macie2
25{
26namespace Model
27{
28
35 class Member
36 {
37 public:
38 AWS_MACIE2_API Member();
39 AWS_MACIE2_API Member(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MACIE2_API Member& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline Member& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline Member& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline Member& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
62 inline const Aws::String& GetAdministratorAccountId() const{ return m_administratorAccountId; }
63 inline bool AdministratorAccountIdHasBeenSet() const { return m_administratorAccountIdHasBeenSet; }
64 inline void SetAdministratorAccountId(const Aws::String& value) { m_administratorAccountIdHasBeenSet = true; m_administratorAccountId = value; }
65 inline void SetAdministratorAccountId(Aws::String&& value) { m_administratorAccountIdHasBeenSet = true; m_administratorAccountId = std::move(value); }
66 inline void SetAdministratorAccountId(const char* value) { m_administratorAccountIdHasBeenSet = true; m_administratorAccountId.assign(value); }
67 inline Member& WithAdministratorAccountId(const Aws::String& value) { SetAdministratorAccountId(value); return *this;}
68 inline Member& WithAdministratorAccountId(Aws::String&& value) { SetAdministratorAccountId(std::move(value)); return *this;}
69 inline Member& WithAdministratorAccountId(const char* value) { SetAdministratorAccountId(value); return *this;}
71
73
76 inline const Aws::String& GetArn() const{ return m_arn; }
77 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
78 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
79 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
80 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
81 inline Member& WithArn(const Aws::String& value) { SetArn(value); return *this;}
82 inline Member& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
83 inline Member& WithArn(const char* value) { SetArn(value); return *this;}
85
87
91 inline const Aws::String& GetEmail() const{ return m_email; }
92 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
93 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
94 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
95 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
96 inline Member& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
97 inline Member& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
98 inline Member& WithEmail(const char* value) { SetEmail(value); return *this;}
100
102
107 inline const Aws::Utils::DateTime& GetInvitedAt() const{ return m_invitedAt; }
108 inline bool InvitedAtHasBeenSet() const { return m_invitedAtHasBeenSet; }
109 inline void SetInvitedAt(const Aws::Utils::DateTime& value) { m_invitedAtHasBeenSet = true; m_invitedAt = value; }
110 inline void SetInvitedAt(Aws::Utils::DateTime&& value) { m_invitedAtHasBeenSet = true; m_invitedAt = std::move(value); }
111 inline Member& WithInvitedAt(const Aws::Utils::DateTime& value) { SetInvitedAt(value); return *this;}
112 inline Member& WithInvitedAt(Aws::Utils::DateTime&& value) { SetInvitedAt(std::move(value)); return *this;}
114
116
121 inline const Aws::String& GetMasterAccountId() const{ return m_masterAccountId; }
122 inline bool MasterAccountIdHasBeenSet() const { return m_masterAccountIdHasBeenSet; }
123 inline void SetMasterAccountId(const Aws::String& value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId = value; }
124 inline void SetMasterAccountId(Aws::String&& value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId = std::move(value); }
125 inline void SetMasterAccountId(const char* value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId.assign(value); }
126 inline Member& WithMasterAccountId(const Aws::String& value) { SetMasterAccountId(value); return *this;}
127 inline Member& WithMasterAccountId(Aws::String&& value) { SetMasterAccountId(std::move(value)); return *this;}
128 inline Member& WithMasterAccountId(const char* value) { SetMasterAccountId(value); return *this;}
130
132
136 inline const RelationshipStatus& GetRelationshipStatus() const{ return m_relationshipStatus; }
137 inline bool RelationshipStatusHasBeenSet() const { return m_relationshipStatusHasBeenSet; }
138 inline void SetRelationshipStatus(const RelationshipStatus& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = value; }
139 inline void SetRelationshipStatus(RelationshipStatus&& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = std::move(value); }
140 inline Member& WithRelationshipStatus(const RelationshipStatus& value) { SetRelationshipStatus(value); return *this;}
141 inline Member& WithRelationshipStatus(RelationshipStatus&& value) { SetRelationshipStatus(std::move(value)); return *this;}
143
145
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
152 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
153 inline Member& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
154 inline Member& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
155 inline Member& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
156 inline Member& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
157 inline Member& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
158 inline Member& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
159 inline Member& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
160 inline Member& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
161 inline Member& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
163
165
170 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
171 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
172 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
173 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
174 inline Member& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
175 inline Member& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
177 private:
178
179 Aws::String m_accountId;
180 bool m_accountIdHasBeenSet = false;
181
182 Aws::String m_administratorAccountId;
183 bool m_administratorAccountIdHasBeenSet = false;
184
185 Aws::String m_arn;
186 bool m_arnHasBeenSet = false;
187
188 Aws::String m_email;
189 bool m_emailHasBeenSet = false;
190
191 Aws::Utils::DateTime m_invitedAt;
192 bool m_invitedAtHasBeenSet = false;
193
194 Aws::String m_masterAccountId;
195 bool m_masterAccountIdHasBeenSet = false;
196
197 RelationshipStatus m_relationshipStatus;
198 bool m_relationshipStatusHasBeenSet = false;
199
201 bool m_tagsHasBeenSet = false;
202
203 Aws::Utils::DateTime m_updatedAt;
204 bool m_updatedAtHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace Macie2
209} // namespace Aws
void SetRelationshipStatus(const RelationshipStatus &value)
Definition Member.h:138
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition Member.h:172
Member & AddTags(Aws::String &&key, const char *value)
Definition Member.h:160
Member & WithRelationshipStatus(RelationshipStatus &&value)
Definition Member.h:141
bool AccountIdHasBeenSet() const
Definition Member.h:49
void SetAccountId(const Aws::String &value)
Definition Member.h:50
void SetEmail(Aws::String &&value)
Definition Member.h:94
void SetArn(const Aws::String &value)
Definition Member.h:78
void SetAccountId(const char *value)
Definition Member.h:52
Member & WithAdministratorAccountId(const char *value)
Definition Member.h:69
bool AdministratorAccountIdHasBeenSet() const
Definition Member.h:63
Member & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Member.h:153
Member & AddTags(Aws::String &&key, const Aws::String &value)
Definition Member.h:156
Member & WithArn(const char *value)
Definition Member.h:83
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Member.h:170
Member & WithEmail(Aws::String &&value)
Definition Member.h:97
Member & WithEmail(const char *value)
Definition Member.h:98
void SetEmail(const char *value)
Definition Member.h:95
Member & WithAccountId(const char *value)
Definition Member.h:55
void SetArn(Aws::String &&value)
Definition Member.h:79
bool ArnHasBeenSet() const
Definition Member.h:77
bool TagsHasBeenSet() const
Definition Member.h:150
Member & AddTags(const Aws::String &key, const Aws::String &value)
Definition Member.h:155
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Member.h:151
bool InvitedAtHasBeenSet() const
Definition Member.h:108
AWS_MACIE2_API Member & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Member()
Member & AddTags(const char *key, Aws::String &&value)
Definition Member.h:159
Member & WithInvitedAt(Aws::Utils::DateTime &&value)
Definition Member.h:112
void SetAdministratorAccountId(const Aws::String &value)
Definition Member.h:64
void SetAdministratorAccountId(const char *value)
Definition Member.h:66
void SetRelationshipStatus(RelationshipStatus &&value)
Definition Member.h:139
Member & WithMasterAccountId(const Aws::String &value)
Definition Member.h:126
const Aws::String & GetMasterAccountId() const
Definition Member.h:121
Member & WithArn(const Aws::String &value)
Definition Member.h:81
AWS_MACIE2_API Member(Aws::Utils::Json::JsonView jsonValue)
Member & AddTags(Aws::String &&key, Aws::String &&value)
Definition Member.h:158
Member & WithAdministratorAccountId(const Aws::String &value)
Definition Member.h:67
const Aws::String & GetAdministratorAccountId() const
Definition Member.h:62
Member & WithAdministratorAccountId(Aws::String &&value)
Definition Member.h:68
Member & WithMasterAccountId(Aws::String &&value)
Definition Member.h:127
const Aws::Utils::DateTime & GetInvitedAt() const
Definition Member.h:107
void SetMasterAccountId(Aws::String &&value)
Definition Member.h:124
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
Member & WithRelationshipStatus(const RelationshipStatus &value)
Definition Member.h:140
Member & WithEmail(const Aws::String &value)
Definition Member.h:96
void SetMasterAccountId(const char *value)
Definition Member.h:125
const Aws::String & GetEmail() const
Definition Member.h:91
Member & WithArn(Aws::String &&value)
Definition Member.h:82
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition Member.h:173
Member & AddTags(const Aws::String &key, Aws::String &&value)
Definition Member.h:157
bool UpdatedAtHasBeenSet() const
Definition Member.h:171
Member & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Member.h:154
bool MasterAccountIdHasBeenSet() const
Definition Member.h:122
Member & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition Member.h:174
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Member.h:149
bool EmailHasBeenSet() const
Definition Member.h:92
void SetMasterAccountId(const Aws::String &value)
Definition Member.h:123
Member & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition Member.h:175
void SetArn(const char *value)
Definition Member.h:80
Member & WithMasterAccountId(const char *value)
Definition Member.h:128
const Aws::String & GetAccountId() const
Definition Member.h:48
void SetEmail(const Aws::String &value)
Definition Member.h:93
void SetInvitedAt(Aws::Utils::DateTime &&value)
Definition Member.h:110
Member & WithInvitedAt(const Aws::Utils::DateTime &value)
Definition Member.h:111
const RelationshipStatus & GetRelationshipStatus() const
Definition Member.h:136
void SetInvitedAt(const Aws::Utils::DateTime &value)
Definition Member.h:109
void SetAdministratorAccountId(Aws::String &&value)
Definition Member.h:65
bool RelationshipStatusHasBeenSet() const
Definition Member.h:137
void SetAccountId(Aws::String &&value)
Definition Member.h:51
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Member.h:152
Member & WithAccountId(Aws::String &&value)
Definition Member.h:54
Member & WithAccountId(const Aws::String &value)
Definition Member.h:53
Member & AddTags(const char *key, const char *value)
Definition Member.h:161
const Aws::String & GetArn() const
Definition Member.h:76
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue