AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InputVpcRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaLive {
21namespace Model {
22
36 public:
37 AWS_MEDIALIVE_API InputVpcRequest() = default;
38 AWS_MEDIALIVE_API InputVpcRequest(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
49 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
50 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
51 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
52 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
53 m_securityGroupIdsHasBeenSet = true;
54 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
55 }
56 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
57 InputVpcRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
58 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
59 return *this;
60 }
61 template <typename SecurityGroupIdsT = Aws::String>
62 InputVpcRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
63 m_securityGroupIdsHasBeenSet = true;
64 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
65 return *this;
66 }
68
70
75 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
76 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
77 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
78 void SetSubnetIds(SubnetIdsT&& value) {
79 m_subnetIdsHasBeenSet = true;
80 m_subnetIds = std::forward<SubnetIdsT>(value);
81 }
82 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
83 InputVpcRequest& WithSubnetIds(SubnetIdsT&& value) {
84 SetSubnetIds(std::forward<SubnetIdsT>(value));
85 return *this;
86 }
87 template <typename SubnetIdsT = Aws::String>
88 InputVpcRequest& AddSubnetIds(SubnetIdsT&& value) {
89 m_subnetIdsHasBeenSet = true;
90 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<Aws::String> m_securityGroupIds;
96
97 Aws::Vector<Aws::String> m_subnetIds;
98 bool m_securityGroupIdsHasBeenSet = false;
99 bool m_subnetIdsHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace MediaLive
104} // 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