AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VPCConfigResponse.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
34 {
35 public:
36 AWS_ROBOMAKER_API VPCConfigResponse() = default;
37 AWS_ROBOMAKER_API VPCConfigResponse(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
47 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
48 template<typename SubnetsT = Aws::Vector<Aws::String>>
49 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
50 template<typename SubnetsT = Aws::Vector<Aws::String>>
51 VPCConfigResponse& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
52 template<typename SubnetsT = Aws::String>
53 VPCConfigResponse& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
61 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
62 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
63 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
64 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
65 VPCConfigResponse& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
66 template<typename SecurityGroupsT = Aws::String>
67 VPCConfigResponse& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetVpcId() const { return m_vpcId; }
75 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
76 template<typename VpcIdT = Aws::String>
77 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
78 template<typename VpcIdT = Aws::String>
79 VPCConfigResponse& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
81
83
86 inline bool GetAssignPublicIp() const { return m_assignPublicIp; }
87 inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
88 inline void SetAssignPublicIp(bool value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
89 inline VPCConfigResponse& WithAssignPublicIp(bool value) { SetAssignPublicIp(value); return *this;}
91 private:
92
94 bool m_subnetsHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_securityGroups;
97 bool m_securityGroupsHasBeenSet = false;
98
99 Aws::String m_vpcId;
100 bool m_vpcIdHasBeenSet = false;
101
102 bool m_assignPublicIp{false};
103 bool m_assignPublicIpHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace RoboMaker
108} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroups() const
VPCConfigResponse & AddSecurityGroups(SecurityGroupsT &&value)
AWS_ROBOMAKER_API VPCConfigResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
VPCConfigResponse & AddSubnets(SubnetsT &&value)
void SetSecurityGroups(SecurityGroupsT &&value)
AWS_ROBOMAKER_API VPCConfigResponse()=default
const Aws::Vector< Aws::String > & GetSubnets() const
VPCConfigResponse & WithSubnets(SubnetsT &&value)
VPCConfigResponse & WithVpcId(VpcIdT &&value)
VPCConfigResponse & WithSecurityGroups(SecurityGroupsT &&value)
AWS_ROBOMAKER_API VPCConfigResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
VPCConfigResponse & WithAssignPublicIp(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue