AWS SDK for C++  1.8.152
AWS SDK for C++
SharedDirectory.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace DirectoryService
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
49  inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
50 
55  inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
56 
61  inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
62 
67  inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
68 
73  inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
74 
79  inline SharedDirectory& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
80 
85  inline SharedDirectory& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
86 
91  inline SharedDirectory& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
92 
93 
97  inline const Aws::String& GetOwnerDirectoryId() const{ return m_ownerDirectoryId; }
98 
102  inline bool OwnerDirectoryIdHasBeenSet() const { return m_ownerDirectoryIdHasBeenSet; }
103 
107  inline void SetOwnerDirectoryId(const Aws::String& value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId = value; }
108 
112  inline void SetOwnerDirectoryId(Aws::String&& value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId = std::move(value); }
113 
117  inline void SetOwnerDirectoryId(const char* value) { m_ownerDirectoryIdHasBeenSet = true; m_ownerDirectoryId.assign(value); }
118 
122  inline SharedDirectory& WithOwnerDirectoryId(const Aws::String& value) { SetOwnerDirectoryId(value); return *this;}
123 
127  inline SharedDirectory& WithOwnerDirectoryId(Aws::String&& value) { SetOwnerDirectoryId(std::move(value)); return *this;}
128 
132  inline SharedDirectory& WithOwnerDirectoryId(const char* value) { SetOwnerDirectoryId(value); return *this;}
133 
134 
141  inline const ShareMethod& GetShareMethod() const{ return m_shareMethod; }
142 
149  inline bool ShareMethodHasBeenSet() const { return m_shareMethodHasBeenSet; }
150 
157  inline void SetShareMethod(const ShareMethod& value) { m_shareMethodHasBeenSet = true; m_shareMethod = value; }
158 
165  inline void SetShareMethod(ShareMethod&& value) { m_shareMethodHasBeenSet = true; m_shareMethod = std::move(value); }
166 
173  inline SharedDirectory& WithShareMethod(const ShareMethod& value) { SetShareMethod(value); return *this;}
174 
181  inline SharedDirectory& WithShareMethod(ShareMethod&& value) { SetShareMethod(std::move(value)); return *this;}
182 
183 
188  inline const Aws::String& GetSharedAccountId() const{ return m_sharedAccountId; }
189 
194  inline bool SharedAccountIdHasBeenSet() const { return m_sharedAccountIdHasBeenSet; }
195 
200  inline void SetSharedAccountId(const Aws::String& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = value; }
201 
206  inline void SetSharedAccountId(Aws::String&& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = std::move(value); }
207 
212  inline void SetSharedAccountId(const char* value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId.assign(value); }
213 
218  inline SharedDirectory& WithSharedAccountId(const Aws::String& value) { SetSharedAccountId(value); return *this;}
219 
224  inline SharedDirectory& WithSharedAccountId(Aws::String&& value) { SetSharedAccountId(std::move(value)); return *this;}
225 
230  inline SharedDirectory& WithSharedAccountId(const char* value) { SetSharedAccountId(value); return *this;}
231 
232 
237  inline const Aws::String& GetSharedDirectoryId() const{ return m_sharedDirectoryId; }
238 
243  inline bool SharedDirectoryIdHasBeenSet() const { return m_sharedDirectoryIdHasBeenSet; }
244 
249  inline void SetSharedDirectoryId(const Aws::String& value) { m_sharedDirectoryIdHasBeenSet = true; m_sharedDirectoryId = value; }
250 
255  inline void SetSharedDirectoryId(Aws::String&& value) { m_sharedDirectoryIdHasBeenSet = true; m_sharedDirectoryId = std::move(value); }
256 
261  inline void SetSharedDirectoryId(const char* value) { m_sharedDirectoryIdHasBeenSet = true; m_sharedDirectoryId.assign(value); }
262 
267  inline SharedDirectory& WithSharedDirectoryId(const Aws::String& value) { SetSharedDirectoryId(value); return *this;}
268 
273  inline SharedDirectory& WithSharedDirectoryId(Aws::String&& value) { SetSharedDirectoryId(std::move(value)); return *this;}
274 
279  inline SharedDirectory& WithSharedDirectoryId(const char* value) { SetSharedDirectoryId(value); return *this;}
280 
281 
286  inline const ShareStatus& GetShareStatus() const{ return m_shareStatus; }
287 
292  inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
293 
298  inline void SetShareStatus(const ShareStatus& value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; }
299 
304  inline void SetShareStatus(ShareStatus&& value) { m_shareStatusHasBeenSet = true; m_shareStatus = std::move(value); }
305 
310  inline SharedDirectory& WithShareStatus(const ShareStatus& value) { SetShareStatus(value); return *this;}
311 
316  inline SharedDirectory& WithShareStatus(ShareStatus&& value) { SetShareStatus(std::move(value)); return *this;}
317 
318 
325  inline const Aws::String& GetShareNotes() const{ return m_shareNotes; }
326 
333  inline bool ShareNotesHasBeenSet() const { return m_shareNotesHasBeenSet; }
334 
341  inline void SetShareNotes(const Aws::String& value) { m_shareNotesHasBeenSet = true; m_shareNotes = value; }
342 
349  inline void SetShareNotes(Aws::String&& value) { m_shareNotesHasBeenSet = true; m_shareNotes = std::move(value); }
350 
357  inline void SetShareNotes(const char* value) { m_shareNotesHasBeenSet = true; m_shareNotes.assign(value); }
358 
365  inline SharedDirectory& WithShareNotes(const Aws::String& value) { SetShareNotes(value); return *this;}
366 
373  inline SharedDirectory& WithShareNotes(Aws::String&& value) { SetShareNotes(std::move(value)); return *this;}
374 
381  inline SharedDirectory& WithShareNotes(const char* value) { SetShareNotes(value); return *this;}
382 
383 
387  inline const Aws::Utils::DateTime& GetCreatedDateTime() const{ return m_createdDateTime; }
388 
392  inline bool CreatedDateTimeHasBeenSet() const { return m_createdDateTimeHasBeenSet; }
393 
397  inline void SetCreatedDateTime(const Aws::Utils::DateTime& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = value; }
398 
402  inline void SetCreatedDateTime(Aws::Utils::DateTime&& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = std::move(value); }
403 
407  inline SharedDirectory& WithCreatedDateTime(const Aws::Utils::DateTime& value) { SetCreatedDateTime(value); return *this;}
408 
412  inline SharedDirectory& WithCreatedDateTime(Aws::Utils::DateTime&& value) { SetCreatedDateTime(std::move(value)); return *this;}
413 
414 
418  inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
419 
423  inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
424 
428  inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
429 
433  inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
434 
438  inline SharedDirectory& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;}
439 
443  inline SharedDirectory& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
444 
445  private:
446 
447  Aws::String m_ownerAccountId;
448  bool m_ownerAccountIdHasBeenSet;
449 
450  Aws::String m_ownerDirectoryId;
451  bool m_ownerDirectoryIdHasBeenSet;
452 
453  ShareMethod m_shareMethod;
454  bool m_shareMethodHasBeenSet;
455 
456  Aws::String m_sharedAccountId;
457  bool m_sharedAccountIdHasBeenSet;
458 
459  Aws::String m_sharedDirectoryId;
460  bool m_sharedDirectoryIdHasBeenSet;
461 
462  ShareStatus m_shareStatus;
463  bool m_shareStatusHasBeenSet;
464 
465  Aws::String m_shareNotes;
466  bool m_shareNotesHasBeenSet;
467 
468  Aws::Utils::DateTime m_createdDateTime;
469  bool m_createdDateTimeHasBeenSet;
470 
471  Aws::Utils::DateTime m_lastUpdatedDateTime;
472  bool m_lastUpdatedDateTimeHasBeenSet;
473  };
474 
475 } // namespace Model
476 } // namespace DirectoryService
477 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DirectoryService::Model::SharedDirectory::SetShareStatus
void SetShareStatus(ShareStatus &&value)
Definition: SharedDirectory.h:304
ShareStatus.h
Aws::DirectoryService::Model::SharedDirectory::WithCreatedDateTime
SharedDirectory & WithCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: SharedDirectory.h:412
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::SharedDirectory::GetOwnerAccountId
const Aws::String & GetOwnerAccountId() const
Definition: SharedDirectory.h:49
ShareMethod.h
Aws::DirectoryService::Model::SharedDirectory::WithLastUpdatedDateTime
SharedDirectory & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: SharedDirectory.h:443
Aws::DirectoryService::Model::SharedDirectory::WithOwnerAccountId
SharedDirectory & WithOwnerAccountId(const char *value)
Definition: SharedDirectory.h:91
Aws::DirectoryService::Model::SharedDirectory::GetShareNotes
const Aws::String & GetShareNotes() const
Definition: SharedDirectory.h:325
Aws::DirectoryService::Model::SharedDirectory::SetShareNotes
void SetShareNotes(Aws::String &&value)
Definition: SharedDirectory.h:349
Aws::DirectoryService::Model::SharedDirectory::WithOwnerAccountId
SharedDirectory & WithOwnerAccountId(const Aws::String &value)
Definition: SharedDirectory.h:79
DateTime.h
Aws::DirectoryService::Model::SharedDirectory::ShareMethodHasBeenSet
bool ShareMethodHasBeenSet() const
Definition: SharedDirectory.h:149
Aws::DirectoryService::Model::SharedDirectory::CreatedDateTimeHasBeenSet
bool CreatedDateTimeHasBeenSet() const
Definition: SharedDirectory.h:392
Aws::DirectoryService::Model::SharedDirectory::WithShareStatus
SharedDirectory & WithShareStatus(const ShareStatus &value)
Definition: SharedDirectory.h:310
Aws::DirectoryService::Model::SharedDirectory::operator=
SharedDirectory & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::SharedDirectory::GetCreatedDateTime
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition: SharedDirectory.h:387
Aws::DirectoryService::Model::SharedDirectory::SetSharedDirectoryId
void SetSharedDirectoryId(Aws::String &&value)
Definition: SharedDirectory.h:255
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::SharedDirectory::SetOwnerDirectoryId
void SetOwnerDirectoryId(const Aws::String &value)
Definition: SharedDirectory.h:107
Aws::DirectoryService::Model::SharedDirectory::WithLastUpdatedDateTime
SharedDirectory & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: SharedDirectory.h:438
Aws::DirectoryService::Model::SharedDirectory::SetCreatedDateTime
void SetCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: SharedDirectory.h:397
Aws::DirectoryService::Model::SharedDirectory::WithOwnerDirectoryId
SharedDirectory & WithOwnerDirectoryId(const char *value)
Definition: SharedDirectory.h:132
Aws::DirectoryService::Model::SharedDirectory::SetSharedDirectoryId
void SetSharedDirectoryId(const Aws::String &value)
Definition: SharedDirectory.h:249
Aws::DirectoryService::Model::SharedDirectory::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: SharedDirectory.h:428
Aws::DirectoryService::Model::SharedDirectory::SharedDirectoryIdHasBeenSet
bool SharedDirectoryIdHasBeenSet() const
Definition: SharedDirectory.h:243
Aws::DirectoryService::Model::SharedDirectory::WithSharedDirectoryId
SharedDirectory & WithSharedDirectoryId(const char *value)
Definition: SharedDirectory.h:279
Aws::DirectoryService::Model::SharedDirectory::GetSharedAccountId
const Aws::String & GetSharedAccountId() const
Definition: SharedDirectory.h:188
Aws::DirectoryService::Model::SharedDirectory::GetLastUpdatedDateTime
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition: SharedDirectory.h:418
Aws::DirectoryService::Model::SharedDirectory::GetOwnerDirectoryId
const Aws::String & GetOwnerDirectoryId() const
Definition: SharedDirectory.h:97
Aws::DirectoryService::Model::SharedDirectory::WithShareNotes
SharedDirectory & WithShareNotes(Aws::String &&value)
Definition: SharedDirectory.h:373
Aws::DirectoryService::Model::SharedDirectory::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::SharedDirectory::WithShareStatus
SharedDirectory & WithShareStatus(ShareStatus &&value)
Definition: SharedDirectory.h:316
Aws::DirectoryService::Model::SharedDirectory::WithShareMethod
SharedDirectory & WithShareMethod(ShareMethod &&value)
Definition: SharedDirectory.h:181
Aws::DirectoryService::Model::SharedDirectory::SharedDirectory
SharedDirectory(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::SharedDirectory::SetSharedDirectoryId
void SetSharedDirectoryId(const char *value)
Definition: SharedDirectory.h:261
Aws::DirectoryService::Model::SharedDirectory::WithSharedDirectoryId
SharedDirectory & WithSharedDirectoryId(Aws::String &&value)
Definition: SharedDirectory.h:273
Aws::DirectoryService::Model::SharedDirectory::SetShareNotes
void SetShareNotes(const Aws::String &value)
Definition: SharedDirectory.h:341
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::DirectoryService::Model::SharedDirectory::ShareStatusHasBeenSet
bool ShareStatusHasBeenSet() const
Definition: SharedDirectory.h:292
Aws::DirectoryService::Model::SharedDirectory::SetSharedAccountId
void SetSharedAccountId(const char *value)
Definition: SharedDirectory.h:212
Aws::DirectoryService::Model::SharedDirectory::OwnerAccountIdHasBeenSet
bool OwnerAccountIdHasBeenSet() const
Definition: SharedDirectory.h:55
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::SharedDirectory::WithOwnerDirectoryId
SharedDirectory & WithOwnerDirectoryId(const Aws::String &value)
Definition: SharedDirectory.h:122
Aws::DirectoryService::Model::SharedDirectory::WithSharedAccountId
SharedDirectory & WithSharedAccountId(const Aws::String &value)
Definition: SharedDirectory.h:218
Aws::DirectoryService::Model::SharedDirectory::WithShareNotes
SharedDirectory & WithShareNotes(const Aws::String &value)
Definition: SharedDirectory.h:365
Aws::DirectoryService::Model::SharedDirectory::SetSharedAccountId
void SetSharedAccountId(const Aws::String &value)
Definition: SharedDirectory.h:200
Aws::DirectoryService::Model::SharedDirectory::WithSharedAccountId
SharedDirectory & WithSharedAccountId(const char *value)
Definition: SharedDirectory.h:230
Aws::DirectoryService::Model::SharedDirectory::SharedDirectory
SharedDirectory()
Aws::DirectoryService::Model::SharedDirectory::GetSharedDirectoryId
const Aws::String & GetSharedDirectoryId() const
Definition: SharedDirectory.h:237
Aws::DirectoryService::Model::SharedDirectory::WithOwnerDirectoryId
SharedDirectory & WithOwnerDirectoryId(Aws::String &&value)
Definition: SharedDirectory.h:127
Aws::DirectoryService::Model::SharedDirectory::SharedAccountIdHasBeenSet
bool SharedAccountIdHasBeenSet() const
Definition: SharedDirectory.h:194
Aws::DirectoryService::Model::SharedDirectory::SetShareNotes
void SetShareNotes(const char *value)
Definition: SharedDirectory.h:357
Aws::DirectoryService::Model::SharedDirectory::SetOwnerAccountId
void SetOwnerAccountId(const char *value)
Definition: SharedDirectory.h:73
Aws::DirectoryService::Model::SharedDirectory::SetCreatedDateTime
void SetCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: SharedDirectory.h:402
Aws::DirectoryService::Model::SharedDirectory::GetShareMethod
const ShareMethod & GetShareMethod() const
Definition: SharedDirectory.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::SharedDirectory::SetShareMethod
void SetShareMethod(const ShareMethod &value)
Definition: SharedDirectory.h:157
Aws::DirectoryService::Model::SharedDirectory::SetShareStatus
void SetShareStatus(const ShareStatus &value)
Definition: SharedDirectory.h:298
Aws::DirectoryService::Model::SharedDirectory::GetShareStatus
const ShareStatus & GetShareStatus() const
Definition: SharedDirectory.h:286
Aws::DirectoryService::Model::SharedDirectory::SetOwnerDirectoryId
void SetOwnerDirectoryId(Aws::String &&value)
Definition: SharedDirectory.h:112
Aws::DirectoryService::Model::SharedDirectory::ShareNotesHasBeenSet
bool ShareNotesHasBeenSet() const
Definition: SharedDirectory.h:333
Aws::DirectoryService::Model::SharedDirectory::WithCreatedDateTime
SharedDirectory & WithCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: SharedDirectory.h:407
Aws::DirectoryService::Model::SharedDirectory::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: SharedDirectory.h:433
Aws::DirectoryService::Model::SharedDirectory::WithSharedAccountId
SharedDirectory & WithSharedAccountId(Aws::String &&value)
Definition: SharedDirectory.h:224
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::SharedDirectory::WithSharedDirectoryId
SharedDirectory & WithSharedDirectoryId(const Aws::String &value)
Definition: SharedDirectory.h:267
Aws::DirectoryService::Model::SharedDirectory::SetOwnerAccountId
void SetOwnerAccountId(const Aws::String &value)
Definition: SharedDirectory.h:61
Aws::DirectoryService::Model::SharedDirectory::WithShareMethod
SharedDirectory & WithShareMethod(const ShareMethod &value)
Definition: SharedDirectory.h:173
Aws::DirectoryService::Model::ShareStatus
ShareStatus
Definition: ShareStatus.h:17
Aws::DirectoryService::Model::SharedDirectory::WithOwnerAccountId
SharedDirectory & WithOwnerAccountId(Aws::String &&value)
Definition: SharedDirectory.h:85
Aws::DirectoryService::Model::SharedDirectory::SetShareMethod
void SetShareMethod(ShareMethod &&value)
Definition: SharedDirectory.h:165
Aws::DirectoryService::Model::SharedDirectory::SetOwnerAccountId
void SetOwnerAccountId(Aws::String &&value)
Definition: SharedDirectory.h:67
Aws::DirectoryService::Model::SharedDirectory::WithShareNotes
SharedDirectory & WithShareNotes(const char *value)
Definition: SharedDirectory.h:381
Aws::DirectoryService::Model::SharedDirectory::LastUpdatedDateTimeHasBeenSet
bool LastUpdatedDateTimeHasBeenSet() const
Definition: SharedDirectory.h:423
Aws::DirectoryService::Model::SharedDirectory
Definition: SharedDirectory.h:37
Aws::DirectoryService::Model::SharedDirectory::SetSharedAccountId
void SetSharedAccountId(Aws::String &&value)
Definition: SharedDirectory.h:206
Aws::DirectoryService::Model::SharedDirectory::SetOwnerDirectoryId
void SetOwnerDirectoryId(const char *value)
Definition: SharedDirectory.h:117
Aws::DirectoryService::Model::ShareMethod
ShareMethod
Definition: ShareMethod.h:17
Aws::DirectoryService::Model::SharedDirectory::OwnerDirectoryIdHasBeenSet
bool OwnerDirectoryIdHasBeenSet() const
Definition: SharedDirectory.h:102