AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VPCConfig.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_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 RoboMaker
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_ROBOMAKER_API VPCConfig() = default;
39 AWS_ROBOMAKER_API VPCConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROBOMAKER_API VPCConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
49 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
50 template<typename SubnetsT = Aws::Vector<Aws::String>>
51 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
52 template<typename SubnetsT = Aws::Vector<Aws::String>>
53 VPCConfig& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
54 template<typename SubnetsT = Aws::String>
55 VPCConfig& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
63 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
64 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
65 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
66 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
67 VPCConfig& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
68 template<typename SecurityGroupsT = Aws::String>
69 VPCConfig& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
71
73
76 inline bool GetAssignPublicIp() const { return m_assignPublicIp; }
77 inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
78 inline void SetAssignPublicIp(bool value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
79 inline VPCConfig& WithAssignPublicIp(bool value) { SetAssignPublicIp(value); return *this;}
81 private:
82
84 bool m_subnetsHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_securityGroups;
87 bool m_securityGroupsHasBeenSet = false;
88
89 bool m_assignPublicIp{false};
90 bool m_assignPublicIpHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace RoboMaker
95} // namespace Aws
VPCConfig & WithSecurityGroups(SecurityGroupsT &&value)
Definition VPCConfig.h:67
void SetSecurityGroups(SecurityGroupsT &&value)
Definition VPCConfig.h:65
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool AssignPublicIpHasBeenSet() const
Definition VPCConfig.h:77
VPCConfig & AddSecurityGroups(SecurityGroupsT &&value)
Definition VPCConfig.h:69
void SetSubnets(SubnetsT &&value)
Definition VPCConfig.h:51
VPCConfig & AddSubnets(SubnetsT &&value)
Definition VPCConfig.h:55
AWS_ROBOMAKER_API VPCConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VPCConfig.h:48
AWS_ROBOMAKER_API VPCConfig()=default
void SetAssignPublicIp(bool value)
Definition VPCConfig.h:78
AWS_ROBOMAKER_API VPCConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VPCConfig & WithSubnets(SubnetsT &&value)
Definition VPCConfig.h:53
bool SecurityGroupsHasBeenSet() const
Definition VPCConfig.h:63
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition VPCConfig.h:62
VPCConfig & WithAssignPublicIp(bool value)
Definition VPCConfig.h:79
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue