AWS SDK for C++  0.12.9
AWS SDK for C++
VpcConfigResponse.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 Lambda
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  VpcConfigResponse& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
49 
53  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
54 
58  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
59 
63  inline VpcConfigResponse& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
64 
68  inline VpcConfigResponse& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
69 
73  inline VpcConfigResponse& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
74 
78  inline VpcConfigResponse& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
79 
83  inline VpcConfigResponse& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
84 
88  inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
89 
93  inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
94 
98  inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
99 
103  inline VpcConfigResponse& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
104 
108  inline VpcConfigResponse& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(value); return *this;}
109 
113  inline VpcConfigResponse& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
114 
118  inline VpcConfigResponse& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
119 
123  inline VpcConfigResponse& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
124 
128  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
129 
133  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
134 
138  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
139 
143  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
144 
148  inline VpcConfigResponse& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
149 
153  inline VpcConfigResponse& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
154 
158  inline VpcConfigResponse& WithVpcId(const char* value) { SetVpcId(value); return *this;}
159 
160  private:
161  Aws::Vector<Aws::String> m_subnetIds;
162  bool m_subnetIdsHasBeenSet;
163  Aws::Vector<Aws::String> m_securityGroupIds;
164  bool m_securityGroupIdsHasBeenSet;
165  Aws::String m_vpcId;
166  bool m_vpcIdHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace Lambda
171 } // namespace Aws
VpcConfigResponse & WithVpcId(Aws::String &&value)
VpcConfigResponse & AddSubnetIds(Aws::String &&value)
VpcConfigResponse & AddSubnetIds(const char *value)
VpcConfigResponse & AddSecurityGroupIds(const char *value)
VpcConfigResponse & AddSecurityGroupIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetVpcId(const Aws::String &value)
VpcConfigResponse & WithVpcId(const char *value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
VpcConfigResponse & AddSubnetIds(const Aws::String &value)
VpcConfigResponse & AddSecurityGroupIds(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
VpcConfigResponse & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
#define AWS_LAMBDA_API
VpcConfigResponse & WithSubnetIds(const Aws::Vector< Aws::String > &value)
VpcConfigResponse & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
VpcConfigResponse & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetVpcId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
VpcConfigResponse & WithVpcId(const Aws::String &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).