AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcInterface.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mediaconnect/model/NetworkInterfaceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaConnect
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MEDIACONNECT_API VpcInterface() = default;
37 AWS_MEDIACONNECT_API VpcInterface(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIACONNECT_API VpcInterface& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 VpcInterface& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = std::forward<NetworkInterfaceIdsT>(value); }
64 template<typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
65 VpcInterface& WithNetworkInterfaceIds(NetworkInterfaceIdsT&& value) { SetNetworkInterfaceIds(std::forward<NetworkInterfaceIdsT>(value)); return *this;}
66 template<typename NetworkInterfaceIdsT = Aws::String>
67 VpcInterface& AddNetworkInterfaceIds(NetworkInterfaceIdsT&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.emplace_back(std::forward<NetworkInterfaceIdsT>(value)); return *this; }
69
71
74 inline NetworkInterfaceType GetNetworkInterfaceType() const { return m_networkInterfaceType; }
75 inline bool NetworkInterfaceTypeHasBeenSet() const { return m_networkInterfaceTypeHasBeenSet; }
76 inline void SetNetworkInterfaceType(NetworkInterfaceType value) { m_networkInterfaceTypeHasBeenSet = true; m_networkInterfaceType = value; }
79
81
84 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
85 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
86 template<typename RoleArnT = Aws::String>
87 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
88 template<typename RoleArnT = Aws::String>
89 VpcInterface& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
91
93
96 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
97 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
98 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
99 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
100 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
101 VpcInterface& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
102 template<typename SecurityGroupIdsT = Aws::String>
103 VpcInterface& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
105
107
110 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
111 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
112 template<typename SubnetIdT = Aws::String>
113 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
114 template<typename SubnetIdT = Aws::String>
115 VpcInterface& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
117 private:
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_networkInterfaceIds;
123 bool m_networkInterfaceIdsHasBeenSet = false;
124
126 bool m_networkInterfaceTypeHasBeenSet = false;
127
128 Aws::String m_roleArn;
129 bool m_roleArnHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_securityGroupIds;
132 bool m_securityGroupIdsHasBeenSet = false;
133
134 Aws::String m_subnetId;
135 bool m_subnetIdHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace MediaConnect
140} // 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