AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
NetworkConfiguration.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/mwaa/MWAA_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MWAA {
21namespace Model {
22
33 public:
34 AWS_MWAA_API NetworkConfiguration() = default;
38
40
45 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
46 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
47 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
48 void SetSubnetIds(SubnetIdsT&& value) {
49 m_subnetIdsHasBeenSet = true;
50 m_subnetIds = std::forward<SubnetIdsT>(value);
51 }
52 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
53 NetworkConfiguration& WithSubnetIds(SubnetIdsT&& value) {
54 SetSubnetIds(std::forward<SubnetIdsT>(value));
55 return *this;
56 }
57 template <typename SubnetIdsT = Aws::String>
58 NetworkConfiguration& AddSubnetIds(SubnetIdsT&& value) {
59 m_subnetIdsHasBeenSet = true;
60 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
72 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
73 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
74 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
75 m_securityGroupIdsHasBeenSet = true;
76 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
77 }
78 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
79 NetworkConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
80 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
81 return *this;
82 }
83 template <typename SecurityGroupIdsT = Aws::String>
84 NetworkConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
85 m_securityGroupIdsHasBeenSet = true;
86 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
87 return *this;
88 }
90 private:
91 Aws::Vector<Aws::String> m_subnetIds;
92
93 Aws::Vector<Aws::String> m_securityGroupIds;
94 bool m_subnetIdsHasBeenSet = false;
95 bool m_securityGroupIdsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace MWAA
100} // namespace Aws
NetworkConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_MWAA_API NetworkConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_MWAA_API NetworkConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_MWAA_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkConfiguration & AddSubnetIds(SubnetIdsT &&value)
NetworkConfiguration & WithSubnetIds(SubnetIdsT &&value)
NetworkConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_MWAA_API NetworkConfiguration()=default
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue