AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
InputVpcRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_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 MediaLive
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_MEDIALIVE_API InputVpcRequest() = default;
43 AWS_MEDIALIVE_API InputVpcRequest(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
55 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
56 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
57 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
58 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
59 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
60 InputVpcRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
61 template<typename SecurityGroupIdsT = Aws::String>
62 InputVpcRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
64
66
71 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
72 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
73 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
74 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
75 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
76 InputVpcRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
77 template<typename SubnetIdsT = Aws::String>
78 InputVpcRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
80 private:
81
82 Aws::Vector<Aws::String> m_securityGroupIds;
83 bool m_securityGroupIdsHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_subnetIds;
86 bool m_subnetIdsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MediaLive
91} // namespace Aws
InputVpcRequest & AddSubnetIds(SubnetIdsT &&value)
AWS_MEDIALIVE_API InputVpcRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSubnetIds() const
AWS_MEDIALIVE_API InputVpcRequest()=default
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
void SetSubnetIds(SubnetIdsT &&value)
InputVpcRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
AWS_MEDIALIVE_API InputVpcRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
InputVpcRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
InputVpcRequest & WithSubnetIds(SubnetIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue