AWS SDK for C++  0.12.9
AWS SDK for C++
CreateTrustRequest.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
20 #include <aws/ds/model/TrustType.h>
22 
23 namespace Aws
24 {
25 namespace DirectoryService
26 {
27 namespace Model
28 {
29 
40  {
41  public:
43  Aws::String SerializePayload() const override;
44 
45  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
46 
51  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
52 
57  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
58 
63  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
64 
69  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
70 
75  inline CreateTrustRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
76 
81  inline CreateTrustRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(value); return *this;}
82 
87  inline CreateTrustRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
88 
93  inline const Aws::String& GetRemoteDomainName() const{ return m_remoteDomainName; }
94 
99  inline void SetRemoteDomainName(const Aws::String& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
100 
105  inline void SetRemoteDomainName(Aws::String&& value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName = value; }
106 
111  inline void SetRemoteDomainName(const char* value) { m_remoteDomainNameHasBeenSet = true; m_remoteDomainName.assign(value); }
112 
117  inline CreateTrustRequest& WithRemoteDomainName(const Aws::String& value) { SetRemoteDomainName(value); return *this;}
118 
123  inline CreateTrustRequest& WithRemoteDomainName(Aws::String&& value) { SetRemoteDomainName(value); return *this;}
124 
129  inline CreateTrustRequest& WithRemoteDomainName(const char* value) { SetRemoteDomainName(value); return *this;}
130 
135  inline const Aws::String& GetTrustPassword() const{ return m_trustPassword; }
136 
141  inline void SetTrustPassword(const Aws::String& value) { m_trustPasswordHasBeenSet = true; m_trustPassword = value; }
142 
147  inline void SetTrustPassword(Aws::String&& value) { m_trustPasswordHasBeenSet = true; m_trustPassword = value; }
148 
153  inline void SetTrustPassword(const char* value) { m_trustPasswordHasBeenSet = true; m_trustPassword.assign(value); }
154 
159  inline CreateTrustRequest& WithTrustPassword(const Aws::String& value) { SetTrustPassword(value); return *this;}
160 
165  inline CreateTrustRequest& WithTrustPassword(Aws::String&& value) { SetTrustPassword(value); return *this;}
166 
171  inline CreateTrustRequest& WithTrustPassword(const char* value) { SetTrustPassword(value); return *this;}
172 
176  inline const TrustDirection& GetTrustDirection() const{ return m_trustDirection; }
177 
181  inline void SetTrustDirection(const TrustDirection& value) { m_trustDirectionHasBeenSet = true; m_trustDirection = value; }
182 
186  inline void SetTrustDirection(TrustDirection&& value) { m_trustDirectionHasBeenSet = true; m_trustDirection = value; }
187 
191  inline CreateTrustRequest& WithTrustDirection(const TrustDirection& value) { SetTrustDirection(value); return *this;}
192 
196  inline CreateTrustRequest& WithTrustDirection(TrustDirection&& value) { SetTrustDirection(value); return *this;}
197 
201  inline const TrustType& GetTrustType() const{ return m_trustType; }
202 
206  inline void SetTrustType(const TrustType& value) { m_trustTypeHasBeenSet = true; m_trustType = value; }
207 
211  inline void SetTrustType(TrustType&& value) { m_trustTypeHasBeenSet = true; m_trustType = value; }
212 
216  inline CreateTrustRequest& WithTrustType(const TrustType& value) { SetTrustType(value); return *this;}
217 
221  inline CreateTrustRequest& WithTrustType(TrustType&& value) { SetTrustType(value); return *this;}
222 
223 
224  inline const Aws::Vector<Aws::String>& GetConditionalForwarderIpAddrs() const{ return m_conditionalForwarderIpAddrs; }
225 
226 
227  inline void SetConditionalForwarderIpAddrs(const Aws::Vector<Aws::String>& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs = value; }
228 
229 
230  inline void SetConditionalForwarderIpAddrs(Aws::Vector<Aws::String>&& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs = value; }
231 
232 
233  inline CreateTrustRequest& WithConditionalForwarderIpAddrs(const Aws::Vector<Aws::String>& value) { SetConditionalForwarderIpAddrs(value); return *this;}
234 
235 
236  inline CreateTrustRequest& WithConditionalForwarderIpAddrs(Aws::Vector<Aws::String>&& value) { SetConditionalForwarderIpAddrs(value); return *this;}
237 
238 
239  inline CreateTrustRequest& AddConditionalForwarderIpAddrs(const Aws::String& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs.push_back(value); return *this; }
240 
241 
242  inline CreateTrustRequest& AddConditionalForwarderIpAddrs(Aws::String&& value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs.push_back(value); return *this; }
243 
244 
245  inline CreateTrustRequest& AddConditionalForwarderIpAddrs(const char* value) { m_conditionalForwarderIpAddrsHasBeenSet = true; m_conditionalForwarderIpAddrs.push_back(value); return *this; }
246 
247  private:
248  Aws::String m_directoryId;
249  bool m_directoryIdHasBeenSet;
250  Aws::String m_remoteDomainName;
251  bool m_remoteDomainNameHasBeenSet;
252  Aws::String m_trustPassword;
253  bool m_trustPasswordHasBeenSet;
254  TrustDirection m_trustDirection;
255  bool m_trustDirectionHasBeenSet;
256  TrustType m_trustType;
257  bool m_trustTypeHasBeenSet;
258  Aws::Vector<Aws::String> m_conditionalForwarderIpAddrs;
259  bool m_conditionalForwarderIpAddrsHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace DirectoryService
264 } // namespace Aws
void SetRemoteDomainName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetConditionalForwarderIpAddrs() const
CreateTrustRequest & WithConditionalForwarderIpAddrs(Aws::Vector< Aws::String > &&value)
CreateTrustRequest & WithTrustPassword(const Aws::String &value)
#define AWS_DIRECTORYSERVICE_API
void SetTrustDirection(const TrustDirection &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetConditionalForwarderIpAddrs(const Aws::Vector< Aws::String > &value)
CreateTrustRequest & AddConditionalForwarderIpAddrs(Aws::String &&value)
CreateTrustRequest & WithDirectoryId(Aws::String &&value)
const TrustDirection & GetTrustDirection() const
CreateTrustRequest & AddConditionalForwarderIpAddrs(const Aws::String &value)
CreateTrustRequest & WithTrustPassword(const char *value)
CreateTrustRequest & WithTrustType(const TrustType &value)
CreateTrustRequest & WithRemoteDomainName(Aws::String &&value)
CreateTrustRequest & WithTrustDirection(const TrustDirection &value)
CreateTrustRequest & WithDirectoryId(const Aws::String &value)
CreateTrustRequest & WithTrustPassword(Aws::String &&value)
CreateTrustRequest & WithRemoteDomainName(const char *value)
CreateTrustRequest & WithConditionalForwarderIpAddrs(const Aws::Vector< Aws::String > &value)
void SetConditionalForwarderIpAddrs(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTrustRequest & WithRemoteDomainName(const Aws::String &value)
CreateTrustRequest & WithTrustDirection(TrustDirection &&value)
CreateTrustRequest & WithTrustType(TrustType &&value)
CreateTrustRequest & WithDirectoryId(const char *value)
JSON (JavaScript Object Notation).
CreateTrustRequest & AddConditionalForwarderIpAddrs(const char *value)