AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Networking.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/pcs/PCS_EXPORTS.h>
10#include <aws/pcs/model/NetworkType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PCS {
22namespace Model {
23
31 public:
32 AWS_PCS_API Networking() = default;
33 AWS_PCS_API Networking(Aws::Utils::Json::JsonView jsonValue);
36
38
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 Networking& WithSubnetIds(SubnetIdsT&& value) {
54 SetSubnetIds(std::forward<SubnetIdsT>(value));
55 return *this;
56 }
57 template <typename SubnetIdsT = Aws::String>
58 Networking& AddSubnetIds(SubnetIdsT&& value) {
59 m_subnetIdsHasBeenSet = true;
60 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
61 return *this;
62 }
64
66
76 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
77 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
78 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
79 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
80 m_securityGroupIdsHasBeenSet = true;
81 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
82 }
83 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
84 Networking& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
85 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
86 return *this;
87 }
88 template <typename SecurityGroupIdsT = Aws::String>
89 Networking& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
90 m_securityGroupIdsHasBeenSet = true;
91 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
92 return *this;
93 }
95
97
101 inline NetworkType GetNetworkType() const { return m_networkType; }
102 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
103 inline void SetNetworkType(NetworkType value) {
104 m_networkTypeHasBeenSet = true;
105 m_networkType = value;
106 }
108 SetNetworkType(value);
109 return *this;
110 }
112 private:
113 Aws::Vector<Aws::String> m_subnetIds;
114
115 Aws::Vector<Aws::String> m_securityGroupIds;
116
117 NetworkType m_networkType{NetworkType::NOT_SET};
118 bool m_subnetIdsHasBeenSet = false;
119 bool m_securityGroupIdsHasBeenSet = false;
120 bool m_networkTypeHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace PCS
125} // namespace Aws
void SetNetworkType(NetworkType value)
Definition Networking.h:103
Networking & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:84
bool SecurityGroupIdsHasBeenSet() const
Definition Networking.h:77
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
bool NetworkTypeHasBeenSet() const
Definition Networking.h:102
Networking & WithSubnetIds(SubnetIdsT &&value)
Definition Networking.h:53
Networking & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:89
Networking & AddSubnetIds(SubnetIdsT &&value)
Definition Networking.h:58
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition Networking.h:45
bool SubnetIdsHasBeenSet() const
Definition Networking.h:46
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition Networking.h:76
AWS_PCS_API Networking(Aws::Utils::Json::JsonView jsonValue)
NetworkType GetNetworkType() const
Definition Networking.h:101
Networking & WithNetworkType(NetworkType value)
Definition Networking.h:107
AWS_PCS_API Networking & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(SubnetIdsT &&value)
Definition Networking.h:48
AWS_PCS_API Networking()=default
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:79
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue