AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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/pcs/model/NetworkType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PCS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PCS_API NetworkingRequest() = default;
41
42
44
52 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
53 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
54 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
55 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
56 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
57 NetworkingRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
58 template<typename SubnetIdsT = Aws::String>
59 NetworkingRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
61
63
67 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
68 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
69 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
70 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
71 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
72 NetworkingRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
73 template<typename SecurityGroupIdsT = Aws::String>
74 NetworkingRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
76
78
82 inline NetworkType GetNetworkType() const { return m_networkType; }
83 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
84 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
85 inline NetworkingRequest& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
87 private:
88
89 Aws::Vector<Aws::String> m_subnetIds;
90 bool m_subnetIdsHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_securityGroupIds;
93 bool m_securityGroupIdsHasBeenSet = false;
94
95 NetworkType m_networkType{NetworkType::NOT_SET};
96 bool m_networkTypeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace PCS
101} // 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