AWS SDK for C++

AWS SDK for C++ Version 1.11.694

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/grafana/ManagedGrafana_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ManagedGrafana {
21namespace Model {
22
33 public:
34 AWS_MANAGEDGRAFANA_API VpcConfiguration() = default;
35 AWS_MANAGEDGRAFANA_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDGRAFANA_API VpcConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
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
69 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
70 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
71 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
72 void SetSubnetIds(SubnetIdsT&& value) {
73 m_subnetIdsHasBeenSet = true;
74 m_subnetIds = std::forward<SubnetIdsT>(value);
75 }
76 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
77 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) {
78 SetSubnetIds(std::forward<SubnetIdsT>(value));
79 return *this;
80 }
81 template <typename SubnetIdsT = Aws::String>
82 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) {
83 m_subnetIdsHasBeenSet = true;
84 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
85 return *this;
86 }
88 private:
89 Aws::Vector<Aws::String> m_securityGroupIds;
90 bool m_securityGroupIdsHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_subnetIds;
93 bool m_subnetIdsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace ManagedGrafana
98} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VpcConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
VpcConfiguration & WithSubnetIds(SubnetIdsT &&value)
AWS_MANAGEDGRAFANA_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDGRAFANA_API VpcConfiguration()=default
VpcConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_MANAGEDGRAFANA_API VpcConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfiguration & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue