AWS SDK for C++  0.14.3
AWS SDK for C++
DirectoryConnectSettings.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DirectoryService
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  DirectoryConnectSettings& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
50 
54  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
55 
59  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
60 
64  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
65 
69  inline DirectoryConnectSettings& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
70 
74  inline DirectoryConnectSettings& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
75 
79  inline DirectoryConnectSettings& WithVpcId(const char* value) { SetVpcId(value); return *this;}
80 
85  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
86 
91  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
92 
97  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
98 
103  inline DirectoryConnectSettings& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
104 
109  inline DirectoryConnectSettings& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
110 
115  inline DirectoryConnectSettings& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
116 
121  inline DirectoryConnectSettings& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
122 
127  inline DirectoryConnectSettings& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
128 
133  inline const Aws::Vector<Aws::String>& GetCustomerDnsIps() const{ return m_customerDnsIps; }
134 
139  inline void SetCustomerDnsIps(const Aws::Vector<Aws::String>& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps = value; }
140 
145  inline void SetCustomerDnsIps(Aws::Vector<Aws::String>&& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps = value; }
146 
151  inline DirectoryConnectSettings& WithCustomerDnsIps(const Aws::Vector<Aws::String>& value) { SetCustomerDnsIps(value); return *this;}
152 
157  inline DirectoryConnectSettings& WithCustomerDnsIps(Aws::Vector<Aws::String>&& value) { SetCustomerDnsIps(value); return *this;}
158 
163  inline DirectoryConnectSettings& AddCustomerDnsIps(const Aws::String& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps.push_back(value); return *this; }
164 
169  inline DirectoryConnectSettings& AddCustomerDnsIps(Aws::String&& value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps.push_back(value); return *this; }
170 
175  inline DirectoryConnectSettings& AddCustomerDnsIps(const char* value) { m_customerDnsIpsHasBeenSet = true; m_customerDnsIps.push_back(value); return *this; }
176 
183  inline const Aws::String& GetCustomerUserName() const{ return m_customerUserName; }
184 
191  inline void SetCustomerUserName(const Aws::String& value) { m_customerUserNameHasBeenSet = true; m_customerUserName = value; }
192 
199  inline void SetCustomerUserName(Aws::String&& value) { m_customerUserNameHasBeenSet = true; m_customerUserName = value; }
200 
207  inline void SetCustomerUserName(const char* value) { m_customerUserNameHasBeenSet = true; m_customerUserName.assign(value); }
208 
215  inline DirectoryConnectSettings& WithCustomerUserName(const Aws::String& value) { SetCustomerUserName(value); return *this;}
216 
223  inline DirectoryConnectSettings& WithCustomerUserName(Aws::String&& value) { SetCustomerUserName(value); return *this;}
224 
231  inline DirectoryConnectSettings& WithCustomerUserName(const char* value) { SetCustomerUserName(value); return *this;}
232 
233  private:
234  Aws::String m_vpcId;
235  bool m_vpcIdHasBeenSet;
236  Aws::Vector<Aws::String> m_subnetIds;
237  bool m_subnetIdsHasBeenSet;
238  Aws::Vector<Aws::String> m_customerDnsIps;
239  bool m_customerDnsIpsHasBeenSet;
240  Aws::String m_customerUserName;
241  bool m_customerUserNameHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace DirectoryService
246 } // namespace Aws
DirectoryConnectSettings & AddSubnetIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
#define AWS_DIRECTORYSERVICE_API
DirectoryConnectSettings & WithVpcId(const Aws::String &value)
void SetCustomerDnsIps(const Aws::Vector< Aws::String > &value)
DirectoryConnectSettings & AddCustomerDnsIps(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DirectoryConnectSettings & WithSubnetIds(Aws::Vector< Aws::String > &&value)
DirectoryConnectSettings & WithSubnetIds(const Aws::Vector< Aws::String > &value)
void SetCustomerDnsIps(Aws::Vector< Aws::String > &&value)
DirectoryConnectSettings & WithCustomerUserName(Aws::String &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
DirectoryConnectSettings & WithVpcId(Aws::String &&value)
DirectoryConnectSettings & AddCustomerDnsIps(const Aws::String &value)
DirectoryConnectSettings & WithCustomerUserName(const Aws::String &value)
DirectoryConnectSettings & AddSubnetIds(const char *value)
DirectoryConnectSettings & WithCustomerUserName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DirectoryConnectSettings & WithCustomerDnsIps(const Aws::Vector< Aws::String > &value)
DirectoryConnectSettings & WithCustomerDnsIps(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
DirectoryConnectSettings & AddSubnetIds(const Aws::String &value)
DirectoryConnectSettings & AddCustomerDnsIps(const char *value)
DirectoryConnectSettings & WithVpcId(const char *value)
JSON (JavaScript Object Notation).
const Aws::Vector< Aws::String > & GetCustomerDnsIps() const