AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/firehose/Firehose_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Firehose {
21namespace Model {
22
30 public:
31 AWS_FIREHOSE_API VpcConfiguration() = default;
32 AWS_FIREHOSE_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
53 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
54 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
55 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
56 void SetSubnetIds(SubnetIdsT&& value) {
57 m_subnetIdsHasBeenSet = true;
58 m_subnetIds = std::forward<SubnetIdsT>(value);
59 }
60 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
61 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) {
62 SetSubnetIds(std::forward<SubnetIdsT>(value));
63 return *this;
64 }
65 template <typename SubnetIdsT = Aws::String>
66 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) {
67 m_subnetIdsHasBeenSet = true;
68 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
69 return *this;
70 }
72
74
93 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
94 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
95 template <typename RoleARNT = Aws::String>
96 void SetRoleARN(RoleARNT&& value) {
97 m_roleARNHasBeenSet = true;
98 m_roleARN = std::forward<RoleARNT>(value);
99 }
100 template <typename RoleARNT = Aws::String>
101 VpcConfiguration& WithRoleARN(RoleARNT&& value) {
102 SetRoleARN(std::forward<RoleARNT>(value));
103 return *this;
104 }
106
108
122 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
123 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
124 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
125 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
126 m_securityGroupIdsHasBeenSet = true;
127 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
128 }
129 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
130 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
131 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
132 return *this;
133 }
134 template <typename SecurityGroupIdsT = Aws::String>
135 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
136 m_securityGroupIdsHasBeenSet = true;
137 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
138 return *this;
139 }
141 private:
142 Aws::Vector<Aws::String> m_subnetIds;
143
144 Aws::String m_roleARN;
145
146 Aws::Vector<Aws::String> m_securityGroupIds;
147 bool m_subnetIdsHasBeenSet = false;
148 bool m_roleARNHasBeenSet = false;
149 bool m_securityGroupIdsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Firehose
154} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_FIREHOSE_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
VpcConfiguration & WithRoleARN(RoleARNT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetRoleARN() const
VpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
VpcConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIREHOSE_API VpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
VpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
VpcConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_FIREHOSE_API VpcConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue