AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
49 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
50 inline VPCConfigResponse& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
51 inline VPCConfigResponse& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
52 inline VPCConfigResponse& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
53 inline VPCConfigResponse& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
54 inline VPCConfigResponse& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
56
58
61 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
62 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
63 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
64 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
66 inline VPCConfigResponse& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
67 inline VPCConfigResponse& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
68 inline VPCConfigResponse& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
69 inline VPCConfigResponse& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
71
73
76 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
78 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
79 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
80 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
81 inline VPCConfigResponse& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline VPCConfigResponse& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline VPCConfigResponse& WithVpcId(const char* value) { SetVpcId(value); return *this;}
85
87
90 inline bool GetAssignPublicIp() const{ return m_assignPublicIp; }
91 inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
92 inline void SetAssignPublicIp(bool value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
93 inline VPCConfigResponse& WithAssignPublicIp(bool value) { SetAssignPublicIp(value); return *this;}
95 private:
96
98 bool m_subnetsHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_securityGroups;
101 bool m_securityGroupsHasBeenSet = false;
102
103 Aws::String m_vpcId;
104 bool m_vpcIdHasBeenSet = false;
105
106 bool m_assignPublicIp;
107 bool m_assignPublicIpHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace RoboMaker
112} // namespace Aws
VPCConfigResponse & WithSubnets(const Aws::Vector< Aws::String > &value)
VPCConfigResponse & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
void SetVpcId(const Aws::String &value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
AWS_ROBOMAKER_API VPCConfigResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
VPCConfigResponse & WithVpcId(const Aws::String &value)
VPCConfigResponse & AddSecurityGroups(Aws::String &&value)
VPCConfigResponse & AddSubnets(Aws::String &&value)
void SetSubnets(Aws::Vector< Aws::String > &&value)
VPCConfigResponse & WithVpcId(Aws::String &&value)
VPCConfigResponse & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
VPCConfigResponse & AddSecurityGroups(const Aws::String &value)
VPCConfigResponse & AddSecurityGroups(const char *value)
VPCConfigResponse & WithVpcId(const char *value)
VPCConfigResponse & AddSubnets(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnets() const
VPCConfigResponse & WithSubnets(Aws::Vector< Aws::String > &&value)
AWS_ROBOMAKER_API VPCConfigResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
VPCConfigResponse & WithAssignPublicIp(bool value)
VPCConfigResponse & AddSubnets(const char *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