AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ShareDetails.h
1
6#pragma once
7#include <aws/omics/Omics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/omics/model/ShareStatus.h>
10#include <aws/core/utils/DateTime.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 Omics
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_OMICS_API ShareDetails();
37 AWS_OMICS_API ShareDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetShareId() const{ return m_shareId; }
47 inline bool ShareIdHasBeenSet() const { return m_shareIdHasBeenSet; }
48 inline void SetShareId(const Aws::String& value) { m_shareIdHasBeenSet = true; m_shareId = value; }
49 inline void SetShareId(Aws::String&& value) { m_shareIdHasBeenSet = true; m_shareId = std::move(value); }
50 inline void SetShareId(const char* value) { m_shareIdHasBeenSet = true; m_shareId.assign(value); }
51 inline ShareDetails& WithShareId(const Aws::String& value) { SetShareId(value); return *this;}
52 inline ShareDetails& WithShareId(Aws::String&& value) { SetShareId(std::move(value)); return *this;}
53 inline ShareDetails& WithShareId(const char* value) { SetShareId(value); return *this;}
55
57
60 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
61 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
63 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
64 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
65 inline ShareDetails& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
66 inline ShareDetails& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
67 inline ShareDetails& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
69
71
74 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
75 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
76 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
77 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
78 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
79 inline ShareDetails& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
80 inline ShareDetails& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
81 inline ShareDetails& WithResourceId(const char* value) { SetResourceId(value); return *this;}
83
85
88 inline const Aws::String& GetPrincipalSubscriber() const{ return m_principalSubscriber; }
89 inline bool PrincipalSubscriberHasBeenSet() const { return m_principalSubscriberHasBeenSet; }
90 inline void SetPrincipalSubscriber(const Aws::String& value) { m_principalSubscriberHasBeenSet = true; m_principalSubscriber = value; }
91 inline void SetPrincipalSubscriber(Aws::String&& value) { m_principalSubscriberHasBeenSet = true; m_principalSubscriber = std::move(value); }
92 inline void SetPrincipalSubscriber(const char* value) { m_principalSubscriberHasBeenSet = true; m_principalSubscriber.assign(value); }
93 inline ShareDetails& WithPrincipalSubscriber(const Aws::String& value) { SetPrincipalSubscriber(value); return *this;}
94 inline ShareDetails& WithPrincipalSubscriber(Aws::String&& value) { SetPrincipalSubscriber(std::move(value)); return *this;}
95 inline ShareDetails& WithPrincipalSubscriber(const char* value) { SetPrincipalSubscriber(value); return *this;}
97
99
102 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
103 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
104 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
105 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
106 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
107 inline ShareDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
108 inline ShareDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
109 inline ShareDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
111
113
116 inline const ShareStatus& GetStatus() const{ return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(const ShareStatus& value) { m_statusHasBeenSet = true; m_status = value; }
119 inline void SetStatus(ShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
120 inline ShareDetails& WithStatus(const ShareStatus& value) { SetStatus(value); return *this;}
121 inline ShareDetails& WithStatus(ShareStatus&& value) { SetStatus(std::move(value)); return *this;}
123
125
129 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
130 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
131 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
132 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
133 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
134 inline ShareDetails& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
135 inline ShareDetails& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
136 inline ShareDetails& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
138
140
143 inline const Aws::String& GetShareName() const{ return m_shareName; }
144 inline bool ShareNameHasBeenSet() const { return m_shareNameHasBeenSet; }
145 inline void SetShareName(const Aws::String& value) { m_shareNameHasBeenSet = true; m_shareName = value; }
146 inline void SetShareName(Aws::String&& value) { m_shareNameHasBeenSet = true; m_shareName = std::move(value); }
147 inline void SetShareName(const char* value) { m_shareNameHasBeenSet = true; m_shareName.assign(value); }
148 inline ShareDetails& WithShareName(const Aws::String& value) { SetShareName(value); return *this;}
149 inline ShareDetails& WithShareName(Aws::String&& value) { SetShareName(std::move(value)); return *this;}
150 inline ShareDetails& WithShareName(const char* value) { SetShareName(value); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
158 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
159 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
160 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
161 inline ShareDetails& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
162 inline ShareDetails& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
170 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
171 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
172 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
173 inline ShareDetails& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
174 inline ShareDetails& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
176 private:
177
178 Aws::String m_shareId;
179 bool m_shareIdHasBeenSet = false;
180
181 Aws::String m_resourceArn;
182 bool m_resourceArnHasBeenSet = false;
183
184 Aws::String m_resourceId;
185 bool m_resourceIdHasBeenSet = false;
186
187 Aws::String m_principalSubscriber;
188 bool m_principalSubscriberHasBeenSet = false;
189
190 Aws::String m_ownerId;
191 bool m_ownerIdHasBeenSet = false;
192
193 ShareStatus m_status;
194 bool m_statusHasBeenSet = false;
195
196 Aws::String m_statusMessage;
197 bool m_statusMessageHasBeenSet = false;
198
199 Aws::String m_shareName;
200 bool m_shareNameHasBeenSet = false;
201
202 Aws::Utils::DateTime m_creationTime;
203 bool m_creationTimeHasBeenSet = false;
204
205 Aws::Utils::DateTime m_updateTime;
206 bool m_updateTimeHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace Omics
211} // namespace Aws
void SetResourceArn(const Aws::String &value)
ShareDetails & WithShareName(const Aws::String &value)
void SetOwnerId(const char *value)
ShareDetails & WithShareId(const Aws::String &value)
ShareDetails & WithShareId(const char *value)
ShareDetails & WithResourceArn(const char *value)
void SetUpdateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetStatusMessage() const
void SetUpdateTime(const Aws::Utils::DateTime &value)
void SetStatus(ShareStatus &&value)
void SetStatusMessage(Aws::String &&value)
void SetPrincipalSubscriber(Aws::String &&value)
ShareDetails & WithStatusMessage(const Aws::String &value)
void SetResourceArn(Aws::String &&value)
const ShareStatus & GetStatus() const
void SetShareId(Aws::String &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetStatus(const ShareStatus &value)
ShareDetails & WithPrincipalSubscriber(const char *value)
ShareDetails & WithResourceId(Aws::String &&value)
ShareDetails & WithStatusMessage(const char *value)
bool PrincipalSubscriberHasBeenSet() const
void SetOwnerId(Aws::String &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
AWS_OMICS_API ShareDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceId(Aws::String &&value)
void SetShareId(const Aws::String &value)
void SetResourceArn(const char *value)
ShareDetails & WithShareId(Aws::String &&value)
ShareDetails & WithUpdateTime(const Aws::Utils::DateTime &value)
void SetShareName(Aws::String &&value)
ShareDetails & WithCreationTime(const Aws::Utils::DateTime &value)
void SetResourceId(const char *value)
const Aws::String & GetShareName() const
void SetPrincipalSubscriber(const char *value)
void SetShareId(const char *value)
ShareDetails & WithResourceArn(const Aws::String &value)
ShareDetails & WithResourceArn(Aws::String &&value)
const Aws::String & GetPrincipalSubscriber() const
AWS_OMICS_API ShareDetails(Aws::Utils::Json::JsonView jsonValue)
void SetResourceId(const Aws::String &value)
void SetShareName(const char *value)
void SetPrincipalSubscriber(const Aws::String &value)
ShareDetails & WithStatus(const ShareStatus &value)
const Aws::String & GetOwnerId() const
AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const
ShareDetails & WithCreationTime(Aws::Utils::DateTime &&value)
void SetStatusMessage(const Aws::String &value)
ShareDetails & WithShareName(const char *value)
const Aws::String & GetResourceArn() const
const Aws::Utils::DateTime & GetCreationTime() const
const Aws::String & GetResourceId() const
ShareDetails & WithStatus(ShareStatus &&value)
void SetOwnerId(const Aws::String &value)
void SetShareName(const Aws::String &value)
ShareDetails & WithShareName(Aws::String &&value)
void SetStatusMessage(const char *value)
const Aws::String & GetShareId() const
ShareDetails & WithPrincipalSubscriber(const Aws::String &value)
ShareDetails & WithOwnerId(const char *value)
ShareDetails & WithUpdateTime(Aws::Utils::DateTime &&value)
ShareDetails & WithOwnerId(Aws::String &&value)
ShareDetails & WithStatusMessage(Aws::String &&value)
ShareDetails & WithResourceId(const char *value)
ShareDetails & WithResourceId(const Aws::String &value)
ShareDetails & WithOwnerId(const Aws::String &value)
ShareDetails & WithPrincipalSubscriber(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue