AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
Trust.h
1
6#pragma once
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>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DirectoryService {
25namespace Model {
26
33class Trust {
34 public:
35 AWS_DIRECTORYSERVICE_API Trust() = default;
36 AWS_DIRECTORYSERVICE_API Trust(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DIRECTORYSERVICE_API Trust& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
46 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
47 template <typename DirectoryIdT = Aws::String>
48 void SetDirectoryId(DirectoryIdT&& value) {
49 m_directoryIdHasBeenSet = true;
50 m_directoryId = std::forward<DirectoryIdT>(value);
51 }
52 template <typename DirectoryIdT = Aws::String>
53 Trust& WithDirectoryId(DirectoryIdT&& value) {
54 SetDirectoryId(std::forward<DirectoryIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetTrustId() const { return m_trustId; }
64 inline bool TrustIdHasBeenSet() const { return m_trustIdHasBeenSet; }
65 template <typename TrustIdT = Aws::String>
66 void SetTrustId(TrustIdT&& value) {
67 m_trustIdHasBeenSet = true;
68 m_trustId = std::forward<TrustIdT>(value);
69 }
70 template <typename TrustIdT = Aws::String>
71 Trust& WithTrustId(TrustIdT&& value) {
72 SetTrustId(std::forward<TrustIdT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetRemoteDomainName() const { return m_remoteDomainName; }
83 inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; }
84 template <typename RemoteDomainNameT = Aws::String>
85 void SetRemoteDomainName(RemoteDomainNameT&& value) {
86 m_remoteDomainNameHasBeenSet = true;
87 m_remoteDomainName = std::forward<RemoteDomainNameT>(value);
88 }
89 template <typename RemoteDomainNameT = Aws::String>
90 Trust& WithRemoteDomainName(RemoteDomainNameT&& value) {
91 SetRemoteDomainName(std::forward<RemoteDomainNameT>(value));
92 return *this;
93 }
95
97
100 inline TrustType GetTrustType() const { return m_trustType; }
101 inline bool TrustTypeHasBeenSet() const { return m_trustTypeHasBeenSet; }
102 inline void SetTrustType(TrustType value) {
103 m_trustTypeHasBeenSet = true;
104 m_trustType = value;
105 }
107 SetTrustType(value);
108 return *this;
109 }
111
113
116 inline TrustDirection GetTrustDirection() const { return m_trustDirection; }
117 inline bool TrustDirectionHasBeenSet() const { return m_trustDirectionHasBeenSet; }
119 m_trustDirectionHasBeenSet = true;
120 m_trustDirection = value;
121 }
123 SetTrustDirection(value);
124 return *this;
125 }
127
129
132 inline TrustState GetTrustState() const { return m_trustState; }
133 inline bool TrustStateHasBeenSet() const { return m_trustStateHasBeenSet; }
134 inline void SetTrustState(TrustState value) {
135 m_trustStateHasBeenSet = true;
136 m_trustState = value;
137 }
139 SetTrustState(value);
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreatedDateTime() const { return m_createdDateTime; }
149 inline bool CreatedDateTimeHasBeenSet() const { return m_createdDateTimeHasBeenSet; }
150 template <typename CreatedDateTimeT = Aws::Utils::DateTime>
151 void SetCreatedDateTime(CreatedDateTimeT&& value) {
152 m_createdDateTimeHasBeenSet = true;
153 m_createdDateTime = std::forward<CreatedDateTimeT>(value);
154 }
155 template <typename CreatedDateTimeT = Aws::Utils::DateTime>
156 Trust& WithCreatedDateTime(CreatedDateTimeT&& value) {
157 SetCreatedDateTime(std::forward<CreatedDateTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
167 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
168 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
169 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
170 m_lastUpdatedDateTimeHasBeenSet = true;
171 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
172 }
173 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
174 Trust& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
175 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetStateLastUpdatedDateTime() const { return m_stateLastUpdatedDateTime; }
185 inline bool StateLastUpdatedDateTimeHasBeenSet() const { return m_stateLastUpdatedDateTimeHasBeenSet; }
186 template <typename StateLastUpdatedDateTimeT = Aws::Utils::DateTime>
187 void SetStateLastUpdatedDateTime(StateLastUpdatedDateTimeT&& value) {
188 m_stateLastUpdatedDateTimeHasBeenSet = true;
189 m_stateLastUpdatedDateTime = std::forward<StateLastUpdatedDateTimeT>(value);
190 }
191 template <typename StateLastUpdatedDateTimeT = Aws::Utils::DateTime>
192 Trust& WithStateLastUpdatedDateTime(StateLastUpdatedDateTimeT&& value) {
193 SetStateLastUpdatedDateTime(std::forward<StateLastUpdatedDateTimeT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetTrustStateReason() const { return m_trustStateReason; }
203 inline bool TrustStateReasonHasBeenSet() const { return m_trustStateReasonHasBeenSet; }
204 template <typename TrustStateReasonT = Aws::String>
205 void SetTrustStateReason(TrustStateReasonT&& value) {
206 m_trustStateReasonHasBeenSet = true;
207 m_trustStateReason = std::forward<TrustStateReasonT>(value);
208 }
209 template <typename TrustStateReasonT = Aws::String>
210 Trust& WithTrustStateReason(TrustStateReasonT&& value) {
211 SetTrustStateReason(std::forward<TrustStateReasonT>(value));
212 return *this;
213 }
215
217
220 inline SelectiveAuth GetSelectiveAuth() const { return m_selectiveAuth; }
221 inline bool SelectiveAuthHasBeenSet() const { return m_selectiveAuthHasBeenSet; }
222 inline void SetSelectiveAuth(SelectiveAuth value) {
223 m_selectiveAuthHasBeenSet = true;
224 m_selectiveAuth = value;
225 }
227 SetSelectiveAuth(value);
228 return *this;
229 }
231 private:
232 Aws::String m_directoryId;
233
234 Aws::String m_trustId;
235
236 Aws::String m_remoteDomainName;
237
238 TrustType m_trustType{TrustType::NOT_SET};
239
240 TrustDirection m_trustDirection{TrustDirection::NOT_SET};
241
242 TrustState m_trustState{TrustState::NOT_SET};
243
244 Aws::Utils::DateTime m_createdDateTime{};
245
246 Aws::Utils::DateTime m_lastUpdatedDateTime{};
247
248 Aws::Utils::DateTime m_stateLastUpdatedDateTime{};
249
250 Aws::String m_trustStateReason;
251
252 SelectiveAuth m_selectiveAuth{SelectiveAuth::NOT_SET};
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;
264};
265
266} // namespace Model
267} // namespace DirectoryService
268} // namespace Aws
void SetTrustType(TrustType value)
Definition Trust.h:102
SelectiveAuth GetSelectiveAuth() const
Definition Trust.h:220
const Aws::String & GetRemoteDomainName() const
Definition Trust.h:82
Trust & WithSelectiveAuth(SelectiveAuth value)
Definition Trust.h:226
Trust & WithDirectoryId(DirectoryIdT &&value)
Definition Trust.h:53
const Aws::Utils::DateTime & GetStateLastUpdatedDateTime() const
Definition Trust.h:184
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Trust.h:169
void SetCreatedDateTime(CreatedDateTimeT &&value)
Definition Trust.h:151
Trust & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Trust.h:174
bool LastUpdatedDateTimeHasBeenSet() const
Definition Trust.h:167
AWS_DIRECTORYSERVICE_API Trust(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDirectoryId() const
Definition Trust.h:45
AWS_DIRECTORYSERVICE_API Trust()=default
Trust & WithTrustDirection(TrustDirection value)
Definition Trust.h:122
void SetDirectoryId(DirectoryIdT &&value)
Definition Trust.h:48
TrustType GetTrustType() const
Definition Trust.h:100
bool CreatedDateTimeHasBeenSet() const
Definition Trust.h:149
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition Trust.h:148
void SetTrustDirection(TrustDirection value)
Definition Trust.h:118
Trust & WithCreatedDateTime(CreatedDateTimeT &&value)
Definition Trust.h:156
bool RemoteDomainNameHasBeenSet() const
Definition Trust.h:83
void SetStateLastUpdatedDateTime(StateLastUpdatedDateTimeT &&value)
Definition Trust.h:187
bool TrustDirectionHasBeenSet() const
Definition Trust.h:117
const Aws::String & GetTrustId() const
Definition Trust.h:63
Trust & WithRemoteDomainName(RemoteDomainNameT &&value)
Definition Trust.h:90
bool StateLastUpdatedDateTimeHasBeenSet() const
Definition Trust.h:185
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TrustState GetTrustState() const
Definition Trust.h:132
AWS_DIRECTORYSERVICE_API Trust & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TrustStateReasonHasBeenSet() const
Definition Trust.h:203
Trust & WithTrustStateReason(TrustStateReasonT &&value)
Definition Trust.h:210
void SetTrustStateReason(TrustStateReasonT &&value)
Definition Trust.h:205
TrustDirection GetTrustDirection() const
Definition Trust.h:116
void SetRemoteDomainName(RemoteDomainNameT &&value)
Definition Trust.h:85
Trust & WithStateLastUpdatedDateTime(StateLastUpdatedDateTimeT &&value)
Definition Trust.h:192
const Aws::String & GetTrustStateReason() const
Definition Trust.h:202
Trust & WithTrustId(TrustIdT &&value)
Definition Trust.h:71
void SetTrustId(TrustIdT &&value)
Definition Trust.h:66
Trust & WithTrustState(TrustState value)
Definition Trust.h:138
Trust & WithTrustType(TrustType value)
Definition Trust.h:106
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Trust.h:166
void SetSelectiveAuth(SelectiveAuth value)
Definition Trust.h:222
void SetTrustState(TrustState value)
Definition Trust.h:134
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue