AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NetworkingRequest.h
1
6#pragma once
7#include <aws/pcs/PCS_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 PCS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PCS_API NetworkingRequest() = default;
40
41
43
51 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
52 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
53 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
54 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
55 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
56 NetworkingRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
57 template<typename SubnetIdsT = Aws::String>
58 NetworkingRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
60
62
66 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
67 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
68 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
69 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
70 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
71 NetworkingRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
72 template<typename SecurityGroupIdsT = Aws::String>
73 NetworkingRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
75 private:
76
77 Aws::Vector<Aws::String> m_subnetIds;
78 bool m_subnetIdsHasBeenSet = false;
79
80 Aws::Vector<Aws::String> m_securityGroupIds;
81 bool m_securityGroupIdsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace PCS
86} // namespace Aws
AWS_PCS_API NetworkingRequest(Aws::Utils::Json::JsonView jsonValue)
NetworkingRequest & AddSubnetIds(SubnetIdsT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
NetworkingRequest & AddSecurityGroupIds(SecurityGroupIdsT &&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 & 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