AWS SDK for C++

AWS SDK for C++ Version 1.11.936

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/emr-serverless/EMRServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EMRServerless {
21namespace Model {
22
30 public:
31 AWS_EMRSERVERLESS_API NetworkConfiguration() = default;
32 AWS_EMRSERVERLESS_API NetworkConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
41 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
42 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
43 void SetSubnetIds(SubnetIdsT&& value) {
44 m_subnetIdsHasBeenSet = true;
45 m_subnetIds = std::forward<SubnetIdsT>(value);
46 }
47 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
48 NetworkConfiguration& WithSubnetIds(SubnetIdsT&& value) {
49 SetSubnetIds(std::forward<SubnetIdsT>(value));
50 return *this;
51 }
52 template <typename SubnetIdsT = Aws::String>
53 NetworkConfiguration& AddSubnetIds(SubnetIdsT&& value) {
54 m_subnetIdsHasBeenSet = true;
55 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
65 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
66 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
67 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
68 m_securityGroupIdsHasBeenSet = true;
69 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
70 }
71 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
72 NetworkConfiguration& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
73 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
74 return *this;
75 }
76 template <typename SecurityGroupIdsT = Aws::String>
77 NetworkConfiguration& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
78 m_securityGroupIdsHasBeenSet = true;
79 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<Aws::String> m_subnetIds;
85
86 Aws::Vector<Aws::String> m_securityGroupIds;
87 bool m_subnetIdsHasBeenSet = false;
88 bool m_securityGroupIdsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace EMRServerless
93} // namespace Aws
NetworkConfiguration & AddSubnetIds(SubnetIdsT &&value)
AWS_EMRSERVERLESS_API NetworkConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
NetworkConfiguration & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_EMRSERVERLESS_API NetworkConfiguration()=default
const Aws::Vector< Aws::String > & GetSubnetIds() const
NetworkConfiguration & WithSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
NetworkConfiguration & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_EMRSERVERLESS_API NetworkConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue