AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Networking.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 Networking() = default;
37 AWS_PCS_API Networking(Aws::Utils::Json::JsonView jsonValue);
40
41
43
50 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
51 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
52 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
53 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
54 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
55 Networking& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
56 template<typename SubnetIdsT = Aws::String>
57 Networking& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
59
61
71 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
72 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
73 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
74 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
75 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
76 Networking& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
77 template<typename SecurityGroupIdsT = Aws::String>
78 Networking& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
80 private:
81
82 Aws::Vector<Aws::String> m_subnetIds;
83 bool m_subnetIdsHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_securityGroupIds;
86 bool m_securityGroupIdsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace PCS
91} // namespace Aws
Networking & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:76
bool SecurityGroupIdsHasBeenSet() const
Definition Networking.h:72
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Networking & WithSubnetIds(SubnetIdsT &&value)
Definition Networking.h:55
Networking & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:78
Networking & AddSubnetIds(SubnetIdsT &&value)
Definition Networking.h:57
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition Networking.h:50
bool SubnetIdsHasBeenSet() const
Definition Networking.h:51
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition Networking.h:71
AWS_PCS_API Networking(Aws::Utils::Json::JsonView jsonValue)
AWS_PCS_API Networking & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(SubnetIdsT &&value)
Definition Networking.h:53
AWS_PCS_API Networking()=default
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:74
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue