AWS SDK for C++  1.9.159
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 
285  inline const ShareStatus& GetShareStatus() const{ return m_shareStatus; }
286 
290  inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
291 
295  inline void SetShareStatus(const ShareStatus& value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; }
296 
300  inline void SetShareStatus(ShareStatus&& value) { m_shareStatusHasBeenSet = true; m_shareStatus = std::move(value); }
301 
305  inline SharedDirectory& WithShareStatus(const ShareStatus& value) { SetShareStatus(value); return *this;}
306 
310  inline SharedDirectory& WithShareStatus(ShareStatus&& value) { SetShareStatus(std::move(value)); return *this;}
311 
312 
319  inline const Aws::String& GetShareNotes() const{ return m_shareNotes; }
320 
327  inline bool ShareNotesHasBeenSet() const { return m_shareNotesHasBeenSet; }
328 
335  inline void SetShareNotes(const Aws::String& value) { m_shareNotesHasBeenSet = true; m_shareNotes = value; }
336 
343  inline void SetShareNotes(Aws::String&& value) { m_shareNotesHasBeenSet = true; m_shareNotes = std::move(value); }
344 
351  inline void SetShareNotes(const char* value) { m_shareNotesHasBeenSet = true; m_shareNotes.assign(value); }
352 
359  inline SharedDirectory& WithShareNotes(const Aws::String& value) { SetShareNotes(value); return *this;}
360 
367  inline SharedDirectory& WithShareNotes(Aws::String&& value) { SetShareNotes(std::move(value)); return *this;}
368 
375  inline SharedDirectory& WithShareNotes(const char* value) { SetShareNotes(value); return *this;}
376 
377 
381  inline const Aws::Utils::DateTime& GetCreatedDateTime() const{ return m_createdDateTime; }
382 
386  inline bool CreatedDateTimeHasBeenSet() const { return m_createdDateTimeHasBeenSet; }
387 
391  inline void SetCreatedDateTime(const Aws::Utils::DateTime& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = value; }
392 
396  inline void SetCreatedDateTime(Aws::Utils::DateTime&& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = std::move(value); }
397 
401  inline SharedDirectory& WithCreatedDateTime(const Aws::Utils::DateTime& value) { SetCreatedDateTime(value); return *this;}
402 
406  inline SharedDirectory& WithCreatedDateTime(Aws::Utils::DateTime&& value) { SetCreatedDateTime(std::move(value)); return *this;}
407 
408 
412  inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
413 
417  inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
418 
422  inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
423 
427  inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
428 
432  inline SharedDirectory& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;}
433 
437  inline SharedDirectory& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
438 
439  private:
440 
441  Aws::String m_ownerAccountId;
442  bool m_ownerAccountIdHasBeenSet;
443 
444  Aws::String m_ownerDirectoryId;
445  bool m_ownerDirectoryIdHasBeenSet;
446 
447  ShareMethod m_shareMethod;
448  bool m_shareMethodHasBeenSet;
449 
450  Aws::String m_sharedAccountId;
451  bool m_sharedAccountIdHasBeenSet;
452 
453  Aws::String m_sharedDirectoryId;
454  bool m_sharedDirectoryIdHasBeenSet;
455 
456  ShareStatus m_shareStatus;
457  bool m_shareStatusHasBeenSet;
458 
459  Aws::String m_shareNotes;
460  bool m_shareNotesHasBeenSet;
461 
462  Aws::Utils::DateTime m_createdDateTime;
463  bool m_createdDateTimeHasBeenSet;
464 
465  Aws::Utils::DateTime m_lastUpdatedDateTime;
466  bool m_lastUpdatedDateTimeHasBeenSet;
467  };
468 
469 } // namespace Model
470 } // namespace DirectoryService
471 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DirectoryService::Model::SharedDirectory::SetShareStatus
void SetShareStatus(ShareStatus &&value)
Definition: SharedDirectory.h:300
ShareStatus.h
Aws::DirectoryService::Model::SharedDirectory::WithCreatedDateTime
SharedDirectory & WithCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: SharedDirectory.h:406
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:437
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:319
Aws::DirectoryService::Model::SharedDirectory::SetShareNotes
void SetShareNotes(Aws::String &&value)
Definition: SharedDirectory.h:343
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:386
Aws::DirectoryService::Model::SharedDirectory::WithShareStatus
SharedDirectory & WithShareStatus(const ShareStatus &value)
Definition: SharedDirectory.h:305
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:381
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:432
Aws::DirectoryService::Model::SharedDirectory::SetCreatedDateTime
void SetCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: SharedDirectory.h:391
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:422
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:412
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:367
Aws::DirectoryService::Model::SharedDirectory::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::SharedDirectory::WithShareStatus
SharedDirectory & WithShareStatus(ShareStatus &&value)
Definition: SharedDirectory.h:310
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:335
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::DirectoryService::Model::SharedDirectory::ShareStatusHasBeenSet
bool ShareStatusHasBeenSet() const
Definition: SharedDirectory.h:290
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:33
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:359
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:351
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:396
Aws::DirectoryService::Model::SharedDirectory::GetShareMethod
const ShareMethod & GetShareMethod() const
Definition: SharedDirectory.h:141
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
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:295
Aws::DirectoryService::Model::SharedDirectory::GetShareStatus
const ShareStatus & GetShareStatus() const
Definition: SharedDirectory.h:285
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:327
Aws::DirectoryService::Model::SharedDirectory::WithCreatedDateTime
SharedDirectory & WithCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: SharedDirectory.h:401
Aws::DirectoryService::Model::SharedDirectory::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: SharedDirectory.h:427
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:375
Aws::DirectoryService::Model::SharedDirectory::LastUpdatedDateTimeHasBeenSet
bool LastUpdatedDateTimeHasBeenSet() const
Definition: SharedDirectory.h:417
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