AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VpcOutputSettings.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
32 public:
33 AWS_MEDIALIVE_API VpcOutputSettings() = default;
34 AWS_MEDIALIVE_API VpcOutputSettings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::Vector<Aws::String>& GetPublicAddressAllocationIds() const { return m_publicAddressAllocationIds; }
46 inline bool PublicAddressAllocationIdsHasBeenSet() const { return m_publicAddressAllocationIdsHasBeenSet; }
47 template <typename PublicAddressAllocationIdsT = Aws::Vector<Aws::String>>
48 void SetPublicAddressAllocationIds(PublicAddressAllocationIdsT&& value) {
49 m_publicAddressAllocationIdsHasBeenSet = true;
50 m_publicAddressAllocationIds = std::forward<PublicAddressAllocationIdsT>(value);
51 }
52 template <typename PublicAddressAllocationIdsT = Aws::Vector<Aws::String>>
53 VpcOutputSettings& WithPublicAddressAllocationIds(PublicAddressAllocationIdsT&& value) {
54 SetPublicAddressAllocationIds(std::forward<PublicAddressAllocationIdsT>(value));
55 return *this;
56 }
57 template <typename PublicAddressAllocationIdsT = Aws::String>
58 VpcOutputSettings& AddPublicAddressAllocationIds(PublicAddressAllocationIdsT&& value) {
59 m_publicAddressAllocationIdsHasBeenSet = true;
60 m_publicAddressAllocationIds.emplace_back(std::forward<PublicAddressAllocationIdsT>(value));
61 return *this;
62 }
64
66
72 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
73 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
74 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
75 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
76 m_securityGroupIdsHasBeenSet = true;
77 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
78 }
79 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
80 VpcOutputSettings& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
81 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
82 return *this;
83 }
84 template <typename SecurityGroupIdsT = Aws::String>
85 VpcOutputSettings& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
86 m_securityGroupIdsHasBeenSet = true;
87 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
99 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
100 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
101 void SetSubnetIds(SubnetIdsT&& value) {
102 m_subnetIdsHasBeenSet = true;
103 m_subnetIds = std::forward<SubnetIdsT>(value);
104 }
105 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
106 VpcOutputSettings& WithSubnetIds(SubnetIdsT&& value) {
107 SetSubnetIds(std::forward<SubnetIdsT>(value));
108 return *this;
109 }
110 template <typename SubnetIdsT = Aws::String>
111 VpcOutputSettings& AddSubnetIds(SubnetIdsT&& value) {
112 m_subnetIdsHasBeenSet = true;
113 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
114 return *this;
115 }
117 private:
118 Aws::Vector<Aws::String> m_publicAddressAllocationIds;
119
120 Aws::Vector<Aws::String> m_securityGroupIds;
121
122 Aws::Vector<Aws::String> m_subnetIds;
123 bool m_publicAddressAllocationIdsHasBeenSet = false;
124 bool m_securityGroupIdsHasBeenSet = false;
125 bool m_subnetIdsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace MediaLive
130} // namespace Aws
VpcOutputSettings & WithSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VpcOutputSettings & WithSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetPublicAddressAllocationIds() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
VpcOutputSettings & AddSubnetIds(SubnetIdsT &&value)
VpcOutputSettings & AddPublicAddressAllocationIds(PublicAddressAllocationIdsT &&value)
void SetPublicAddressAllocationIds(PublicAddressAllocationIdsT &&value)
VpcOutputSettings & WithPublicAddressAllocationIds(PublicAddressAllocationIdsT &&value)
AWS_MEDIALIVE_API VpcOutputSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
VpcOutputSettings & AddSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_MEDIALIVE_API VpcOutputSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API VpcOutputSettings()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue