AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppStream {
21namespace Model {
22
29class VpcConfig {
30 public:
31 AWS_APPSTREAM_API VpcConfig() = default;
32 AWS_APPSTREAM_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPSTREAM_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
43 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
44 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
45 void SetSubnetIds(SubnetIdsT&& value) {
46 m_subnetIdsHasBeenSet = true;
47 m_subnetIds = std::forward<SubnetIdsT>(value);
48 }
49 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
50 VpcConfig& WithSubnetIds(SubnetIdsT&& value) {
51 SetSubnetIds(std::forward<SubnetIdsT>(value));
52 return *this;
53 }
54 template <typename SubnetIdsT = Aws::String>
55 VpcConfig& AddSubnetIds(SubnetIdsT&& value) {
56 m_subnetIdsHasBeenSet = true;
57 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
67 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
68 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
69 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
70 m_securityGroupIdsHasBeenSet = true;
71 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
72 }
73 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
74 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
75 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
76 return *this;
77 }
78 template <typename SecurityGroupIdsT = Aws::String>
79 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
80 m_securityGroupIdsHasBeenSet = true;
81 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
82 return *this;
83 }
85 private:
86 Aws::Vector<Aws::String> m_subnetIds;
87 bool m_subnetIdsHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_securityGroupIds;
90 bool m_securityGroupIdsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace AppStream
95} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:66
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:45
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:79
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:67
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:42
AWS_APPSTREAM_API VpcConfig()=default
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:50
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:74
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:69
AWS_APPSTREAM_API VpcConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSTREAM_API VpcConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcConfig & AddSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:55
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue