7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ds/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/SelectiveAuth.h>
11#include <aws/ds/model/TrustDirection.h>
12#include <aws/ds/model/TrustState.h>
13#include <aws/ds/model/TrustType.h>
24namespace DirectoryService {
35 AWS_DIRECTORYSERVICE_API
Trust() =
default;
47 template <
typename DirectoryIdT = Aws::String>
49 m_directoryIdHasBeenSet =
true;
50 m_directoryId = std::forward<DirectoryIdT>(value);
52 template <
typename DirectoryIdT = Aws::String>
65 template <
typename TrustIdT = Aws::String>
67 m_trustIdHasBeenSet =
true;
68 m_trustId = std::forward<TrustIdT>(value);
70 template <
typename TrustIdT = Aws::String>
84 template <
typename RemoteDomainNameT = Aws::String>
86 m_remoteDomainNameHasBeenSet =
true;
87 m_remoteDomainName = std::forward<RemoteDomainNameT>(value);
89 template <
typename RemoteDomainNameT = Aws::String>
103 m_trustTypeHasBeenSet =
true;
119 m_trustDirectionHasBeenSet =
true;
120 m_trustDirection = value;
135 m_trustStateHasBeenSet =
true;
136 m_trustState = value;
150 template <
typename CreatedDateTimeT = Aws::Utils::DateTime>
152 m_createdDateTimeHasBeenSet =
true;
153 m_createdDateTime = std::forward<CreatedDateTimeT>(value);
155 template <
typename CreatedDateTimeT = Aws::Utils::DateTime>
168 template <
typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
170 m_lastUpdatedDateTimeHasBeenSet =
true;
171 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
173 template <
typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
186 template <
typename StateLastUpdatedDateTimeT = Aws::Utils::DateTime>
188 m_stateLastUpdatedDateTimeHasBeenSet =
true;
189 m_stateLastUpdatedDateTime = std::forward<StateLastUpdatedDateTimeT>(value);
191 template <
typename StateLastUpdatedDateTimeT = Aws::Utils::DateTime>
204 template <
typename TrustStateReasonT = Aws::String>
206 m_trustStateReasonHasBeenSet =
true;
207 m_trustStateReason = std::forward<TrustStateReasonT>(value);
209 template <
typename TrustStateReasonT = Aws::String>
223 m_selectiveAuthHasBeenSet =
true;
224 m_selectiveAuth = value;
253 bool m_directoryIdHasBeenSet =
false;
254 bool m_trustIdHasBeenSet =
false;
255 bool m_remoteDomainNameHasBeenSet =
false;
256 bool m_trustTypeHasBeenSet =
false;
257 bool m_trustDirectionHasBeenSet =
false;
258 bool m_trustStateHasBeenSet =
false;
259 bool m_createdDateTimeHasBeenSet =
false;
260 bool m_lastUpdatedDateTimeHasBeenSet =
false;
261 bool m_stateLastUpdatedDateTimeHasBeenSet =
false;
262 bool m_trustStateReasonHasBeenSet =
false;
263 bool m_selectiveAuthHasBeenSet =
false;
void SetTrustType(TrustType value)
SelectiveAuth GetSelectiveAuth() const
const Aws::String & GetRemoteDomainName() const
Trust & WithSelectiveAuth(SelectiveAuth value)
Trust & WithDirectoryId(DirectoryIdT &&value)
const Aws::Utils::DateTime & GetStateLastUpdatedDateTime() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetCreatedDateTime(CreatedDateTimeT &&value)
Trust & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
bool LastUpdatedDateTimeHasBeenSet() const
AWS_DIRECTORYSERVICE_API Trust(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDirectoryId() const
AWS_DIRECTORYSERVICE_API Trust()=default
Trust & WithTrustDirection(TrustDirection value)
void SetDirectoryId(DirectoryIdT &&value)
TrustType GetTrustType() const
bool TrustStateHasBeenSet() const
bool CreatedDateTimeHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedDateTime() const
void SetTrustDirection(TrustDirection value)
Trust & WithCreatedDateTime(CreatedDateTimeT &&value)
bool RemoteDomainNameHasBeenSet() const
void SetStateLastUpdatedDateTime(StateLastUpdatedDateTimeT &&value)
bool TrustDirectionHasBeenSet() const
const Aws::String & GetTrustId() const
Trust & WithRemoteDomainName(RemoteDomainNameT &&value)
bool StateLastUpdatedDateTimeHasBeenSet() const
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool TrustIdHasBeenSet() const
TrustState GetTrustState() const
AWS_DIRECTORYSERVICE_API Trust & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TrustStateReasonHasBeenSet() const
bool SelectiveAuthHasBeenSet() const
Trust & WithTrustStateReason(TrustStateReasonT &&value)
void SetTrustStateReason(TrustStateReasonT &&value)
bool DirectoryIdHasBeenSet() const
bool TrustTypeHasBeenSet() const
TrustDirection GetTrustDirection() const
void SetRemoteDomainName(RemoteDomainNameT &&value)
Trust & WithStateLastUpdatedDateTime(StateLastUpdatedDateTimeT &&value)
const Aws::String & GetTrustStateReason() const
Trust & WithTrustId(TrustIdT &&value)
void SetTrustId(TrustIdT &&value)
Trust & WithTrustState(TrustState value)
Trust & WithTrustType(TrustType value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
void SetSelectiveAuth(SelectiveAuth value)
void SetTrustState(TrustState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue