AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
VpcConfiguration.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/kinesisanalyticsv2/KinesisAnalyticsV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace KinesisAnalyticsV2 {
21namespace Model {
22
30 public:
31 AWS_KINESISANALYTICSV2_API VpcConfiguration() = default;
32 AWS_KINESISANALYTICSV2_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_KINESISANALYTICSV2_API VpcConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_KINESISANALYTICSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
43 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
44 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
45 void SetSubnetIds(SubnetIdsT&& value) {
46 m_subnetIdsHasBeenSet = true;
47 m_subnetIds = std::forward<SubnetIdsT>(value);
48 }
49 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
50 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) {
51 SetSubnetIds(std::forward<SubnetIdsT>(value));
52 return *this;
53 }
54 template <typename SubnetIdsT = Aws::String>
55 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) {
56 m_subnetIdsHasBeenSet = true;
57 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
69 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
70 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
71 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
72 m_securityGroupIdsHasBeenSet = true;
73 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
74 }
75 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
76 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
77 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
78 return *this;
79 }
80 template <typename SecurityGroupIdsT = Aws::String>
81 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
82 m_securityGroupIdsHasBeenSet = true;
83 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<Aws::String> m_subnetIds;
89
90 Aws::Vector<Aws::String> m_securityGroupIds;
91 bool m_subnetIdsHasBeenSet = false;
92 bool m_securityGroupIdsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace KinesisAnalyticsV2
97} // namespace Aws
VpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
VpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_KINESISANALYTICSV2_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_KINESISANALYTICSV2_API VpcConfiguration()=default
AWS_KINESISANALYTICSV2_API VpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KINESISANALYTICSV2_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue