AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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/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 Networking() = default;
38 AWS_PCS_API Networking(Aws::Utils::Json::JsonView jsonValue);
41
42
44
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 Networking& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
57 template<typename SubnetIdsT = Aws::String>
58 Networking& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
60
62
72 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
73 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
74 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
75 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
76 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
77 Networking& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
78 template<typename SecurityGroupIdsT = Aws::String>
79 Networking& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
81
83
87 inline NetworkType GetNetworkType() const { return m_networkType; }
88 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
89 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
90 inline Networking& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
92 private:
93
94 Aws::Vector<Aws::String> m_subnetIds;
95 bool m_subnetIdsHasBeenSet = false;
96
97 Aws::Vector<Aws::String> m_securityGroupIds;
98 bool m_securityGroupIdsHasBeenSet = false;
99
100 NetworkType m_networkType{NetworkType::NOT_SET};
101 bool m_networkTypeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace PCS
106} // namespace Aws
void SetNetworkType(NetworkType value)
Definition Networking.h:89
Networking & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:77
bool SecurityGroupIdsHasBeenSet() const
Definition Networking.h:73
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
bool NetworkTypeHasBeenSet() const
Definition Networking.h:88
Networking & WithSubnetIds(SubnetIdsT &&value)
Definition Networking.h:56
Networking & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:79
Networking & AddSubnetIds(SubnetIdsT &&value)
Definition Networking.h:58
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition Networking.h:51
bool SubnetIdsHasBeenSet() const
Definition Networking.h:52
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition Networking.h:72
AWS_PCS_API Networking(Aws::Utils::Json::JsonView jsonValue)
NetworkType GetNetworkType() const
Definition Networking.h:87
Networking & WithNetworkType(NetworkType value)
Definition Networking.h:90
AWS_PCS_API Networking & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubnetIds(SubnetIdsT &&value)
Definition Networking.h:54
AWS_PCS_API Networking()=default
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition Networking.h:75
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue