AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AccountIdT = Aws::String>
51 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
52 template<typename AccountIdT = Aws::String>
53 Member& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetAdministratorAccountId() const { return m_administratorAccountId; }
61 inline bool AdministratorAccountIdHasBeenSet() const { return m_administratorAccountIdHasBeenSet; }
62 template<typename AdministratorAccountIdT = Aws::String>
63 void SetAdministratorAccountId(AdministratorAccountIdT&& value) { m_administratorAccountIdHasBeenSet = true; m_administratorAccountId = std::forward<AdministratorAccountIdT>(value); }
64 template<typename AdministratorAccountIdT = Aws::String>
65 Member& WithAdministratorAccountId(AdministratorAccountIdT&& value) { SetAdministratorAccountId(std::forward<AdministratorAccountIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetArn() const { return m_arn; }
73 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
74 template<typename ArnT = Aws::String>
75 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
76 template<typename ArnT = Aws::String>
77 Member& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
79
81
85 inline const Aws::String& GetEmail() const { return m_email; }
86 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
87 template<typename EmailT = Aws::String>
88 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
89 template<typename EmailT = Aws::String>
90 Member& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
92
94
99 inline const Aws::Utils::DateTime& GetInvitedAt() const { return m_invitedAt; }
100 inline bool InvitedAtHasBeenSet() const { return m_invitedAtHasBeenSet; }
101 template<typename InvitedAtT = Aws::Utils::DateTime>
102 void SetInvitedAt(InvitedAtT&& value) { m_invitedAtHasBeenSet = true; m_invitedAt = std::forward<InvitedAtT>(value); }
103 template<typename InvitedAtT = Aws::Utils::DateTime>
104 Member& WithInvitedAt(InvitedAtT&& value) { SetInvitedAt(std::forward<InvitedAtT>(value)); return *this;}
106
108
113 inline const Aws::String& GetMasterAccountId() const { return m_masterAccountId; }
114 inline bool MasterAccountIdHasBeenSet() const { return m_masterAccountIdHasBeenSet; }
115 template<typename MasterAccountIdT = Aws::String>
116 void SetMasterAccountId(MasterAccountIdT&& value) { m_masterAccountIdHasBeenSet = true; m_masterAccountId = std::forward<MasterAccountIdT>(value); }
117 template<typename MasterAccountIdT = Aws::String>
118 Member& WithMasterAccountId(MasterAccountIdT&& value) { SetMasterAccountId(std::forward<MasterAccountIdT>(value)); return *this;}
120
122
126 inline RelationshipStatus GetRelationshipStatus() const { return m_relationshipStatus; }
127 inline bool RelationshipStatusHasBeenSet() const { return m_relationshipStatusHasBeenSet; }
128 inline void SetRelationshipStatus(RelationshipStatus value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = value; }
131
133
137 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
138 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
139 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
141 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 Member& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
143 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 Member& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
146 }
148
150
155 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
156 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
157 template<typename UpdatedAtT = Aws::Utils::DateTime>
158 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
159 template<typename UpdatedAtT = Aws::Utils::DateTime>
160 Member& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
162 private:
163
164 Aws::String m_accountId;
165 bool m_accountIdHasBeenSet = false;
166
167 Aws::String m_administratorAccountId;
168 bool m_administratorAccountIdHasBeenSet = false;
169
170 Aws::String m_arn;
171 bool m_arnHasBeenSet = false;
172
173 Aws::String m_email;
174 bool m_emailHasBeenSet = false;
175
176 Aws::Utils::DateTime m_invitedAt{};
177 bool m_invitedAtHasBeenSet = false;
178
179 Aws::String m_masterAccountId;
180 bool m_masterAccountIdHasBeenSet = false;
181
183 bool m_relationshipStatusHasBeenSet = false;
184
186 bool m_tagsHasBeenSet = false;
187
188 Aws::Utils::DateTime m_updatedAt{};
189 bool m_updatedAtHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace Macie2
194} // namespace Aws
void SetEmail(EmailT &&value)
Definition Member.h:88
Member & WithRelationshipStatus(RelationshipStatus value)
Definition Member.h:129
bool AccountIdHasBeenSet() const
Definition Member.h:49
Member & WithInvitedAt(InvitedAtT &&value)
Definition Member.h:104
bool AdministratorAccountIdHasBeenSet() const
Definition Member.h:61
Member & WithAccountId(AccountIdT &&value)
Definition Member.h:53
Member & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Member.h:144
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Member.h:155
void SetAccountId(AccountIdT &&value)
Definition Member.h:51
void SetUpdatedAt(UpdatedAtT &&value)
Definition Member.h:158
bool ArnHasBeenSet() const
Definition Member.h:73
bool TagsHasBeenSet() const
Definition Member.h:138
bool InvitedAtHasBeenSet() const
Definition Member.h:100
AWS_MACIE2_API Member & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API Member()=default
void SetRelationshipStatus(RelationshipStatus value)
Definition Member.h:128
void SetTags(TagsT &&value)
Definition Member.h:140
Member & WithArn(ArnT &&value)
Definition Member.h:77
RelationshipStatus GetRelationshipStatus() const
Definition Member.h:126
const Aws::String & GetMasterAccountId() const
Definition Member.h:113
AWS_MACIE2_API Member(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAdministratorAccountId() const
Definition Member.h:60
const Aws::Utils::DateTime & GetInvitedAt() const
Definition Member.h:99
void SetMasterAccountId(MasterAccountIdT &&value)
Definition Member.h:116
Member & WithUpdatedAt(UpdatedAtT &&value)
Definition Member.h:160
void SetArn(ArnT &&value)
Definition Member.h:75
void SetInvitedAt(InvitedAtT &&value)
Definition Member.h:102
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEmail() const
Definition Member.h:85
bool UpdatedAtHasBeenSet() const
Definition Member.h:156
bool MasterAccountIdHasBeenSet() const
Definition Member.h:114
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Member.h:137
bool EmailHasBeenSet() const
Definition Member.h:86
Member & WithEmail(EmailT &&value)
Definition Member.h:90
Member & WithTags(TagsT &&value)
Definition Member.h:142
const Aws::String & GetAccountId() const
Definition Member.h:48
void SetAdministratorAccountId(AdministratorAccountIdT &&value)
Definition Member.h:63
bool RelationshipStatusHasBeenSet() const
Definition Member.h:127
Member & WithAdministratorAccountId(AdministratorAccountIdT &&value)
Definition Member.h:65
Member & WithMasterAccountId(MasterAccountIdT &&value)
Definition Member.h:118
const Aws::String & GetArn() const
Definition Member.h:72
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