AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VpcInterface.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/mediaconnect/MediaConnect_EXPORTS.h>
10#include <aws/mediaconnect/model/NetworkInterfaceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaConnect {
22namespace Model {
23
30 public:
31 AWS_MEDIACONNECT_API VpcInterface() = default;
32 AWS_MEDIACONNECT_API VpcInterface(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDIACONNECT_API VpcInterface& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 VpcInterface& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const { return m_networkInterfaceIds; }
61 inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
62 template <typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
63 void SetNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
64 m_networkInterfaceIdsHasBeenSet = true;
65 m_networkInterfaceIds = std::forward<NetworkInterfaceIdsT>(value);
66 }
67 template <typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
68 VpcInterface& WithNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
69 SetNetworkInterfaceIds(std::forward<NetworkInterfaceIdsT>(value));
70 return *this;
71 }
72 template <typename NetworkInterfaceIdsT = Aws::String>
73 VpcInterface& AddNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
74 m_networkInterfaceIdsHasBeenSet = true;
75 m_networkInterfaceIds.emplace_back(std::forward<NetworkInterfaceIdsT>(value));
76 return *this;
77 }
79
81
84 inline NetworkInterfaceType GetNetworkInterfaceType() const { return m_networkInterfaceType; }
85 inline bool NetworkInterfaceTypeHasBeenSet() const { return m_networkInterfaceTypeHasBeenSet; }
87 m_networkInterfaceTypeHasBeenSet = true;
88 m_networkInterfaceType = value;
89 }
92 return *this;
93 }
95
97
100 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
101 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
102 template <typename RoleArnT = Aws::String>
103 void SetRoleArn(RoleArnT&& value) {
104 m_roleArnHasBeenSet = true;
105 m_roleArn = std::forward<RoleArnT>(value);
106 }
107 template <typename RoleArnT = Aws::String>
108 VpcInterface& WithRoleArn(RoleArnT&& value) {
109 SetRoleArn(std::forward<RoleArnT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
119 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
120 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
121 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
122 m_securityGroupIdsHasBeenSet = true;
123 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
124 }
125 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
126 VpcInterface& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
127 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
128 return *this;
129 }
130 template <typename SecurityGroupIdsT = Aws::String>
131 VpcInterface& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
132 m_securityGroupIdsHasBeenSet = true;
133 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
143 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
144 template <typename SubnetIdT = Aws::String>
145 void SetSubnetId(SubnetIdT&& value) {
146 m_subnetIdHasBeenSet = true;
147 m_subnetId = std::forward<SubnetIdT>(value);
148 }
149 template <typename SubnetIdT = Aws::String>
150 VpcInterface& WithSubnetId(SubnetIdT&& value) {
151 SetSubnetId(std::forward<SubnetIdT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_name;
157
158 Aws::Vector<Aws::String> m_networkInterfaceIds;
159
161
162 Aws::String m_roleArn;
163
164 Aws::Vector<Aws::String> m_securityGroupIds;
165
166 Aws::String m_subnetId;
167 bool m_nameHasBeenSet = false;
168 bool m_networkInterfaceIdsHasBeenSet = false;
169 bool m_networkInterfaceTypeHasBeenSet = false;
170 bool m_roleArnHasBeenSet = false;
171 bool m_securityGroupIdsHasBeenSet = false;
172 bool m_subnetIdHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace MediaConnect
177} // namespace Aws
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
const Aws::String & GetRoleArn() const
AWS_MEDIACONNECT_API VpcInterface()=default
void SetSubnetId(SubnetIdT &&value)
void SetNetworkInterfaceType(NetworkInterfaceType value)
VpcInterface & WithSecurityGroupIds(SecurityGroupIdsT &&value)
VpcInterface & WithName(NameT &&value)
VpcInterface & WithRoleArn(RoleArnT &&value)
VpcInterface & WithNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
VpcInterface & AddSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetSubnetId() const
AWS_MEDIACONNECT_API VpcInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
NetworkInterfaceType GetNetworkInterfaceType() const
VpcInterface & WithNetworkInterfaceType(NetworkInterfaceType value)
const Aws::Vector< Aws::String > & GetNetworkInterfaceIds() const
void SetNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
VpcInterface & WithSubnetId(SubnetIdT &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API VpcInterface(Aws::Utils::Json::JsonView jsonValue)
VpcInterface & AddNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue