AWS SDK for C++  1.9.124
AWS SDK for C++
Invitation.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Macie2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 
53  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
54 
59  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
60 
65  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
66 
71  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
72 
77  inline Invitation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
78 
83  inline Invitation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
84 
89  inline Invitation& WithAccountId(const char* value) { SetAccountId(value); return *this;}
90 
91 
96  inline const Aws::String& GetInvitationId() const{ return m_invitationId; }
97 
102  inline bool InvitationIdHasBeenSet() const { return m_invitationIdHasBeenSet; }
103 
108  inline void SetInvitationId(const Aws::String& value) { m_invitationIdHasBeenSet = true; m_invitationId = value; }
109 
114  inline void SetInvitationId(Aws::String&& value) { m_invitationIdHasBeenSet = true; m_invitationId = std::move(value); }
115 
120  inline void SetInvitationId(const char* value) { m_invitationIdHasBeenSet = true; m_invitationId.assign(value); }
121 
126  inline Invitation& WithInvitationId(const Aws::String& value) { SetInvitationId(value); return *this;}
127 
132  inline Invitation& WithInvitationId(Aws::String&& value) { SetInvitationId(std::move(value)); return *this;}
133 
138  inline Invitation& WithInvitationId(const char* value) { SetInvitationId(value); return *this;}
139 
140 
145  inline const Aws::Utils::DateTime& GetInvitedAt() const{ return m_invitedAt; }
146 
151  inline bool InvitedAtHasBeenSet() const { return m_invitedAtHasBeenSet; }
152 
157  inline void SetInvitedAt(const Aws::Utils::DateTime& value) { m_invitedAtHasBeenSet = true; m_invitedAt = value; }
158 
163  inline void SetInvitedAt(Aws::Utils::DateTime&& value) { m_invitedAtHasBeenSet = true; m_invitedAt = std::move(value); }
164 
169  inline Invitation& WithInvitedAt(const Aws::Utils::DateTime& value) { SetInvitedAt(value); return *this;}
170 
175  inline Invitation& WithInvitedAt(Aws::Utils::DateTime&& value) { SetInvitedAt(std::move(value)); return *this;}
176 
177 
183  inline const RelationshipStatus& GetRelationshipStatus() const{ return m_relationshipStatus; }
184 
190  inline bool RelationshipStatusHasBeenSet() const { return m_relationshipStatusHasBeenSet; }
191 
197  inline void SetRelationshipStatus(const RelationshipStatus& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = value; }
198 
204  inline void SetRelationshipStatus(RelationshipStatus&& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = std::move(value); }
205 
211  inline Invitation& WithRelationshipStatus(const RelationshipStatus& value) { SetRelationshipStatus(value); return *this;}
212 
218  inline Invitation& WithRelationshipStatus(RelationshipStatus&& value) { SetRelationshipStatus(std::move(value)); return *this;}
219 
220  private:
221 
222  Aws::String m_accountId;
223  bool m_accountIdHasBeenSet;
224 
225  Aws::String m_invitationId;
226  bool m_invitationIdHasBeenSet;
227 
228  Aws::Utils::DateTime m_invitedAt;
229  bool m_invitedAtHasBeenSet;
230 
231  RelationshipStatus m_relationshipStatus;
232  bool m_relationshipStatusHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace Macie2
237 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::Invitation::WithRelationshipStatus
Invitation & WithRelationshipStatus(RelationshipStatus &&value)
Definition: Invitation.h:218
Aws::Macie2::Model::Invitation::RelationshipStatusHasBeenSet
bool RelationshipStatusHasBeenSet() const
Definition: Invitation.h:190
Aws::Macie2::Model::Invitation::WithInvitationId
Invitation & WithInvitationId(const char *value)
Definition: Invitation.h:138
DateTime.h
Macie2_EXPORTS.h
Aws::Macie2::Model::Invitation::SetInvitationId
void SetInvitationId(const Aws::String &value)
Definition: Invitation.h:108
Aws::Macie2::Model::Invitation::SetInvitationId
void SetInvitationId(const char *value)
Definition: Invitation.h:120
Aws::Macie2::Model::Invitation::WithAccountId
Invitation & WithAccountId(const char *value)
Definition: Invitation.h:89
Aws::Macie2::Model::Invitation::Invitation
Invitation()
Aws::Macie2::Model::Invitation::Invitation
Invitation(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::Invitation::SetAccountId
void SetAccountId(const char *value)
Definition: Invitation.h:71
Aws::Macie2::Model::Invitation
Definition: Invitation.h:35
Aws::Macie2::Model::Invitation::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::Invitation::SetInvitationId
void SetInvitationId(Aws::String &&value)
Definition: Invitation.h:114
Aws::Macie2::Model::Invitation::GetRelationshipStatus
const RelationshipStatus & GetRelationshipStatus() const
Definition: Invitation.h:183
Aws::Macie2::Model::Invitation::SetRelationshipStatus
void SetRelationshipStatus(RelationshipStatus &&value)
Definition: Invitation.h:204
Aws::Macie2::Model::Invitation::WithInvitedAt
Invitation & WithInvitedAt(Aws::Utils::DateTime &&value)
Definition: Invitation.h:175
Aws::Macie2::Model::Invitation::GetAccountId
const Aws::String & GetAccountId() const
Definition: Invitation.h:47
Aws::Macie2::Model::Invitation::SetInvitedAt
void SetInvitedAt(const Aws::Utils::DateTime &value)
Definition: Invitation.h:157
Aws::Macie2::Model::Invitation::InvitationIdHasBeenSet
bool InvitationIdHasBeenSet() const
Definition: Invitation.h:102
Aws::Macie2::Model::Invitation::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: Invitation.h:53
Aws::Macie2::Model::RelationshipStatus
RelationshipStatus
Definition: RelationshipStatus.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::Invitation::WithInvitationId
Invitation & WithInvitationId(const Aws::String &value)
Definition: Invitation.h:126
Aws::Macie2::Model::Invitation::SetRelationshipStatus
void SetRelationshipStatus(const RelationshipStatus &value)
Definition: Invitation.h:197
Aws::Macie2::Model::Invitation::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: Invitation.h:65
Aws::Macie2::Model::Invitation::WithInvitedAt
Invitation & WithInvitedAt(const Aws::Utils::DateTime &value)
Definition: Invitation.h:169
Aws::Macie2::Model::Invitation::WithAccountId
Invitation & WithAccountId(const Aws::String &value)
Definition: Invitation.h:77
Aws::Macie2::Model::Invitation::operator=
Invitation & operator=(Aws::Utils::Json::JsonView jsonValue)
RelationshipStatus.h
Aws::Macie2::Model::Invitation::WithRelationshipStatus
Invitation & WithRelationshipStatus(const RelationshipStatus &value)
Definition: Invitation.h:211
Aws::Macie2::Model::Invitation::WithInvitationId
Invitation & WithInvitationId(Aws::String &&value)
Definition: Invitation.h:132
Aws::Macie2::Model::Invitation::WithAccountId
Invitation & WithAccountId(Aws::String &&value)
Definition: Invitation.h:83
Aws::Macie2::Model::Invitation::GetInvitedAt
const Aws::Utils::DateTime & GetInvitedAt() const
Definition: Invitation.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::Invitation::SetInvitedAt
void SetInvitedAt(Aws::Utils::DateTime &&value)
Definition: Invitation.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::Invitation::GetInvitationId
const Aws::String & GetInvitationId() const
Definition: Invitation.h:96
Aws::Macie2::Model::Invitation::InvitedAtHasBeenSet
bool InvitedAtHasBeenSet() const
Definition: Invitation.h:151
Aws::Macie2::Model::Invitation::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: Invitation.h:59