AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VpcConfig.h
1
6#pragma once
7#include <aws/appstream/AppStream_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 AppStream
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPSTREAM_API VpcConfig() = default;
37 AWS_APPSTREAM_API VpcConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
49 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
50 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
51 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
52 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
53 VpcConfig& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
54 template<typename SubnetIdsT = Aws::String>
55 VpcConfig& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
63 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
64 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
65 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
66 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
67 VpcConfig& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
68 template<typename SecurityGroupIdsT = Aws::String>
69 VpcConfig& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
71 private:
72
73 Aws::Vector<Aws::String> m_subnetIds;
74 bool m_subnetIdsHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_securityGroupIds;
77 bool m_securityGroupIdsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AppStream
82} // namespace Aws
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Definition VpcConfig.h:62
void SetSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:51
VpcConfig & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:69
bool SecurityGroupIdsHasBeenSet() const
Definition VpcConfig.h:63
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition VpcConfig.h:48
AWS_APPSTREAM_API VpcConfig()=default
VpcConfig & WithSubnetIds(SubnetIdsT &&value)
Definition VpcConfig.h:53
VpcConfig & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:67
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
Definition VpcConfig.h:65
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