AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NetworkingRequest.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 NetworkingRequest() = default;
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 NetworkingRequest& WithSubnetIds(SubnetIdsT&& value) {
54 SetSubnetIds(std::forward<SubnetIdsT>(value));
55 return *this;
56 }
57 template <typename SubnetIdsT = Aws::String>
58 NetworkingRequest& AddSubnetIds(SubnetIdsT&& value) {
59 m_subnetIdsHasBeenSet = true;
60 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
71 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
72 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
73 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
74 m_securityGroupIdsHasBeenSet = true;
75 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
76 }
77 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
78 NetworkingRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
79 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
80 return *this;
81 }
82 template <typename SecurityGroupIdsT = Aws::String>
83 NetworkingRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
84 m_securityGroupIdsHasBeenSet = true;
85 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
86 return *this;
87 }
89
91
95 inline NetworkType GetNetworkType() const { return m_networkType; }
96 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
97 inline void SetNetworkType(NetworkType value) {
98 m_networkTypeHasBeenSet = true;
99 m_networkType = value;
100 }
102 SetNetworkType(value);
103 return *this;
104 }
106 private:
107 Aws::Vector<Aws::String> m_subnetIds;
108
109 Aws::Vector<Aws::String> m_securityGroupIds;
110
111 NetworkType m_networkType{NetworkType::NOT_SET};
112 bool m_subnetIdsHasBeenSet = false;
113 bool m_securityGroupIdsHasBeenSet = false;
114 bool m_networkTypeHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace PCS
119} // namespace Aws
AWS_PCS_API NetworkingRequest(Aws::Utils::Json::JsonView jsonValue)
NetworkingRequest & AddSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
NetworkingRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
void SetNetworkType(NetworkType value)
AWS_PCS_API NetworkingRequest()=default
AWS_PCS_API NetworkingRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
NetworkingRequest & WithNetworkType(NetworkType value)
NetworkingRequest & WithSubnetIds(SubnetIdsT &&value)
void SetSubnetIds(SubnetIdsT &&value)
NetworkingRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue