AWS SDK for C++  1.8.152
AWS SDK for C++
CreateTrustRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/ds/model/TrustType.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace DirectoryService
19 {
20 namespace Model
21 {
22 
35  {
36  public:
38 
39  // Service request name is the Operation name which will send this request out,
40  // each operation should has unique request name, so that we can get operation's name from this request.
41  // Note: this is not true for response, multiple operations may have the same response name,
42  // so we can not get operation's name from response.
43  inline virtual const char* GetServiceRequestName() const override { return "CreateTrust"; }
44 
45  Aws::String SerializePayload() const override;
46 
48 
49 
54  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
55 
60  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
61 
66  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
67 
72  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
73 
78  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
79 
84  inline CreateTrustRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
85 
90  inline CreateTrustRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
91 
96  inline CreateTrustRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
97 
98 
103  inline const Aws::String& GetRemoteDomainName() const{ return m_remoteDomainName; }
104 
109  inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; }
110 
115  inline void SetRemoteDomainName(const Aws::String& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
116 
121  inline void SetRemoteDomainName(Aws::String&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = std::move(value); }
122 
127  inline void SetRemoteDomainName(const char* value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName.assign(value); }
128 
133  inline CreateTrustRequest& WithRemoteDomainName(const Aws::String& value) { SetRemoteDomainName(value); return *this;}
134 
139  inline CreateTrustRequest& WithRemoteDomainName(Aws::String&& value) { SetRemoteDomainName(std::move(value)); return *this;}
140 
145  inline CreateTrustRequest& WithRemoteDomainName(const char* value) { SetRemoteDomainName(value); return *this;}
146 
147 
152  inline const Aws::String& GetTrustPassword() const{ return m_trustPassword; }
153 
158  inline bool TrustPasswordHasBeenSet() const { return m_trustPasswordHasBeenSet; }
159 
164  inline void SetTrustPassword(const Aws::String& value) { m_trustPasswordHasBeenSet = true; m_trustPassword = value; }
165 
170  inline void SetTrustPassword(Aws::String&& value) { m_trustPasswordHasBeenSet = true; m_trustPassword = std::move(value); }
171 
176  inline void SetTrustPassword(const char* value) { m_trustPasswordHasBeenSet = true; m_trustPassword.assign(value); }
177 
182  inline CreateTrustRequest& WithTrustPassword(const Aws::String& value) { SetTrustPassword(value); return *this;}
183 
188  inline CreateTrustRequest& WithTrustPassword(Aws::String&& value) { SetTrustPassword(std::move(value)); return *this;}
189 
194  inline CreateTrustRequest& WithTrustPassword(const char* value) { SetTrustPassword(value); return *this;}
195 
196 
200  inline const TrustDirection& GetTrustDirection() const{ return m_trustDirection; }
201 
205  inline bool TrustDirectionHasBeenSet() const { return m_trustDirectionHasBeenSet; }
206 
210  inline void SetTrustDirection(const TrustDirection& value) { m_trustDirectionHasBeenSet = true; m_trustDirection = value; }
211 
215  inline void SetTrustDirection(TrustDirection&& value) { m_trustDirectionHasBeenSet = true; m_trustDirection = std::move(value); }
216 
220  inline CreateTrustRequest& WithTrustDirection(const TrustDirection& value) { SetTrustDirection(value); return *this;}
221 
225  inline CreateTrustRequest& WithTrustDirection(TrustDirection&& value) { SetTrustDirection(std::move(value)); return *this;}
226 
227 
231  inline const TrustType& GetTrustType() const{ return m_trustType; }
232 
236  inline bool TrustTypeHasBeenSet() const { return m_trustTypeHasBeenSet; }
237 
241  inline void SetTrustType(const TrustType& value) { m_trustTypeHasBeenSet = true; m_trustType = value; }
242 
246  inline void SetTrustType(TrustType&& value) { m_trustTypeHasBeenSet = true; m_trustType = std::move(value); }
247 
251  inline CreateTrustRequest& WithTrustType(const TrustType& value) { SetTrustType(value); return *this;}
252 
256  inline CreateTrustRequest& WithTrustType(TrustType&& value) { SetTrustType(std::move(value)); return *this;}
257 
258 
263  inline const Aws::Vector<Aws::String>& GetConditionalForwarderIpAddrs() const{ return m_conditionalForwarderIpAddrs; }
264 
269  inline bool ConditionalForwarderIpAddrsHasBeenSet() const { return m_conditionalForwarderIpAddrsHasBeenSet; }
270 
275  inline void SetConditionalForwarderIpAddrs(const Aws::Vector<Aws::String>& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs = value; }
276 
281  inline void SetConditionalForwarderIpAddrs(Aws::Vector<Aws::String>&& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs = std::move(value); }
282 
287  inline CreateTrustRequest& WithConditionalForwarderIpAddrs(const Aws::Vector<Aws::String>& value) { SetConditionalForwarderIpAddrs(value); return *this;}
288 
293  inline CreateTrustRequest& WithConditionalForwarderIpAddrs(Aws::Vector<Aws::String>&& value) { SetConditionalForwarderIpAddrs(std::move(value)); return *this;}
294 
299  inline CreateTrustRequest& AddConditionalForwarderIpAddrs(const Aws::String& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs.push_back(value); return *this; }
300 
305  inline CreateTrustRequest& AddConditionalForwarderIpAddrs(Aws::String&& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs.push_back(std::move(value)); return *this; }
306 
311  inline CreateTrustRequest& AddConditionalForwarderIpAddrs(const char* value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs.push_back(value); return *this; }
312 
313 
317  inline const SelectiveAuth& GetSelectiveAuth() const{ return m_selectiveAuth; }
318 
322  inline bool SelectiveAuthHasBeenSet() const { return m_selectiveAuthHasBeenSet; }
323 
327  inline void SetSelectiveAuth(const SelectiveAuth& value) { m_selectiveAuthHasBeenSet = true; m_selectiveAuth = value; }
328 
332  inline void SetSelectiveAuth(SelectiveAuth&& value) { m_selectiveAuthHasBeenSet = true; m_selectiveAuth = std::move(value); }
333 
337  inline CreateTrustRequest& WithSelectiveAuth(const SelectiveAuth& value) { SetSelectiveAuth(value); return *this;}
338 
342  inline CreateTrustRequest& WithSelectiveAuth(SelectiveAuth&& value) { SetSelectiveAuth(std::move(value)); return *this;}
343 
344  private:
345 
346  Aws::String m_directoryId;
347  bool m_directoryIdHasBeenSet;
348 
349  Aws::String m_remoteDomainName;
350  bool m_remoteDomainNameHasBeenSet;
351 
352  Aws::String m_trustPassword;
353  bool m_trustPasswordHasBeenSet;
354 
355  TrustDirection m_trustDirection;
356  bool m_trustDirectionHasBeenSet;
357 
358  TrustType m_trustType;
359  bool m_trustTypeHasBeenSet;
360 
361  Aws::Vector<Aws::String> m_conditionalForwarderIpAddrs;
362  bool m_conditionalForwarderIpAddrsHasBeenSet;
363 
364  SelectiveAuth m_selectiveAuth;
365  bool m_selectiveAuthHasBeenSet;
366  };
367 
368 } // namespace Model
369 } // namespace DirectoryService
370 } // namespace Aws
Aws::DirectoryService::Model::CreateTrustRequest::SetConditionalForwarderIpAddrs
void SetConditionalForwarderIpAddrs(const Aws::Vector< Aws::String > &value)
Definition: CreateTrustRequest.h:275
Aws::DirectoryService::Model::CreateTrustRequest::AddConditionalForwarderIpAddrs
CreateTrustRequest & AddConditionalForwarderIpAddrs(Aws::String &&value)
Definition: CreateTrustRequest.h:305
Aws::DirectoryService::Model::CreateTrustRequest::WithTrustPassword
CreateTrustRequest & WithTrustPassword(const Aws::String &value)
Definition: CreateTrustRequest.h:182
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::CreateTrustRequest::SetSelectiveAuth
void SetSelectiveAuth(SelectiveAuth &&value)
Definition: CreateTrustRequest.h:332
Aws::DirectoryService::Model::CreateTrustRequest::AddConditionalForwarderIpAddrs
CreateTrustRequest & AddConditionalForwarderIpAddrs(const Aws::String &value)
Definition: CreateTrustRequest.h:299
Aws::DirectoryService::Model::CreateTrustRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: CreateTrustRequest.h:60
Aws::DirectoryService::Model::CreateTrustRequest::SetRemoteDomainName
void SetRemoteDomainName(Aws::String &&value)
Definition: CreateTrustRequest.h:121
Aws::DirectoryService::Model::CreateTrustRequest::GetTrustType
const TrustType & GetTrustType() const
Definition: CreateTrustRequest.h:231
Aws::DirectoryService::Model::CreateTrustRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::CreateTrustRequest::GetSelectiveAuth
const SelectiveAuth & GetSelectiveAuth() const
Definition: CreateTrustRequest.h:317
Aws::DirectoryService::Model::CreateTrustRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::CreateTrustRequest::WithSelectiveAuth
CreateTrustRequest & WithSelectiveAuth(const SelectiveAuth &value)
Definition: CreateTrustRequest.h:337
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::CreateTrustRequest::TrustDirectionHasBeenSet
bool TrustDirectionHasBeenSet() const
Definition: CreateTrustRequest.h:205
Aws::DirectoryService::Model::CreateTrustRequest::AddConditionalForwarderIpAddrs
CreateTrustRequest & AddConditionalForwarderIpAddrs(const char *value)
Definition: CreateTrustRequest.h:311
Aws::DirectoryService::Model::CreateTrustRequest::GetRemoteDomainName
const Aws::String & GetRemoteDomainName() const
Definition: CreateTrustRequest.h:103
Aws::DirectoryService::Model::CreateTrustRequest::WithDirectoryId
CreateTrustRequest & WithDirectoryId(const char *value)
Definition: CreateTrustRequest.h:96
Aws::DirectoryService::Model::CreateTrustRequest::WithDirectoryId
CreateTrustRequest & WithDirectoryId(const Aws::String &value)
Definition: CreateTrustRequest.h:84
AWSVector.h
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::CreateTrustRequest::SetTrustPassword
void SetTrustPassword(Aws::String &&value)
Definition: CreateTrustRequest.h:170
Aws::DirectoryService::Model::CreateTrustRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: CreateTrustRequest.h:54
Aws::DirectoryService::Model::CreateTrustRequest::WithConditionalForwarderIpAddrs
CreateTrustRequest & WithConditionalForwarderIpAddrs(const Aws::Vector< Aws::String > &value)
Definition: CreateTrustRequest.h:287
Aws::DirectoryService::Model::CreateTrustRequest::WithRemoteDomainName
CreateTrustRequest & WithRemoteDomainName(const char *value)
Definition: CreateTrustRequest.h:145
Aws::DirectoryService::Model::CreateTrustRequest::GetTrustPassword
const Aws::String & GetTrustPassword() const
Definition: CreateTrustRequest.h:152
Aws::DirectoryService::Model::CreateTrustRequest::GetTrustDirection
const TrustDirection & GetTrustDirection() const
Definition: CreateTrustRequest.h:200
Aws::DirectoryService::Model::CreateTrustRequest::WithDirectoryId
CreateTrustRequest & WithDirectoryId(Aws::String &&value)
Definition: CreateTrustRequest.h:90
Aws::DirectoryService::Model::CreateTrustRequest::SetSelectiveAuth
void SetSelectiveAuth(const SelectiveAuth &value)
Definition: CreateTrustRequest.h:327
Aws::DirectoryService::Model::CreateTrustRequest::WithRemoteDomainName
CreateTrustRequest & WithRemoteDomainName(const Aws::String &value)
Definition: CreateTrustRequest.h:133
Aws::DirectoryService::Model::CreateTrustRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: CreateTrustRequest.h:72
Aws::DirectoryService::Model::CreateTrustRequest::SelectiveAuthHasBeenSet
bool SelectiveAuthHasBeenSet() const
Definition: CreateTrustRequest.h:322
Aws::DirectoryService::Model::CreateTrustRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: CreateTrustRequest.h:66
Aws::DirectoryService::Model::CreateTrustRequest::TrustTypeHasBeenSet
bool TrustTypeHasBeenSet() const
Definition: CreateTrustRequest.h:236
Aws::DirectoryService::Model::TrustDirection
TrustDirection
Definition: TrustDirection.h:17
Aws::DirectoryService::Model::CreateTrustRequest::WithTrustPassword
CreateTrustRequest & WithTrustPassword(Aws::String &&value)
Definition: CreateTrustRequest.h:188
AWSString.h
Aws::DirectoryService::Model::CreateTrustRequest::WithRemoteDomainName
CreateTrustRequest & WithRemoteDomainName(Aws::String &&value)
Definition: CreateTrustRequest.h:139
SelectiveAuth.h
Aws::DirectoryService::Model::SelectiveAuth
SelectiveAuth
Definition: SelectiveAuth.h:17
Aws::DirectoryService::Model::CreateTrustRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTrustRequest.h:43
Aws::DirectoryService::Model::CreateTrustRequest
Definition: CreateTrustRequest.h:35
Aws::DirectoryService::Model::CreateTrustRequest::CreateTrustRequest
CreateTrustRequest()
Aws::DirectoryService::Model::CreateTrustRequest::WithSelectiveAuth
CreateTrustRequest & WithSelectiveAuth(SelectiveAuth &&value)
Definition: CreateTrustRequest.h:342
Aws::DirectoryService::Model::CreateTrustRequest::SetTrustPassword
void SetTrustPassword(const Aws::String &value)
Definition: CreateTrustRequest.h:164
Aws::DirectoryService::Model::CreateTrustRequest::GetConditionalForwarderIpAddrs
const Aws::Vector< Aws::String > & GetConditionalForwarderIpAddrs() const
Definition: CreateTrustRequest.h:263
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::CreateTrustRequest::WithTrustType
CreateTrustRequest & WithTrustType(const TrustType &value)
Definition: CreateTrustRequest.h:251
Aws::DirectoryService::Model::CreateTrustRequest::SetRemoteDomainName
void SetRemoteDomainName(const Aws::String &value)
Definition: CreateTrustRequest.h:115
Aws::DirectoryService::Model::CreateTrustRequest::SetTrustPassword
void SetTrustPassword(const char *value)
Definition: CreateTrustRequest.h:176
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::CreateTrustRequest::SetConditionalForwarderIpAddrs
void SetConditionalForwarderIpAddrs(Aws::Vector< Aws::String > &&value)
Definition: CreateTrustRequest.h:281
Aws::DirectoryService::Model::TrustType
TrustType
Definition: TrustType.h:17
Aws::DirectoryService::Model::CreateTrustRequest::TrustPasswordHasBeenSet
bool TrustPasswordHasBeenSet() const
Definition: CreateTrustRequest.h:158
TrustType.h
Aws::DirectoryService::Model::CreateTrustRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: CreateTrustRequest.h:78
Aws::DirectoryService::Model::CreateTrustRequest::ConditionalForwarderIpAddrsHasBeenSet
bool ConditionalForwarderIpAddrsHasBeenSet() const
Definition: CreateTrustRequest.h:269
Aws::DirectoryService::Model::CreateTrustRequest::SetRemoteDomainName
void SetRemoteDomainName(const char *value)
Definition: CreateTrustRequest.h:127
TrustDirection.h
Aws::DirectoryService::Model::CreateTrustRequest::RemoteDomainNameHasBeenSet
bool RemoteDomainNameHasBeenSet() const
Definition: CreateTrustRequest.h:109
Aws::DirectoryService::Model::CreateTrustRequest::SetTrustType
void SetTrustType(const TrustType &value)
Definition: CreateTrustRequest.h:241
DirectoryServiceRequest.h
Aws::DirectoryService::Model::CreateTrustRequest::WithTrustPassword
CreateTrustRequest & WithTrustPassword(const char *value)
Definition: CreateTrustRequest.h:194
Aws::DirectoryService::Model::CreateTrustRequest::SetTrustDirection
void SetTrustDirection(const TrustDirection &value)
Definition: CreateTrustRequest.h:210
Aws::DirectoryService::Model::CreateTrustRequest::WithTrustDirection
CreateTrustRequest & WithTrustDirection(TrustDirection &&value)
Definition: CreateTrustRequest.h:225
Aws::DirectoryService::Model::CreateTrustRequest::SetTrustType
void SetTrustType(TrustType &&value)
Definition: CreateTrustRequest.h:246
Aws::DirectoryService::Model::CreateTrustRequest::WithTrustType
CreateTrustRequest & WithTrustType(TrustType &&value)
Definition: CreateTrustRequest.h:256
Aws::DirectoryService::Model::CreateTrustRequest::SetTrustDirection
void SetTrustDirection(TrustDirection &&value)
Definition: CreateTrustRequest.h:215
Aws::DirectoryService::Model::CreateTrustRequest::WithConditionalForwarderIpAddrs
CreateTrustRequest & WithConditionalForwarderIpAddrs(Aws::Vector< Aws::String > &&value)
Definition: CreateTrustRequest.h:293
Aws::DirectoryService::Model::CreateTrustRequest::WithTrustDirection
CreateTrustRequest & WithTrustDirection(const TrustDirection &value)
Definition: CreateTrustRequest.h:220