AWS SDK for C++  0.12.9
AWS SDK for C++
Trust.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 #include <aws/ds/model/TrustType.h>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace DirectoryService
33 {
34 namespace Model
35 {
36 
42  {
43  public:
44  Trust();
45  Trust(const Aws::Utils::Json::JsonValue& jsonValue);
46  Trust& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
52  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
53 
57  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
58 
62  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
63 
67  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
68 
72  inline Trust& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
73 
77  inline Trust& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
78 
82  inline Trust& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
83 
87  inline const Aws::String& GetTrustId() const{ return m_trustId; }
88 
92  inline void SetTrustId(const Aws::String& value) { m_trustIdHasBeenSet = true; m_trustId = value; }
93 
97  inline void SetTrustId(Aws::String&& value) { m_trustIdHasBeenSet = true; m_trustId = value; }
98 
102  inline void SetTrustId(const char* value) { m_trustIdHasBeenSet = true; m_trustId.assign(value); }
103 
107  inline Trust& WithTrustId(const Aws::String& value) { SetTrustId(value); return *this;}
108 
112  inline Trust& WithTrustId(Aws::String&& value) { SetTrustId(value); return *this;}
113 
117  inline Trust& WithTrustId(const char* value) { SetTrustId(value); return *this;}
118 
123  inline const Aws::String& GetRemoteDomainName() const{ return m_remoteDomainName; }
124 
129  inline void SetRemoteDomainName(const Aws::String& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
130 
135  inline void SetRemoteDomainName(Aws::String&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
136 
141  inline void SetRemoteDomainName(const char* value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName.assign(value); }
142 
147  inline Trust& WithRemoteDomainName(const Aws::String& value) { SetRemoteDomainName(value); return *this;}
148 
153  inline Trust& WithRemoteDomainName(Aws::String&& value) { SetRemoteDomainName(value); return *this;}
154 
159  inline Trust& WithRemoteDomainName(const char* value) { SetRemoteDomainName(value); return *this;}
160 
164  inline const TrustType& GetTrustType() const{ return m_trustType; }
165 
169  inline void SetTrustType(const TrustType& value) { m_trustTypeHasBeenSet = true; m_trustType = value; }
170 
174  inline void SetTrustType(TrustType&& value) { m_trustTypeHasBeenSet = true; m_trustType = value; }
175 
179  inline Trust& WithTrustType(const TrustType& value) { SetTrustType(value); return *this;}
180 
184  inline Trust& WithTrustType(TrustType&& value) { SetTrustType(value); return *this;}
185 
189  inline const TrustDirection& GetTrustDirection() const{ return m_trustDirection; }
190 
194  inline void SetTrustDirection(const TrustDirection& value) { m_trustDirectionHasBeenSet = true; m_trustDirection = value; }
195 
199  inline void SetTrustDirection(TrustDirection&& value) { m_trustDirectionHasBeenSet = true; m_trustDirection = value; }
200 
204  inline Trust& WithTrustDirection(const TrustDirection& value) { SetTrustDirection(value); return *this;}
205 
209  inline Trust& WithTrustDirection(TrustDirection&& value) { SetTrustDirection(value); return *this;}
210 
214  inline const TrustState& GetTrustState() const{ return m_trustState; }
215 
219  inline void SetTrustState(const TrustState& value) { m_trustStateHasBeenSet = true; m_trustState = value; }
220 
224  inline void SetTrustState(TrustState&& value) { m_trustStateHasBeenSet = true; m_trustState = value; }
225 
229  inline Trust& WithTrustState(const TrustState& value) { SetTrustState(value); return *this;}
230 
234  inline Trust& WithTrustState(TrustState&& value) { SetTrustState(value); return *this;}
235 
239  inline const Aws::Utils::DateTime& GetCreatedDateTime() const{ return m_createdDateTime; }
240 
244  inline void SetCreatedDateTime(const Aws::Utils::DateTime& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = value; }
245 
249  inline void SetCreatedDateTime(Aws::Utils::DateTime&& value) { m_createdDateTimeHasBeenSet = true; m_createdDateTime = value; }
250 
254  inline Trust& WithCreatedDateTime(const Aws::Utils::DateTime& value) { SetCreatedDateTime(value); return *this;}
255 
259  inline Trust& WithCreatedDateTime(Aws::Utils::DateTime&& value) { SetCreatedDateTime(value); return *this;}
260 
264  inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
265 
269  inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
270 
274  inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
275 
279  inline Trust& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;}
280 
284  inline Trust& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(value); return *this;}
285 
289  inline const Aws::Utils::DateTime& GetStateLastUpdatedDateTime() const{ return m_stateLastUpdatedDateTime; }
290 
294  inline void SetStateLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_stateLastUpdatedDateTimeHasBeenSet = true; m_stateLastUpdatedDateTime = value; }
295 
299  inline void SetStateLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_stateLastUpdatedDateTimeHasBeenSet = true; m_stateLastUpdatedDateTime = value; }
300 
304  inline Trust& WithStateLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetStateLastUpdatedDateTime(value); return *this;}
305 
309  inline Trust& WithStateLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetStateLastUpdatedDateTime(value); return *this;}
310 
314  inline const Aws::String& GetTrustStateReason() const{ return m_trustStateReason; }
315 
319  inline void SetTrustStateReason(const Aws::String& value) { m_trustStateReasonHasBeenSet = true; m_trustStateReason = value; }
320 
324  inline void SetTrustStateReason(Aws::String&& value) { m_trustStateReasonHasBeenSet = true; m_trustStateReason = value; }
325 
329  inline void SetTrustStateReason(const char* value) { m_trustStateReasonHasBeenSet = true; m_trustStateReason.assign(value); }
330 
334  inline Trust& WithTrustStateReason(const Aws::String& value) { SetTrustStateReason(value); return *this;}
335 
339  inline Trust& WithTrustStateReason(Aws::String&& value) { SetTrustStateReason(value); return *this;}
340 
344  inline Trust& WithTrustStateReason(const char* value) { SetTrustStateReason(value); return *this;}
345 
346  private:
347  Aws::String m_directoryId;
348  bool m_directoryIdHasBeenSet;
349  Aws::String m_trustId;
350  bool m_trustIdHasBeenSet;
351  Aws::String m_remoteDomainName;
352  bool m_remoteDomainNameHasBeenSet;
353  TrustType m_trustType;
354  bool m_trustTypeHasBeenSet;
355  TrustDirection m_trustDirection;
356  bool m_trustDirectionHasBeenSet;
357  TrustState m_trustState;
358  bool m_trustStateHasBeenSet;
359  Aws::Utils::DateTime m_createdDateTime;
360  bool m_createdDateTimeHasBeenSet;
361  Aws::Utils::DateTime m_lastUpdatedDateTime;
362  bool m_lastUpdatedDateTimeHasBeenSet;
363  Aws::Utils::DateTime m_stateLastUpdatedDateTime;
364  bool m_stateLastUpdatedDateTimeHasBeenSet;
365  Aws::String m_trustStateReason;
366  bool m_trustStateReasonHasBeenSet;
367  };
368 
369 } // namespace Model
370 } // namespace DirectoryService
371 } // namespace Aws
Trust & WithLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:279
Trust & WithTrustStateReason(Aws::String &&value)
Definition: Trust.h:339
Trust & WithTrustId(Aws::String &&value)
Definition: Trust.h:112
void SetTrustState(const TrustState &value)
Definition: Trust.h:219
Trust & WithTrustId(const char *value)
Definition: Trust.h:117
Trust & WithTrustState(TrustState &&value)
Definition: Trust.h:234
const Aws::String & GetTrustStateReason() const
Definition: Trust.h:314
void SetTrustType(const TrustType &value)
Definition: Trust.h:169
Trust & WithRemoteDomainName(Aws::String &&value)
Definition: Trust.h:153
Trust & WithDirectoryId(Aws::String &&value)
Definition: Trust.h:77
#define AWS_DIRECTORYSERVICE_API
const TrustState & GetTrustState() const
Definition: Trust.h:214
void SetStateLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:299
void SetStateLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:294
void SetTrustId(Aws::String &&value)
Definition: Trust.h:97
Trust & WithCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:259
void SetTrustId(const char *value)
Definition: Trust.h:102
Trust & WithTrustDirection(const TrustDirection &value)
Definition: Trust.h:204
Trust & WithDirectoryId(const Aws::String &value)
Definition: Trust.h:72
void SetTrustStateReason(Aws::String &&value)
Definition: Trust.h:324
const TrustDirection & GetTrustDirection() const
Definition: Trust.h:189
void SetRemoteDomainName(const char *value)
Definition: Trust.h:141
Trust & WithTrustStateReason(const char *value)
Definition: Trust.h:344
Trust & WithTrustState(const TrustState &value)
Definition: Trust.h:229
void SetDirectoryId(Aws::String &&value)
Definition: Trust.h:62
void SetDirectoryId(const char *value)
Definition: Trust.h:67
Trust & WithDirectoryId(const char *value)
Definition: Trust.h:82
void SetRemoteDomainName(Aws::String &&value)
Definition: Trust.h:135
Trust & WithTrustType(TrustType &&value)
Definition: Trust.h:184
void SetTrustState(TrustState &&value)
Definition: Trust.h:224
Trust & WithTrustType(const TrustType &value)
Definition: Trust.h:179
const Aws::Utils::DateTime & GetCreatedDateTime() const
Definition: Trust.h:239
void SetCreatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:249
void SetLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:269
const Aws::Utils::DateTime & GetStateLastUpdatedDateTime() const
Definition: Trust.h:289
const Aws::String & GetRemoteDomainName() const
Definition: Trust.h:123
const TrustType & GetTrustType() const
Definition: Trust.h:164
Trust & WithLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:284
const Aws::String & GetDirectoryId() const
Definition: Trust.h:52
Trust & WithStateLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:309
Trust & WithCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:254
const Aws::String & GetTrustId() const
Definition: Trust.h:87
void SetTrustStateReason(const char *value)
Definition: Trust.h:329
void SetCreatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:244
void SetTrustDirection(const TrustDirection &value)
Definition: Trust.h:194
void SetTrustId(const Aws::String &value)
Definition: Trust.h:92
Trust & WithRemoteDomainName(const Aws::String &value)
Definition: Trust.h:147
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetLastUpdatedDateTime(Aws::Utils::DateTime &&value)
Definition: Trust.h:274
Trust & WithTrustDirection(TrustDirection &&value)
Definition: Trust.h:209
Trust & WithTrustStateReason(const Aws::String &value)
Definition: Trust.h:334
void SetTrustType(TrustType &&value)
Definition: Trust.h:174
void SetRemoteDomainName(const Aws::String &value)
Definition: Trust.h:129
Trust & WithTrustId(const Aws::String &value)
Definition: Trust.h:107
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
Definition: Trust.h:264
void SetTrustStateReason(const Aws::String &value)
Definition: Trust.h:319
Trust & WithRemoteDomainName(const char *value)
Definition: Trust.h:159
Trust & WithStateLastUpdatedDateTime(const Aws::Utils::DateTime &value)
Definition: Trust.h:304
void SetDirectoryId(const Aws::String &value)
Definition: Trust.h:57
JSON (JavaScript Object Notation).
void SetTrustDirection(TrustDirection &&value)
Definition: Trust.h:199