AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Trust.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ds/model/TrustType.h>
10#include <aws/ds/model/TrustDirection.h>
11#include <aws/ds/model/TrustState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ds/model/SelectiveAuth.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DirectoryService
27{
28namespace Model
29{
30
37 class Trust
38 {
39 public:
40 AWS_DIRECTORYSERVICE_API Trust() = default;
41 AWS_DIRECTORYSERVICE_API Trust(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DIRECTORYSERVICE_API Trust& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
52 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
53 template<typename DirectoryIdT = Aws::String>
54 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
55 template<typename DirectoryIdT = Aws::String>
56 Trust& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
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) { m_trustIdHasBeenSet = true; m_trustId = std::forward<TrustIdT>(value); }
67 template<typename TrustIdT = Aws::String>
68 Trust& WithTrustId(TrustIdT&& value) { SetTrustId(std::forward<TrustIdT>(value)); return *this;}
70
72
76 inline const Aws::String& GetRemoteDomainName() const { return m_remoteDomainName; }
77 inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; }
78 template<typename RemoteDomainNameT = Aws::String>
79 void SetRemoteDomainName(RemoteDomainNameT&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = std::forward<RemoteDomainNameT>(value); }
80 template<typename RemoteDomainNameT = Aws::String>
81 Trust& WithRemoteDomainName(RemoteDomainNameT&& value) { SetRemoteDomainName(std::forward<RemoteDomainNameT>(value)); return *this;}
83
85
88 inline TrustType GetTrustType() const { return m_trustType; }
89 inline bool TrustTypeHasBeenSet() const { return m_trustTypeHasBeenSet; }
90 inline void SetTrustType(TrustType value) { m_trustTypeHasBeenSet = true; m_trustType = value; }
91 inline Trust& WithTrustType(TrustType value) { SetTrustType(value); return *this;}
93
95
98 inline TrustDirection GetTrustDirection() const { return m_trustDirection; }
99 inline bool TrustDirectionHasBeenSet() const { return m_trustDirectionHasBeenSet; }
100 inline void SetTrustDirection(TrustDirection value) { m_trustDirectionHasBeenSet = true; m_trustDirection = value; }
101 inline Trust& WithTrustDirection(TrustDirection value) { SetTrustDirection(value); return *this;}
103
105
108 inline TrustState GetTrustState() const { return m_trustState; }
109 inline bool TrustStateHasBeenSet() const { return m_trustStateHasBeenSet; }
110 inline void SetTrustState(TrustState value) { m_trustStateHasBeenSet = true; m_trustState = value; }
111 inline Trust& WithTrustState(TrustState value) { SetTrustState(value); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCreatedDateTime() const { return m_createdDateTime; }
119 inline bool CreatedDateTimeHasBeenSet() const { return m_createdDateTimeHasBeenSet; }
120 template<typename CreatedDateTimeT = Aws::Utils::DateTime>
121 void SetCreatedDateTime(CreatedDateTimeT&& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = std::forward<CreatedDateTimeT>(value); }
122 template<typename CreatedDateTimeT = Aws::Utils::DateTime>
123 Trust& WithCreatedDateTime(CreatedDateTimeT&& value) { SetCreatedDateTime(std::forward<CreatedDateTimeT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
131 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
132 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
133 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
134 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
135 Trust& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetStateLastUpdatedDateTime() const { return m_stateLastUpdatedDateTime; }
143 inline bool StateLastUpdatedDateTimeHasBeenSet() const { return m_stateLastUpdatedDateTimeHasBeenSet; }
144 template<typename StateLastUpdatedDateTimeT = Aws::Utils::DateTime>
145 void SetStateLastUpdatedDateTime(StateLastUpdatedDateTimeT&& value) { m_stateLastUpdatedDateTimeHasBeenSet = true; m_stateLastUpdatedDateTime = std::forward<StateLastUpdatedDateTimeT>(value); }
146 template<typename StateLastUpdatedDateTimeT = Aws::Utils::DateTime>
147 Trust& WithStateLastUpdatedDateTime(StateLastUpdatedDateTimeT&& value) { SetStateLastUpdatedDateTime(std::forward<StateLastUpdatedDateTimeT>(value)); return *this;}
149
151
154 inline const Aws::String& GetTrustStateReason() const { return m_trustStateReason; }
155 inline bool TrustStateReasonHasBeenSet() const { return m_trustStateReasonHasBeenSet; }
156 template<typename TrustStateReasonT = Aws::String>
157 void SetTrustStateReason(TrustStateReasonT&& value) { m_trustStateReasonHasBeenSet = true; m_trustStateReason = std::forward<TrustStateReasonT>(value); }
158 template<typename TrustStateReasonT = Aws::String>
159 Trust& WithTrustStateReason(TrustStateReasonT&& value) { SetTrustStateReason(std::forward<TrustStateReasonT>(value)); return *this;}
161
163
166 inline SelectiveAuth GetSelectiveAuth() const { return m_selectiveAuth; }
167 inline bool SelectiveAuthHasBeenSet() const { return m_selectiveAuthHasBeenSet; }
168 inline void SetSelectiveAuth(SelectiveAuth value) { m_selectiveAuthHasBeenSet = true; m_selectiveAuth = value; }
169 inline Trust& WithSelectiveAuth(SelectiveAuth value) { SetSelectiveAuth(value); return *this;}
171 private:
172
173 Aws::String m_directoryId;
174 bool m_directoryIdHasBeenSet = false;
175
176 Aws::String m_trustId;
177 bool m_trustIdHasBeenSet = false;
178
179 Aws::String m_remoteDomainName;
180 bool m_remoteDomainNameHasBeenSet = false;
181
182 TrustType m_trustType{TrustType::NOT_SET};
183 bool m_trustTypeHasBeenSet = false;
184
185 TrustDirection m_trustDirection{TrustDirection::NOT_SET};
186 bool m_trustDirectionHasBeenSet = false;
187
188 TrustState m_trustState{TrustState::NOT_SET};
189 bool m_trustStateHasBeenSet = false;
190
191 Aws::Utils::DateTime m_createdDateTime{};
192 bool m_createdDateTimeHasBeenSet = false;
193
194 Aws::Utils::DateTime m_lastUpdatedDateTime{};
195 bool m_lastUpdatedDateTimeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_stateLastUpdatedDateTime{};
198 bool m_stateLastUpdatedDateTimeHasBeenSet = false;
199
200 Aws::String m_trustStateReason;
201 bool m_trustStateReasonHasBeenSet = false;
202
203 SelectiveAuth m_selectiveAuth{SelectiveAuth::NOT_SET};
204 bool m_selectiveAuthHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace DirectoryService
209} // namespace Aws
void SetTrustType(TrustType value)
Definition Trust.h:90
SelectiveAuth GetSelectiveAuth() const
Definition Trust.h:166
const Aws::String & GetRemoteDomainName() const
Definition Trust.h:76
Trust & WithSelectiveAuth(SelectiveAuth value)
Definition Trust.h:169
Trust & WithDirectoryId(DirectoryIdT &&value)
Definition Trust.h:56
const Aws::Utils::DateTime & GetStateLastUpdatedDateTime() const
Definition Trust.h:142
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Trust.h:133
void SetCreatedDateTime(CreatedDateTimeT &&value)
Definition Trust.h:121
Trust & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
Definition Trust.h:135
bool LastUpdatedDateTimeHasBeenSet() const
Definition Trust.h:131
AWS_DIRECTORYSERVICE_API Trust(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDirectoryId() const
Definition Trust.h:51
AWS_DIRECTORYSERVICE_API Trust()=default
Trust & WithTrustDirection(TrustDirection value)
Definition Trust.h:101
void SetDirectoryId(DirectoryIdT &&value)
Definition Trust.h:54
TrustType GetTrustType() const
Definition Trust.h:88
bool CreatedDateTimeHasBeenSet() const
Definition Trust.h:119
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition Trust.h:118
void SetTrustDirection(TrustDirection value)
Definition Trust.h:100
Trust & WithCreatedDateTime(CreatedDateTimeT &&value)
Definition Trust.h:123
bool RemoteDomainNameHasBeenSet() const
Definition Trust.h:77
void SetStateLastUpdatedDateTime(StateLastUpdatedDateTimeT &&value)
Definition Trust.h:145
bool TrustDirectionHasBeenSet() const
Definition Trust.h:99
const Aws::String & GetTrustId() const
Definition Trust.h:63
Trust & WithRemoteDomainName(RemoteDomainNameT &&value)
Definition Trust.h:81
bool StateLastUpdatedDateTimeHasBeenSet() const
Definition Trust.h:143
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TrustState GetTrustState() const
Definition Trust.h:108
AWS_DIRECTORYSERVICE_API Trust & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TrustStateReasonHasBeenSet() const
Definition Trust.h:155
Trust & WithTrustStateReason(TrustStateReasonT &&value)
Definition Trust.h:159
void SetTrustStateReason(TrustStateReasonT &&value)
Definition Trust.h:157
TrustDirection GetTrustDirection() const
Definition Trust.h:98
void SetRemoteDomainName(RemoteDomainNameT &&value)
Definition Trust.h:79
Trust & WithStateLastUpdatedDateTime(StateLastUpdatedDateTimeT &&value)
Definition Trust.h:147
const Aws::String & GetTrustStateReason() const
Definition Trust.h:154
Trust & WithTrustId(TrustIdT &&value)
Definition Trust.h:68
void SetTrustId(TrustIdT &&value)
Definition Trust.h:66
Trust & WithTrustState(TrustState value)
Definition Trust.h:111
Trust & WithTrustType(TrustType value)
Definition Trust.h:91
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition Trust.h:130
void SetSelectiveAuth(SelectiveAuth value)
Definition Trust.h:168
void SetTrustState(TrustState value)
Definition Trust.h:110
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue