AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CapacityProviderVpcConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
30 public:
31 AWS_LAMBDA_API CapacityProviderVpcConfig() = default;
34 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
42 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
43 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
44 void SetSubnetIds(SubnetIdsT&& value) {
45 m_subnetIdsHasBeenSet = true;
46 m_subnetIds = std::forward<SubnetIdsT>(value);
47 }
48 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
50 SetSubnetIds(std::forward<SubnetIdsT>(value));
51 return *this;
52 }
53 template <typename SubnetIdsT = Aws::String>
55 m_subnetIdsHasBeenSet = true;
56 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
67 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
68 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
69 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
70 m_securityGroupIdsHasBeenSet = true;
71 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
72 }
73 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
74 CapacityProviderVpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
75 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
76 return *this;
77 }
78 template <typename SecurityGroupIdsT = Aws::String>
79 CapacityProviderVpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
80 m_securityGroupIdsHasBeenSet = true;
81 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
82 return *this;
83 }
85 private:
86 Aws::Vector<Aws::String> m_subnetIds;
87
88 Aws::Vector<Aws::String> m_securityGroupIds;
89 bool m_subnetIdsHasBeenSet = false;
90 bool m_securityGroupIdsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace Lambda
95} // namespace Aws
CapacityProviderVpcConfig & WithSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDA_API CapacityProviderVpcConfig(Aws::Utils::Json::JsonView jsonValue)
CapacityProviderVpcConfig & AddSubnetIds(SubnetIdsT &&value)
AWS_LAMBDA_API CapacityProviderVpcConfig()=default
CapacityProviderVpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
CapacityProviderVpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_LAMBDA_API CapacityProviderVpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue