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/grafana/ManagedGrafana_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 ManagedGrafana
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_MANAGEDGRAFANA_API VpcConfiguration() = default;
40 AWS_MANAGEDGRAFANA_API VpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDGRAFANA_API VpcConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
51 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
52 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
53 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
54 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
55 VpcConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
56 template<typename SecurityGroupIdsT = Aws::String>
57 VpcConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
59
61
65 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
66 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
67 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
68 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
69 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
70 VpcConfiguration& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
71 template<typename SubnetIdsT = Aws::String>
72 VpcConfiguration& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
74 private:
75
76 Aws::Vector<Aws::String> m_securityGroupIds;
77 bool m_securityGroupIdsHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_subnetIds;
80 bool m_subnetIdsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ManagedGrafana
85} // 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