AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VpcConfiguration.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PrometheusService {
21namespace Model {
22
32 public:
33 AWS_PROMETHEUSSERVICE_API VpcConfiguration() = default;
34 AWS_PROMETHEUSSERVICE_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PROMETHEUSSERVICE_API VpcConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
45 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
46 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
47 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
48 m_securityGroupIdsHasBeenSet = true;
49 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
50 }
51 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
52 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
53 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
54 return *this;
55 }
56 template <typename SecurityGroupIdsT = Aws::String>
57 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
58 m_securityGroupIdsHasBeenSet = true;
59 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
71 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
72 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
73 void SetSubnetIds(SubnetIdsT&& value) {
74 m_subnetIdsHasBeenSet = true;
75 m_subnetIds = std::forward<SubnetIdsT>(value);
76 }
77 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
78 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) {
79 SetSubnetIds(std::forward<SubnetIdsT>(value));
80 return *this;
81 }
82 template <typename SubnetIdsT = Aws::String>
83 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) {
84 m_subnetIdsHasBeenSet = true;
85 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
86 return *this;
87 }
89 private:
90 Aws::Vector<Aws::String> m_securityGroupIds;
91
92 Aws::Vector<Aws::String> m_subnetIds;
93 bool m_securityGroupIdsHasBeenSet = false;
94 bool m_subnetIdsHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace PrometheusService
99} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_PROMETHEUSSERVICE_API VpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API VpcConfiguration()=default
AWS_PROMETHEUSSERVICE_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
VpcConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue