AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTrustRequest.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ds/model/TrustDirection.h>
11#include <aws/ds/model/TrustType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ds/model/SelectiveAuth.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DirectoryService
19{
20namespace Model
21{
22
36 {
37 public:
38 AWS_DIRECTORYSERVICE_API CreateTrustRequest() = default;
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "CreateTrust"; }
45
46 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
47
48 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
49
50
52
56 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
57 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
58 template<typename DirectoryIdT = Aws::String>
59 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
60 template<typename DirectoryIdT = Aws::String>
61 CreateTrustRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
63
65
69 inline const Aws::String& GetRemoteDomainName() const { return m_remoteDomainName; }
70 inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; }
71 template<typename RemoteDomainNameT = Aws::String>
72 void SetRemoteDomainName(RemoteDomainNameT&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = std::forward<RemoteDomainNameT>(value); }
73 template<typename RemoteDomainNameT = Aws::String>
74 CreateTrustRequest& WithRemoteDomainName(RemoteDomainNameT&& value) { SetRemoteDomainName(std::forward<RemoteDomainNameT>(value)); return *this;}
76
78
82 inline const Aws::String& GetTrustPassword() const { return m_trustPassword; }
83 inline bool TrustPasswordHasBeenSet() const { return m_trustPasswordHasBeenSet; }
84 template<typename TrustPasswordT = Aws::String>
85 void SetTrustPassword(TrustPasswordT&& value) { m_trustPasswordHasBeenSet = true; m_trustPassword = std::forward<TrustPasswordT>(value); }
86 template<typename TrustPasswordT = Aws::String>
87 CreateTrustRequest& WithTrustPassword(TrustPasswordT&& value) { SetTrustPassword(std::forward<TrustPasswordT>(value)); return *this;}
89
91
94 inline TrustDirection GetTrustDirection() const { return m_trustDirection; }
95 inline bool TrustDirectionHasBeenSet() const { return m_trustDirectionHasBeenSet; }
96 inline void SetTrustDirection(TrustDirection value) { m_trustDirectionHasBeenSet = true; m_trustDirection = value; }
99
101
104 inline TrustType GetTrustType() const { return m_trustType; }
105 inline bool TrustTypeHasBeenSet() const { return m_trustTypeHasBeenSet; }
106 inline void SetTrustType(TrustType value) { m_trustTypeHasBeenSet = true; m_trustType = value; }
107 inline CreateTrustRequest& WithTrustType(TrustType value) { SetTrustType(value); return *this;}
109
111
115 inline const Aws::Vector<Aws::String>& GetConditionalForwarderIpAddrs() const { return m_conditionalForwarderIpAddrs; }
116 inline bool ConditionalForwarderIpAddrsHasBeenSet() const { return m_conditionalForwarderIpAddrsHasBeenSet; }
117 template<typename ConditionalForwarderIpAddrsT = Aws::Vector<Aws::String>>
118 void SetConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT&& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs = std::forward<ConditionalForwarderIpAddrsT>(value); }
119 template<typename ConditionalForwarderIpAddrsT = Aws::Vector<Aws::String>>
120 CreateTrustRequest& WithConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT&& value) { SetConditionalForwarderIpAddrs(std::forward<ConditionalForwarderIpAddrsT>(value)); return *this;}
121 template<typename ConditionalForwarderIpAddrsT = Aws::String>
122 CreateTrustRequest& AddConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT&& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs.emplace_back(std::forward<ConditionalForwarderIpAddrsT>(value)); return *this; }
124
126
129 inline SelectiveAuth GetSelectiveAuth() const { return m_selectiveAuth; }
130 inline bool SelectiveAuthHasBeenSet() const { return m_selectiveAuthHasBeenSet; }
131 inline void SetSelectiveAuth(SelectiveAuth value) { m_selectiveAuthHasBeenSet = true; m_selectiveAuth = value; }
134 private:
135
136 Aws::String m_directoryId;
137 bool m_directoryIdHasBeenSet = false;
138
139 Aws::String m_remoteDomainName;
140 bool m_remoteDomainNameHasBeenSet = false;
141
142 Aws::String m_trustPassword;
143 bool m_trustPasswordHasBeenSet = false;
144
145 TrustDirection m_trustDirection{TrustDirection::NOT_SET};
146 bool m_trustDirectionHasBeenSet = false;
147
148 TrustType m_trustType{TrustType::NOT_SET};
149 bool m_trustTypeHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_conditionalForwarderIpAddrs;
152 bool m_conditionalForwarderIpAddrsHasBeenSet = false;
153
154 SelectiveAuth m_selectiveAuth{SelectiveAuth::NOT_SET};
155 bool m_selectiveAuthHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace DirectoryService
160} // namespace Aws
void SetRemoteDomainName(RemoteDomainNameT &&value)
CreateTrustRequest & WithTrustDirection(TrustDirection value)
void SetConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT &&value)
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrustRequest & WithTrustType(TrustType value)
const Aws::Vector< Aws::String > & GetConditionalForwarderIpAddrs() const
CreateTrustRequest & WithRemoteDomainName(RemoteDomainNameT &&value)
CreateTrustRequest & WithDirectoryId(DirectoryIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateTrustRequest & WithConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT &&value)
AWS_DIRECTORYSERVICE_API CreateTrustRequest()=default
CreateTrustRequest & AddConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT &&value)
CreateTrustRequest & WithTrustPassword(TrustPasswordT &&value)
CreateTrustRequest & WithSelectiveAuth(SelectiveAuth value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector