AWS SDK for C++  0.12.9
AWS SDK for C++
DirectoryVpcSettings.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  DirectoryVpcSettings& 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 DirectoryVpcSettings& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
70 
74  inline DirectoryVpcSettings& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
75 
79  inline DirectoryVpcSettings& WithVpcId(const char* value) { SetVpcId(value); return *this;}
80 
86  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
87 
93  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
94 
100  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
101 
107  inline DirectoryVpcSettings& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
108 
114  inline DirectoryVpcSettings& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
115 
121  inline DirectoryVpcSettings& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
122 
128  inline DirectoryVpcSettings& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
129 
135  inline DirectoryVpcSettings& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
136 
137  private:
138  Aws::String m_vpcId;
139  bool m_vpcIdHasBeenSet;
140  Aws::Vector<Aws::String> m_subnetIds;
141  bool m_subnetIdsHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace DirectoryService
146 } // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
#define AWS_DIRECTORYSERVICE_API
DirectoryVpcSettings & WithVpcId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DirectoryVpcSettings & WithSubnetIds(const Aws::Vector< Aws::String > &value)
DirectoryVpcSettings & AddSubnetIds(const Aws::String &value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
DirectoryVpcSettings & AddSubnetIds(Aws::String &&value)
DirectoryVpcSettings & AddSubnetIds(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DirectoryVpcSettings & WithVpcId(const Aws::String &value)
DirectoryVpcSettings & WithSubnetIds(Aws::Vector< Aws::String > &&value)
DirectoryVpcSettings & WithVpcId(const char *value)
JSON (JavaScript Object Notation).