AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VpcConfiguration.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Firehose
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FIREHOSE_API VpcConfiguration() = default;
37 AWS_FIREHOSE_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
59 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
60 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
61 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
62 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
63 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
64 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
65 template<typename SubnetIdsT = Aws::String>
66 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
68
70
89 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
90 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
91 template<typename RoleARNT = Aws::String>
92 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
93 template<typename RoleARNT = Aws::String>
94 VpcConfiguration& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
96
98
112 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
113 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
114 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
115 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
116 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
117 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
118 template<typename SecurityGroupIdsT = Aws::String>
119 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
121 private:
122
123 Aws::Vector<Aws::String> m_subnetIds;
124 bool m_subnetIdsHasBeenSet = false;
125
126 Aws::String m_roleARN;
127 bool m_roleARNHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_securityGroupIds;
130 bool m_securityGroupIdsHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Firehose
135} // 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