AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CreateTrustRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ds/DirectoryServiceRequest.h>
10#include <aws/ds/DirectoryService_EXPORTS.h>
11#include <aws/ds/model/SelectiveAuth.h>
12#include <aws/ds/model/TrustDirection.h>
13#include <aws/ds/model/TrustType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DirectoryService {
19namespace Model {
20
34 public:
35 AWS_DIRECTORYSERVICE_API CreateTrustRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateTrust"; }
42
43 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
44
45 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
46
48
52 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
53 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
54 template <typename DirectoryIdT = Aws::String>
55 void SetDirectoryId(DirectoryIdT&& value) {
56 m_directoryIdHasBeenSet = true;
57 m_directoryId = std::forward<DirectoryIdT>(value);
58 }
59 template <typename DirectoryIdT = Aws::String>
60 CreateTrustRequest& WithDirectoryId(DirectoryIdT&& value) {
61 SetDirectoryId(std::forward<DirectoryIdT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetRemoteDomainName() const { return m_remoteDomainName; }
72 inline bool RemoteDomainNameHasBeenSet() const { return m_remoteDomainNameHasBeenSet; }
73 template <typename RemoteDomainNameT = Aws::String>
74 void SetRemoteDomainName(RemoteDomainNameT&& value) {
75 m_remoteDomainNameHasBeenSet = true;
76 m_remoteDomainName = std::forward<RemoteDomainNameT>(value);
77 }
78 template <typename RemoteDomainNameT = Aws::String>
79 CreateTrustRequest& WithRemoteDomainName(RemoteDomainNameT&& value) {
80 SetRemoteDomainName(std::forward<RemoteDomainNameT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetTrustPassword() const { return m_trustPassword; }
91 inline bool TrustPasswordHasBeenSet() const { return m_trustPasswordHasBeenSet; }
92 template <typename TrustPasswordT = Aws::String>
93 void SetTrustPassword(TrustPasswordT&& value) {
94 m_trustPasswordHasBeenSet = true;
95 m_trustPassword = std::forward<TrustPasswordT>(value);
96 }
97 template <typename TrustPasswordT = Aws::String>
98 CreateTrustRequest& WithTrustPassword(TrustPasswordT&& value) {
99 SetTrustPassword(std::forward<TrustPasswordT>(value));
100 return *this;
101 }
103
105
108 inline TrustDirection GetTrustDirection() const { return m_trustDirection; }
109 inline bool TrustDirectionHasBeenSet() const { return m_trustDirectionHasBeenSet; }
111 m_trustDirectionHasBeenSet = true;
112 m_trustDirection = value;
113 }
115 SetTrustDirection(value);
116 return *this;
117 }
119
121
124 inline TrustType GetTrustType() const { return m_trustType; }
125 inline bool TrustTypeHasBeenSet() const { return m_trustTypeHasBeenSet; }
126 inline void SetTrustType(TrustType value) {
127 m_trustTypeHasBeenSet = true;
128 m_trustType = value;
129 }
131 SetTrustType(value);
132 return *this;
133 }
135
137
141 inline const Aws::Vector<Aws::String>& GetConditionalForwarderIpAddrs() const { return m_conditionalForwarderIpAddrs; }
142 inline bool ConditionalForwarderIpAddrsHasBeenSet() const { return m_conditionalForwarderIpAddrsHasBeenSet; }
143 template <typename ConditionalForwarderIpAddrsT = Aws::Vector<Aws::String>>
144 void SetConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT&& value) {
145 m_conditionalForwarderIpAddrsHasBeenSet = true;
146 m_conditionalForwarderIpAddrs = std::forward<ConditionalForwarderIpAddrsT>(value);
147 }
148 template <typename ConditionalForwarderIpAddrsT = Aws::Vector<Aws::String>>
149 CreateTrustRequest& WithConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT&& value) {
150 SetConditionalForwarderIpAddrs(std::forward<ConditionalForwarderIpAddrsT>(value));
151 return *this;
152 }
153 template <typename ConditionalForwarderIpAddrsT = Aws::String>
154 CreateTrustRequest& AddConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT&& value) {
155 m_conditionalForwarderIpAddrsHasBeenSet = true;
156 m_conditionalForwarderIpAddrs.emplace_back(std::forward<ConditionalForwarderIpAddrsT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Vector<Aws::String>& GetConditionalForwarderIpv6Addrs() const { return m_conditionalForwarderIpv6Addrs; }
167 inline bool ConditionalForwarderIpv6AddrsHasBeenSet() const { return m_conditionalForwarderIpv6AddrsHasBeenSet; }
168 template <typename ConditionalForwarderIpv6AddrsT = Aws::Vector<Aws::String>>
169 void SetConditionalForwarderIpv6Addrs(ConditionalForwarderIpv6AddrsT&& value) {
170 m_conditionalForwarderIpv6AddrsHasBeenSet = true;
171 m_conditionalForwarderIpv6Addrs = std::forward<ConditionalForwarderIpv6AddrsT>(value);
172 }
173 template <typename ConditionalForwarderIpv6AddrsT = Aws::Vector<Aws::String>>
174 CreateTrustRequest& WithConditionalForwarderIpv6Addrs(ConditionalForwarderIpv6AddrsT&& value) {
175 SetConditionalForwarderIpv6Addrs(std::forward<ConditionalForwarderIpv6AddrsT>(value));
176 return *this;
177 }
178 template <typename ConditionalForwarderIpv6AddrsT = Aws::String>
179 CreateTrustRequest& AddConditionalForwarderIpv6Addrs(ConditionalForwarderIpv6AddrsT&& value) {
180 m_conditionalForwarderIpv6AddrsHasBeenSet = true;
181 m_conditionalForwarderIpv6Addrs.emplace_back(std::forward<ConditionalForwarderIpv6AddrsT>(value));
182 return *this;
183 }
185
187
190 inline SelectiveAuth GetSelectiveAuth() const { return m_selectiveAuth; }
191 inline bool SelectiveAuthHasBeenSet() const { return m_selectiveAuthHasBeenSet; }
192 inline void SetSelectiveAuth(SelectiveAuth value) {
193 m_selectiveAuthHasBeenSet = true;
194 m_selectiveAuth = value;
195 }
197 SetSelectiveAuth(value);
198 return *this;
199 }
201 private:
202 Aws::String m_directoryId;
203
204 Aws::String m_remoteDomainName;
205
206 Aws::String m_trustPassword;
207
208 TrustDirection m_trustDirection{TrustDirection::NOT_SET};
209
210 TrustType m_trustType{TrustType::NOT_SET};
211
212 Aws::Vector<Aws::String> m_conditionalForwarderIpAddrs;
213
214 Aws::Vector<Aws::String> m_conditionalForwarderIpv6Addrs;
215
216 SelectiveAuth m_selectiveAuth{SelectiveAuth::NOT_SET};
217 bool m_directoryIdHasBeenSet = false;
218 bool m_remoteDomainNameHasBeenSet = false;
219 bool m_trustPasswordHasBeenSet = false;
220 bool m_trustDirectionHasBeenSet = false;
221 bool m_trustTypeHasBeenSet = false;
222 bool m_conditionalForwarderIpAddrsHasBeenSet = false;
223 bool m_conditionalForwarderIpv6AddrsHasBeenSet = false;
224 bool m_selectiveAuthHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace DirectoryService
229} // namespace Aws
void SetRemoteDomainName(RemoteDomainNameT &&value)
CreateTrustRequest & WithTrustDirection(TrustDirection value)
void SetConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT &&value)
CreateTrustRequest & AddConditionalForwarderIpv6Addrs(ConditionalForwarderIpv6AddrsT &&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)
void SetConditionalForwarderIpv6Addrs(ConditionalForwarderIpv6AddrsT &&value)
CreateTrustRequest & WithDirectoryId(DirectoryIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateTrustRequest & WithConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT &&value)
AWS_DIRECTORYSERVICE_API CreateTrustRequest()=default
CreateTrustRequest & WithConditionalForwarderIpv6Addrs(ConditionalForwarderIpv6AddrsT &&value)
CreateTrustRequest & AddConditionalForwarderIpAddrs(ConditionalForwarderIpAddrsT &&value)
CreateTrustRequest & WithTrustPassword(TrustPasswordT &&value)
CreateTrustRequest & WithSelectiveAuth(SelectiveAuth value)
const Aws::Vector< Aws::String > & GetConditionalForwarderIpv6Addrs() const
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