AWS SDK for C++  1.9.20
AWS SDK for C++
Trust.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace DirectoryService
27 {
28 namespace Model
29 {
30 
38  {
39  public:
40  Trust();
44 
45 
49  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
50 
54  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
55 
59  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
60 
64  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
65 
69  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
70 
74  inline Trust& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
75 
79  inline Trust& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
80 
84  inline Trust& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
85 
86 
90  inline const Aws::String& GetTrustId() const{ return m_trustId; }
91 
95  inline bool TrustIdHasBeenSet() const { return m_trustIdHasBeenSet; }
96 
100  inline void SetTrustId(const Aws::String& value) { m_trustIdHasBeenSet = true; m_trustId = value; }
101 
105  inline void SetTrustId(Aws::String&& value) { m_trustIdHasBeenSet = true; m_trustId = std::move(value); }
106 
110  inline void SetTrustId(const char* value) { m_trustIdHasBeenSet = true; m_trustId.assign(value); }
111 
115  inline Trust& WithTrustId(const Aws::String& value) { SetTrustId(value); return *this;}
116 
120  inline Trust& WithTrustId(Aws::String&& value) { SetTrustId(std::move(value)); return *this;}
121 
125  inline Trust& WithTrustId(const char* value) { SetTrustId(value); return *this;}
126 
127 
132  inline const Aws::String& GetRemoteDomainName() const{ return m_remoteDomainName; }
133 
138  inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; }
139 
144  inline void SetRemoteDomainName(const Aws::String& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
145 
150  inline void SetRemoteDomainName(Aws::String&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = std::move(value); }
151 
156  inline void SetRemoteDomainName(const char* value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName.assign(value); }
157 
162  inline Trust& WithRemoteDomainName(const Aws::String& value) { SetRemoteDomainName(value); return *this;}
163 
168  inline Trust& WithRemoteDomainName(Aws::String&& value) { SetRemoteDomainName(std::move(value)); return *this;}
169 
174  inline Trust& WithRemoteDomainName(const char* value) { SetRemoteDomainName(value); return *this;}
175 
176 
180  inline const TrustType& GetTrustType() const{ return m_trustType; }
181 
185  inline bool TrustTypeHasBeenSet() const { return m_trustTypeHasBeenSet; }
186 
190  inline void SetTrustType(const TrustType& value) { m_trustTypeHasBeenSet = true; m_trustType = value; }
191 
195  inline void SetTrustType(TrustType&& value) { m_trustTypeHasBeenSet = true; m_trustType = std::move(value); }
196 
200  inline Trust& WithTrustType(const TrustType& value) { SetTrustType(value); return *this;}
201 
205  inline Trust& WithTrustType(TrustType&& value) { SetTrustType(std::move(value)); return *this;}
206 
207 
211  inline const TrustDirection& GetTrustDirection() const{ return m_trustDirection; }
212 
216  inline bool TrustDirectionHasBeenSet() const { return m_trustDirectionHasBeenSet; }
217 
221  inline void SetTrustDirection(const TrustDirection& value) { m_trustDirectionHasBeenSet = true; m_trustDirection = value; }
222 
226  inline void SetTrustDirection(TrustDirection&& value) { m_trustDirectionHasBeenSet = true; m_trustDirection = std::move(value); }
227 
231  inline Trust& WithTrustDirection(const TrustDirection& value) { SetTrustDirection(value); return *this;}
232 
236  inline Trust& WithTrustDirection(TrustDirection&& value) { SetTrustDirection(std::move(value)); return *this;}
237 
238 
242  inline const TrustState& GetTrustState() const{ return m_trustState; }
243 
247  inline bool TrustStateHasBeenSet() const { return m_trustStateHasBeenSet; }
248 
252  inline void SetTrustState(const TrustState& value) { m_trustStateHasBeenSet = true; m_trustState = value; }
253 
257  inline void SetTrustState(TrustState&& value) { m_trustStateHasBeenSet = true; m_trustState = std::move(value); }
258 
262  inline Trust& WithTrustState(const TrustState& value) { SetTrustState(value); return *this;}
263 
267  inline Trust& WithTrustState(TrustState&& value) { SetTrustState(std::move(value)); return *this;}
268 
269 
273  inline const Aws::Utils::DateTime& GetCreatedDateTime() const{ return m_createdDateTime; }
274 
278  inline bool CreatedDateTimeHasBeenSet() const { return m_createdDateTimeHasBeenSet; }
279 
283  inline void SetCreatedDateTime(const Aws::Utils::DateTime& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = value; }
284 
288  inline void SetCreatedDateTime(Aws::Utils::DateTime&& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = std::move(value); }
289 
293  inline Trust& WithCreatedDateTime(const Aws::Utils::DateTime& value) { SetCreatedDateTime(value); return *this;}
294 
298  inline Trust& WithCreatedDateTime(Aws::Utils::DateTime&& value) { SetCreatedDateTime(std::move(value)); return *this;}
299 
300 
304  inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
305 
309  inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
310 
314  inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
315 
319  inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
320 
324  inline Trust& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;}
325 
329  inline Trust& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
330 
331 
335  inline const Aws::Utils::DateTime& GetStateLastUpdatedDateTime() const{ return m_stateLastUpdatedDateTime; }
336 
340  inline bool StateLastUpdatedDateTimeHasBeenSet() const { return m_stateLastUpdatedDateTimeHasBeenSet; }
341 
345  inline void SetStateLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_stateLastUpdatedDateTimeHasBeenSet = true; m_stateLastUpdatedDateTime = value; }
346 
350  inline void SetStateLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_stateLastUpdatedDateTimeHasBeenSet = true; m_stateLastUpdatedDateTime = std::move(value); }
351 
355  inline Trust& WithStateLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetStateLastUpdatedDateTime(value); return *this;}
356 
360  inline Trust& WithStateLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetStateLastUpdatedDateTime(std::move(value)); return *this;}
361 
362 
366  inline const Aws::String& GetTrustStateReason() const{ return m_trustStateReason; }
367 
371  inline bool TrustStateReasonHasBeenSet() const { return m_trustStateReasonHasBeenSet; }
372 
376  inline void SetTrustStateReason(const Aws::String& value) { m_trustStateReasonHasBeenSet = true; m_trustStateReason = value; }
377 
381  inline void SetTrustStateReason(Aws::String&& value) { m_trustStateReasonHasBeenSet = true; m_trustStateReason = std::move(value); }
382 
386  inline void SetTrustStateReason(const char* value) { m_trustStateReasonHasBeenSet = true; m_trustStateReason.assign(value); }
387 
391  inline Trust& WithTrustStateReason(const Aws::String& value) { SetTrustStateReason(value); return *this;}
392 
396  inline Trust& WithTrustStateReason(Aws::String&& value) { SetTrustStateReason(std::move(value)); return *this;}
397 
401  inline Trust& WithTrustStateReason(const char* value) { SetTrustStateReason(value); return *this;}
402 
403 
407  inline const SelectiveAuth& GetSelectiveAuth() const{ return m_selectiveAuth; }
408 
412  inline bool SelectiveAuthHasBeenSet() const { return m_selectiveAuthHasBeenSet; }
413 
417  inline void SetSelectiveAuth(const SelectiveAuth& value) { m_selectiveAuthHasBeenSet = true; m_selectiveAuth = value; }
418 
422  inline void SetSelectiveAuth(SelectiveAuth&& value) { m_selectiveAuthHasBeenSet = true; m_selectiveAuth = std::move(value); }
423 
427  inline Trust& WithSelectiveAuth(const SelectiveAuth& value) { SetSelectiveAuth(value); return *this;}
428 
432  inline Trust& WithSelectiveAuth(SelectiveAuth&& value) { SetSelectiveAuth(std::move(value)); return *this;}
433 
434  private:
435 
436  Aws::String m_directoryId;
437  bool m_directoryIdHasBeenSet;
438 
439  Aws::String m_trustId;
440  bool m_trustIdHasBeenSet;
441 
442  Aws::String m_remoteDomainName;
443  bool m_remoteDomainNameHasBeenSet;
444 
445  TrustType m_trustType;
446  bool m_trustTypeHasBeenSet;
447 
448  TrustDirection m_trustDirection;
449  bool m_trustDirectionHasBeenSet;
450 
451  TrustState m_trustState;
452  bool m_trustStateHasBeenSet;
453 
454  Aws::Utils::DateTime m_createdDateTime;
455  bool m_createdDateTimeHasBeenSet;
456 
457  Aws::Utils::DateTime m_lastUpdatedDateTime;
458  bool m_lastUpdatedDateTimeHasBeenSet;
459 
460  Aws::Utils::DateTime m_stateLastUpdatedDateTime;
461  bool m_stateLastUpdatedDateTimeHasBeenSet;
462 
463  Aws::String m_trustStateReason;
464  bool m_trustStateReasonHasBeenSet;
465 
466  SelectiveAuth m_selectiveAuth;
467  bool m_selectiveAuthHasBeenSet;
468  };
469 
470 } // namespace Model
471 } // namespace DirectoryService
472 } // namespace Aws
Aws::DirectoryService::Model::Trust
Definition: Trust.h:38
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DirectoryService::Model::Trust::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:319
Aws::DirectoryService::Model::Trust::SetCreatedDateTime
void SetCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:283
Aws::DirectoryService::Model::Trust::SetSelectiveAuth
void SetSelectiveAuth(const SelectiveAuth &value)
Definition: Trust.h:417
Aws::DirectoryService::Model::Trust::SetTrustState
void SetTrustState(TrustState &&value)
Definition: Trust.h:257
Aws::DirectoryService::Model::Trust::WithTrustStateReason
Trust & WithTrustStateReason(const char *value)
Definition: Trust.h:401
Aws::DirectoryService::Model::Trust::TrustStateHasBeenSet
bool TrustStateHasBeenSet() const
Definition: Trust.h:247
Aws::DirectoryService::Model::Trust::SetRemoteDomainName
void SetRemoteDomainName(Aws::String &&value)
Definition: Trust.h:150
Aws::DirectoryService::Model::Trust::WithTrustType
Trust & WithTrustType(TrustType &&value)
Definition: Trust.h:205
Aws::DirectoryService::Model::Trust::WithRemoteDomainName
Trust & WithRemoteDomainName(const Aws::String &value)
Definition: Trust.h:162
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::Trust::SetTrustStateReason
void SetTrustStateReason(Aws::String &&value)
Definition: Trust.h:381
Aws::DirectoryService::Model::Trust::WithDirectoryId
Trust & WithDirectoryId(const char *value)
Definition: Trust.h:84
Aws::DirectoryService::Model::Trust::StateLastUpdatedDateTimeHasBeenSet
bool StateLastUpdatedDateTimeHasBeenSet() const
Definition: Trust.h:340
Aws::DirectoryService::Model::Trust::SetTrustType
void SetTrustType(TrustType &&value)
Definition: Trust.h:195
Aws::DirectoryService::Model::Trust::RemoteDomainNameHasBeenSet
bool RemoteDomainNameHasBeenSet() const
Definition: Trust.h:138
Aws::DirectoryService::Model::Trust::TrustIdHasBeenSet
bool TrustIdHasBeenSet() const
Definition: Trust.h:95
Aws::DirectoryService::Model::Trust::TrustStateReasonHasBeenSet
bool TrustStateReasonHasBeenSet() const
Definition: Trust.h:371
Aws::DirectoryService::Model::Trust::SetRemoteDomainName
void SetRemoteDomainName(const Aws::String &value)
Definition: Trust.h:144
DateTime.h
Aws::DirectoryService::Model::Trust::TrustDirectionHasBeenSet
bool TrustDirectionHasBeenSet() const
Definition: Trust.h:216
Aws::DirectoryService::Model::Trust::WithTrustId
Trust & WithTrustId(const Aws::String &value)
Definition: Trust.h:115
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::Trust::GetSelectiveAuth
const SelectiveAuth & GetSelectiveAuth() const
Definition: Trust.h:407
Aws::DirectoryService::Model::Trust::WithSelectiveAuth
Trust & WithSelectiveAuth(const SelectiveAuth &value)
Definition: Trust.h:427
Aws::DirectoryService::Model::Trust::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: Trust.h:59
Aws::DirectoryService::Model::Trust::GetRemoteDomainName
const Aws::String & GetRemoteDomainName() const
Definition: Trust.h:132
Aws::DirectoryService::Model::Trust::GetTrustId
const Aws::String & GetTrustId() const
Definition: Trust.h:90
Aws::DirectoryService::Model::Trust::WithLastUpdatedDateTime
Trust & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:324
Aws::DirectoryService::Model::Trust::SetTrustId
void SetTrustId(const Aws::String &value)
Definition: Trust.h:100
Aws::DirectoryService::Model::Trust::WithRemoteDomainName
Trust & WithRemoteDomainName(Aws::String &&value)
Definition: Trust.h:168
Aws::DirectoryService::Model::Trust::GetTrustState
const TrustState & GetTrustState() const
Definition: Trust.h:242
Aws::DirectoryService::Model::Trust::WithTrustStateReason
Trust & WithTrustStateReason(const Aws::String &value)
Definition: Trust.h:391
Aws::DirectoryService::Model::Trust::CreatedDateTimeHasBeenSet
bool CreatedDateTimeHasBeenSet() const
Definition: Trust.h:278
Aws::DirectoryService::Model::Trust::SetTrustId
void SetTrustId(const char *value)
Definition: Trust.h:110
Aws::DirectoryService::Model::Trust::operator=
Trust & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::Trust::SetTrustStateReason
void SetTrustStateReason(const char *value)
Definition: Trust.h:386
Aws::DirectoryService::Model::Trust::WithTrustDirection
Trust & WithTrustDirection(TrustDirection &&value)
Definition: Trust.h:236
Aws::DirectoryService::Model::Trust::SetTrustDirection
void SetTrustDirection(const TrustDirection &value)
Definition: Trust.h:221
Aws::DirectoryService::Model::Trust::GetTrustType
const TrustType & GetTrustType() const
Definition: Trust.h:180
Aws::DirectoryService::Model::Trust::WithCreatedDateTime
Trust & WithCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:293
Aws::DirectoryService::Model::Trust::WithStateLastUpdatedDateTime
Trust & WithStateLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:360
Aws::DirectoryService::Model::Trust::WithDirectoryId
Trust & WithDirectoryId(Aws::String &&value)
Definition: Trust.h:79
Aws::DirectoryService::Model::Trust::SetTrustId
void SetTrustId(Aws::String &&value)
Definition: Trust.h:105
Aws::DirectoryService::Model::Trust::SetStateLastUpdatedDateTime
void SetStateLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:345
Aws::DirectoryService::Model::Trust::TrustTypeHasBeenSet
bool TrustTypeHasBeenSet() const
Definition: Trust.h:185
TrustState.h
Aws::DirectoryService::Model::TrustDirection
TrustDirection
Definition: TrustDirection.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DirectoryService::Model::Trust::Trust
Trust(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
SelectiveAuth.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::Trust::SetSelectiveAuth
void SetSelectiveAuth(SelectiveAuth &&value)
Definition: Trust.h:422
Aws::DirectoryService::Model::Trust::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: Trust.h:69
Aws::DirectoryService::Model::Trust::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: Trust.h:49
Aws::DirectoryService::Model::Trust::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::Trust::Trust
Trust()
Aws::DirectoryService::Model::SelectiveAuth
SelectiveAuth
Definition: SelectiveAuth.h:17
Aws::DirectoryService::Model::Trust::SetTrustStateReason
void SetTrustStateReason(const Aws::String &value)
Definition: Trust.h:376
Aws::DirectoryService::Model::Trust::WithTrustType
Trust & WithTrustType(const TrustType &value)
Definition: Trust.h:200
Aws::DirectoryService::Model::Trust::WithRemoteDomainName
Trust & WithRemoteDomainName(const char *value)
Definition: Trust.h:174
Aws::DirectoryService::Model::Trust::WithTrustState
Trust & WithTrustState(TrustState &&value)
Definition: Trust.h:267
Aws::DirectoryService::Model::Trust::SetStateLastUpdatedDateTime
void SetStateLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:350
Aws::DirectoryService::Model::Trust::GetTrustStateReason
const Aws::String & GetTrustStateReason() const
Definition: Trust.h:366
Aws::DirectoryService::Model::Trust::WithTrustId
Trust & WithTrustId(Aws::String &&value)
Definition: Trust.h:120
Aws::DirectoryService::Model::Trust::WithSelectiveAuth
Trust & WithSelectiveAuth(SelectiveAuth &&value)
Definition: Trust.h:432
Aws::DirectoryService::Model::Trust::WithTrustStateReason
Trust & WithTrustStateReason(Aws::String &&value)
Definition: Trust.h:396
Aws::DirectoryService::Model::TrustState
TrustState
Definition: TrustState.h:17
Aws::DirectoryService::Model::Trust::SetTrustState
void SetTrustState(const TrustState &value)
Definition: Trust.h:252
Aws::DirectoryService::Model::Trust::WithStateLastUpdatedDateTime
Trust & WithStateLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:355
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::Trust::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: Trust.h:54
Aws::DirectoryService::Model::Trust::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: Trust.h:64
Aws::DirectoryService::Model::Trust::SetRemoteDomainName
void SetRemoteDomainName(const char *value)
Definition: Trust.h:156
Aws::DirectoryService::Model::Trust::LastUpdatedDateTimeHasBeenSet
bool LastUpdatedDateTimeHasBeenSet() const
Definition: Trust.h:309
Aws::DirectoryService::Model::Trust::GetTrustDirection
const TrustDirection & GetTrustDirection() const
Definition: Trust.h:211
Aws::DirectoryService::Model::Trust::WithLastUpdatedDateTime
Trust & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:329
Aws::DirectoryService::Model::Trust::SetTrustDirection
void SetTrustDirection(TrustDirection &&value)
Definition: Trust.h:226
Aws::DirectoryService::Model::Trust::SetLastUpdatedDateTime
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:314
Aws::DirectoryService::Model::Trust::SetTrustType
void SetTrustType(const TrustType &value)
Definition: Trust.h:190
Aws::DirectoryService::Model::Trust::WithTrustId
Trust & WithTrustId(const char *value)
Definition: Trust.h:125
Aws::DirectoryService::Model::Trust::GetStateLastUpdatedDateTime
const Aws::Utils::DateTime & GetStateLastUpdatedDateTime() const
Definition: Trust.h:335
Aws::DirectoryService::Model::Trust::SetCreatedDateTime
void SetCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:288
Aws::DirectoryService::Model::Trust::GetLastUpdatedDateTime
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition: Trust.h:304
Aws::DirectoryService::Model::Trust::SelectiveAuthHasBeenSet
bool SelectiveAuthHasBeenSet() const
Definition: Trust.h:412
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::Trust::WithCreatedDateTime
Trust & WithCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:298
Aws::DirectoryService::Model::TrustType
TrustType
Definition: TrustType.h:17
TrustType.h
TrustDirection.h
Aws::DirectoryService::Model::Trust::GetCreatedDateTime
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition: Trust.h:273
Aws::DirectoryService::Model::Trust::WithTrustState
Trust & WithTrustState(const TrustState &value)
Definition: Trust.h:262
Aws::DirectoryService::Model::Trust::WithTrustDirection
Trust & WithTrustDirection(const TrustDirection &value)
Definition: Trust.h:231
Aws::DirectoryService::Model::Trust::WithDirectoryId
Trust & WithDirectoryId(const Aws::String &value)
Definition: Trust.h:74