AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Invitation.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Macie2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MACIE2_API Invitation();
38 AWS_MACIE2_API Invitation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
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 Invitation& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline Invitation& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline Invitation& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
62 inline const Aws::String& GetInvitationId() const{ return m_invitationId; }
63 inline bool InvitationIdHasBeenSet() const { return m_invitationIdHasBeenSet; }
64 inline void SetInvitationId(const Aws::String& value) { m_invitationIdHasBeenSet = true; m_invitationId = value; }
65 inline void SetInvitationId(Aws::String&& value) { m_invitationIdHasBeenSet = true; m_invitationId = std::move(value); }
66 inline void SetInvitationId(const char* value) { m_invitationIdHasBeenSet = true; m_invitationId.assign(value); }
67 inline Invitation& WithInvitationId(const Aws::String& value) { SetInvitationId(value); return *this;}
68 inline Invitation& WithInvitationId(Aws::String&& value) { SetInvitationId(std::move(value)); return *this;}
69 inline Invitation& WithInvitationId(const char* value) { SetInvitationId(value); return *this;}
71
73
77 inline const Aws::Utils::DateTime& GetInvitedAt() const{ return m_invitedAt; }
78 inline bool InvitedAtHasBeenSet() const { return m_invitedAtHasBeenSet; }
79 inline void SetInvitedAt(const Aws::Utils::DateTime& value) { m_invitedAtHasBeenSet = true; m_invitedAt = value; }
80 inline void SetInvitedAt(Aws::Utils::DateTime&& value) { m_invitedAtHasBeenSet = true; m_invitedAt = std::move(value); }
81 inline Invitation& WithInvitedAt(const Aws::Utils::DateTime& value) { SetInvitedAt(value); return *this;}
82 inline Invitation& WithInvitedAt(Aws::Utils::DateTime&& value) { SetInvitedAt(std::move(value)); return *this;}
84
86
90 inline const RelationshipStatus& GetRelationshipStatus() const{ return m_relationshipStatus; }
91 inline bool RelationshipStatusHasBeenSet() const { return m_relationshipStatusHasBeenSet; }
92 inline void SetRelationshipStatus(const RelationshipStatus& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = value; }
93 inline void SetRelationshipStatus(RelationshipStatus&& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = std::move(value); }
94 inline Invitation& WithRelationshipStatus(const RelationshipStatus& value) { SetRelationshipStatus(value); return *this;}
95 inline Invitation& WithRelationshipStatus(RelationshipStatus&& value) { SetRelationshipStatus(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_accountId;
100 bool m_accountIdHasBeenSet = false;
101
102 Aws::String m_invitationId;
103 bool m_invitationIdHasBeenSet = false;
104
105 Aws::Utils::DateTime m_invitedAt;
106 bool m_invitedAtHasBeenSet = false;
107
108 RelationshipStatus m_relationshipStatus;
109 bool m_relationshipStatusHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Macie2
114} // namespace Aws
Invitation & WithInvitedAt(const Aws::Utils::DateTime &value)
Definition Invitation.h:81
Invitation & WithAccountId(const Aws::String &value)
Definition Invitation.h:53
bool RelationshipStatusHasBeenSet() const
Definition Invitation.h:91
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
Invitation & WithRelationshipStatus(RelationshipStatus &&value)
Definition Invitation.h:95
AWS_MACIE2_API Invitation(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(Aws::String &&value)
Definition Invitation.h:51
Invitation & WithAccountId(const char *value)
Definition Invitation.h:55
void SetInvitationId(const Aws::String &value)
Definition Invitation.h:64
void SetAccountId(const char *value)
Definition Invitation.h:52
void SetAccountId(const Aws::String &value)
Definition Invitation.h:50
void SetInvitationId(Aws::String &&value)
Definition Invitation.h:65
void SetInvitedAt(Aws::Utils::DateTime &&value)
Definition Invitation.h:80
AWS_MACIE2_API Invitation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRelationshipStatus(const RelationshipStatus &value)
Definition Invitation.h:92
const Aws::String & GetAccountId() const
Definition Invitation.h:48
void SetInvitedAt(const Aws::Utils::DateTime &value)
Definition Invitation.h:79
Invitation & WithInvitationId(Aws::String &&value)
Definition Invitation.h:68
void SetRelationshipStatus(RelationshipStatus &&value)
Definition Invitation.h:93
const Aws::Utils::DateTime & GetInvitedAt() const
Definition Invitation.h:77
Invitation & WithAccountId(Aws::String &&value)
Definition Invitation.h:54
const RelationshipStatus & GetRelationshipStatus() const
Definition Invitation.h:90
Invitation & WithInvitationId(const Aws::String &value)
Definition Invitation.h:67
Invitation & WithInvitedAt(Aws::Utils::DateTime &&value)
Definition Invitation.h:82
bool InvitationIdHasBeenSet() const
Definition Invitation.h:63
void SetInvitationId(const char *value)
Definition Invitation.h:66
Invitation & WithRelationshipStatus(const RelationshipStatus &value)
Definition Invitation.h:94
Invitation & WithInvitationId(const char *value)
Definition Invitation.h:69
const Aws::String & GetInvitationId() const
Definition Invitation.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue