AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
51 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
52 inline VPCConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
53 inline VPCConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
54 inline VPCConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
55 inline VPCConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
56 inline VPCConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
64 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
65 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
66 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
67 inline VPCConfig& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
68 inline VPCConfig& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
69 inline VPCConfig& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
70 inline VPCConfig& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
71 inline VPCConfig& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
73
75
78 inline bool GetAssignPublicIp() const{ return m_assignPublicIp; }
79 inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
80 inline void SetAssignPublicIp(bool value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
81 inline VPCConfig& WithAssignPublicIp(bool value) { SetAssignPublicIp(value); return *this;}
83 private:
84
86 bool m_subnetsHasBeenSet = false;
87
88 Aws::Vector<Aws::String> m_securityGroups;
89 bool m_securityGroupsHasBeenSet = false;
90
91 bool m_assignPublicIp;
92 bool m_assignPublicIpHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace RoboMaker
97} // namespace Aws
VPCConfig & AddSubnets(const char *value)
Definition VPCConfig.h:56
VPCConfig & AddSecurityGroups(const char *value)
Definition VPCConfig.h:71
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
VPCConfig & AddSecurityGroups(const Aws::String &value)
Definition VPCConfig.h:69
bool AssignPublicIpHasBeenSet() const
Definition VPCConfig.h:79
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition VPCConfig.h:65
void SetSubnets(const Aws::Vector< Aws::String > &value)
Definition VPCConfig.h:50
AWS_ROBOMAKER_API VPCConfig()
void SetSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition VPCConfig.h:66
VPCConfig & WithSubnets(Aws::Vector< Aws::String > &&value)
Definition VPCConfig.h:53
AWS_ROBOMAKER_API VPCConfig(Aws::Utils::Json::JsonView jsonValue)
VPCConfig & AddSubnets(const Aws::String &value)
Definition VPCConfig.h:54
const Aws::Vector< Aws::String > & GetSubnets() const
Definition VPCConfig.h:48
void SetAssignPublicIp(bool value)
Definition VPCConfig.h:80
VPCConfig & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
Definition VPCConfig.h:67
VPCConfig & AddSubnets(Aws::String &&value)
Definition VPCConfig.h:55
AWS_ROBOMAKER_API VPCConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VPCConfig & WithSubnets(const Aws::Vector< Aws::String > &value)
Definition VPCConfig.h:52
void SetSubnets(Aws::Vector< Aws::String > &&value)
Definition VPCConfig.h:51
bool SecurityGroupsHasBeenSet() const
Definition VPCConfig.h:64
const Aws::Vector< Aws::String > & GetSecurityGroups() const
Definition VPCConfig.h:63
VPCConfig & WithAssignPublicIp(bool value)
Definition VPCConfig.h:81
VPCConfig & AddSecurityGroups(Aws::String &&value)
Definition VPCConfig.h:70
VPCConfig & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
Definition VPCConfig.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue