AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
VpcConfig.h
Go to the documentation of this file.
1
6#pragma once
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 AppStream
23{
24namespace Model
25{
26
34 {
35 public:
40
41
47 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
48
54 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
55
61 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
62
68 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
69
75 inline VpcConfig& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
76
82 inline VpcConfig& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
83
89 inline VpcConfig& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
90
96 inline VpcConfig& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
97
103 inline VpcConfig& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
104
105
109 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
110
114 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
115
119 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
120
124 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
125
129 inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
130
134 inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
135
139 inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
140
144 inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
145
149 inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
150
151 private:
152
153 Aws::Vector<Aws::String> m_subnetIds;
154 bool m_subnetIdsHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_securityGroupIds;
157 bool m_securityGroupIdsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace AppStream
162} // namespace Aws
#define AWS_APPSTREAM_API
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition: VpcConfig.h:109
VpcConfig & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:75
VpcConfig & AddSubnetIds(const char *value)
Definition: VpcConfig.h:103
VpcConfig & AddSubnetIds(const Aws::String &value)
Definition: VpcConfig.h:89
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:61
bool SecurityGroupIdsHasBeenSet() const
Definition: VpcConfig.h:114
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: VpcConfig.h:47
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:124
VpcConfig & AddSecurityGroupIds(const Aws::String &value)
Definition: VpcConfig.h:139
VpcConfig & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:134
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:68
VpcConfig & AddSecurityGroupIds(const char *value)
Definition: VpcConfig.h:149
VpcConfig & AddSubnetIds(Aws::String &&value)
Definition: VpcConfig.h:96
VpcConfig & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:129
AWS_APPSTREAM_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Definition: VpcConfig.h:119
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSTREAM_API VpcConfig()
AWS_APPSTREAM_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: VpcConfig.h:82
VpcConfig & AddSecurityGroupIds(Aws::String &&value)
Definition: VpcConfig.h:144
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector