AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ShareResult.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/model/RoleType.h>
10#include <aws/workdocs/model/ShareStatusType.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 WorkDocs
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WORKDOCS_API ShareResult();
37 AWS_WORKDOCS_API ShareResult(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKDOCS_API ShareResult& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
47 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
48 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
49 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
50 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
51 inline ShareResult& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
52 inline ShareResult& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
53 inline ShareResult& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
55
57
60 inline const Aws::String& GetInviteePrincipalId() const{ return m_inviteePrincipalId; }
61 inline bool InviteePrincipalIdHasBeenSet() const { return m_inviteePrincipalIdHasBeenSet; }
62 inline void SetInviteePrincipalId(const Aws::String& value) { m_inviteePrincipalIdHasBeenSet = true; m_inviteePrincipalId = value; }
63 inline void SetInviteePrincipalId(Aws::String&& value) { m_inviteePrincipalIdHasBeenSet = true; m_inviteePrincipalId = std::move(value); }
64 inline void SetInviteePrincipalId(const char* value) { m_inviteePrincipalIdHasBeenSet = true; m_inviteePrincipalId.assign(value); }
65 inline ShareResult& WithInviteePrincipalId(const Aws::String& value) { SetInviteePrincipalId(value); return *this;}
66 inline ShareResult& WithInviteePrincipalId(Aws::String&& value) { SetInviteePrincipalId(std::move(value)); return *this;}
67 inline ShareResult& WithInviteePrincipalId(const char* value) { SetInviteePrincipalId(value); return *this;}
69
71
74 inline const RoleType& GetRole() const{ return m_role; }
75 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
76 inline void SetRole(const RoleType& value) { m_roleHasBeenSet = true; m_role = value; }
77 inline void SetRole(RoleType&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
78 inline ShareResult& WithRole(const RoleType& value) { SetRole(value); return *this;}
79 inline ShareResult& WithRole(RoleType&& value) { SetRole(std::move(value)); return *this;}
81
83
86 inline const ShareStatusType& GetStatus() const{ return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(const ShareStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
89 inline void SetStatus(ShareStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
90 inline ShareResult& WithStatus(const ShareStatusType& value) { SetStatus(value); return *this;}
91 inline ShareResult& WithStatus(ShareStatusType&& value) { SetStatus(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetShareId() const{ return m_shareId; }
99 inline bool ShareIdHasBeenSet() const { return m_shareIdHasBeenSet; }
100 inline void SetShareId(const Aws::String& value) { m_shareIdHasBeenSet = true; m_shareId = value; }
101 inline void SetShareId(Aws::String&& value) { m_shareIdHasBeenSet = true; m_shareId = std::move(value); }
102 inline void SetShareId(const char* value) { m_shareIdHasBeenSet = true; m_shareId.assign(value); }
103 inline ShareResult& WithShareId(const Aws::String& value) { SetShareId(value); return *this;}
104 inline ShareResult& WithShareId(Aws::String&& value) { SetShareId(std::move(value)); return *this;}
105 inline ShareResult& WithShareId(const char* value) { SetShareId(value); return *this;}
107
109
112 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
113 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
114 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
115 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
116 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
117 inline ShareResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
118 inline ShareResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
119 inline ShareResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
121 private:
122
123 Aws::String m_principalId;
124 bool m_principalIdHasBeenSet = false;
125
126 Aws::String m_inviteePrincipalId;
127 bool m_inviteePrincipalIdHasBeenSet = false;
128
129 RoleType m_role;
130 bool m_roleHasBeenSet = false;
131
132 ShareStatusType m_status;
133 bool m_statusHasBeenSet = false;
134
135 Aws::String m_shareId;
136 bool m_shareIdHasBeenSet = false;
137
138 Aws::String m_statusMessage;
139 bool m_statusMessageHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace WorkDocs
144} // namespace Aws
const Aws::String & GetPrincipalId() const
Definition ShareResult.h:46
ShareResult & WithRole(const RoleType &value)
Definition ShareResult.h:78
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
ShareResult & WithStatusMessage(Aws::String &&value)
void SetInviteePrincipalId(const char *value)
Definition ShareResult.h:64
ShareResult & WithInviteePrincipalId(const Aws::String &value)
Definition ShareResult.h:65
const ShareStatusType & GetStatus() const
Definition ShareResult.h:86
ShareResult & WithInviteePrincipalId(Aws::String &&value)
Definition ShareResult.h:66
ShareResult & WithRole(RoleType &&value)
Definition ShareResult.h:79
void SetStatusMessage(Aws::String &&value)
void SetPrincipalId(const Aws::String &value)
Definition ShareResult.h:48
const Aws::String & GetStatusMessage() const
void SetStatusMessage(const Aws::String &value)
const Aws::String & GetInviteePrincipalId() const
Definition ShareResult.h:60
AWS_WORKDOCS_API ShareResult(Aws::Utils::Json::JsonView jsonValue)
ShareResult & WithInviteePrincipalId(const char *value)
Definition ShareResult.h:67
ShareResult & WithStatusMessage(const char *value)
ShareResult & WithPrincipalId(const Aws::String &value)
Definition ShareResult.h:51
const Aws::String & GetShareId() const
Definition ShareResult.h:98
void SetStatus(const ShareStatusType &value)
Definition ShareResult.h:88
void SetRole(const RoleType &value)
Definition ShareResult.h:76
void SetRole(RoleType &&value)
Definition ShareResult.h:77
ShareResult & WithStatus(ShareStatusType &&value)
Definition ShareResult.h:91
void SetPrincipalId(Aws::String &&value)
Definition ShareResult.h:49
void SetStatusMessage(const char *value)
void SetInviteePrincipalId(Aws::String &&value)
Definition ShareResult.h:63
ShareResult & WithShareId(Aws::String &&value)
void SetShareId(const char *value)
void SetStatus(ShareStatusType &&value)
Definition ShareResult.h:89
AWS_WORKDOCS_API ShareResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipalId(const char *value)
Definition ShareResult.h:50
ShareResult & WithShareId(const Aws::String &value)
ShareResult & WithShareId(const char *value)
ShareResult & WithPrincipalId(const char *value)
Definition ShareResult.h:53
void SetInviteePrincipalId(const Aws::String &value)
Definition ShareResult.h:62
void SetShareId(const Aws::String &value)
ShareResult & WithPrincipalId(Aws::String &&value)
Definition ShareResult.h:52
void SetShareId(Aws::String &&value)
ShareResult & WithStatus(const ShareStatusType &value)
Definition ShareResult.h:90
const RoleType & GetRole() const
Definition ShareResult.h:74
ShareResult & WithStatusMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue