AWS SDK for C++  0.14.3
AWS SDK for C++
VpcConfig.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 
41  {
42  public:
43  VpcConfig();
44  VpcConfig(const Aws::Utils::Json::JsonValue& jsonValue);
45  VpcConfig& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
52 
56  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
57 
61  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
62 
66  inline VpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
67 
71  inline VpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
72 
76  inline VpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
77 
81  inline VpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
82 
86  inline VpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
87 
91  inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
92 
96  inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
97 
101  inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
102 
106  inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
107 
111  inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(value); return *this;}
112 
116  inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
117 
121  inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
122 
126  inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
127 
128  private:
129  Aws::Vector<Aws::String> m_subnetIds;
130  bool m_subnetIdsHasBeenSet;
131  Aws::Vector<Aws::String> m_securityGroupIds;
132  bool m_securityGroupIdsHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace Lambda
137 } // namespace Aws
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:101
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:111
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:96
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition: VpcConfig.h:91
#define AWS_LAMBDA_API
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:106
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition: VpcConfig.h:116
VpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:66
VpcConfig & AddSubnetIds(Aws::String &&value)
Definition: VpcConfig.h:81
VpcConfig & AddSecurityGroupIds(const char *value)
Definition: VpcConfig.h:126
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: VpcConfig.h:51
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition: VpcConfig.h:121
VpcConfig & AddSubnetIds(const Aws::String &value)
Definition: VpcConfig.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:56
VpcConfig & AddSubnetIds(const char *value)
Definition: VpcConfig.h:86
JSON (JavaScript Object Notation).
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:61
VpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:71