AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcInterfaceRequest.h
1
6#pragma once
7#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconnect/model/NetworkInterfaceType.h>
10#include <aws/core/utils/memory/stl/AWSVector.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
35 {
36 public:
37 AWS_MEDIACONNECT_API VpcInterfaceRequest() = default;
38 AWS_MEDIACONNECT_API VpcInterfaceRequest(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 VpcInterfaceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline NetworkInterfaceType GetNetworkInterfaceType() const { return m_networkInterfaceType; }
61 inline bool NetworkInterfaceTypeHasBeenSet() const { return m_networkInterfaceTypeHasBeenSet; }
62 inline void SetNetworkInterfaceType(NetworkInterfaceType value) { m_networkInterfaceTypeHasBeenSet = true; m_networkInterfaceType = value; }
65
67
71 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
72 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
73 template<typename RoleArnT = Aws::String>
74 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
75 template<typename RoleArnT = Aws::String>
76 VpcInterfaceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
84 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
85 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
86 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
87 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
88 VpcInterfaceRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
89 template<typename SecurityGroupIdsT = Aws::String>
90 VpcInterfaceRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
92
94
104 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
105 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
106 template<typename SubnetIdT = Aws::String>
107 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
108 template<typename SubnetIdT = Aws::String>
109 VpcInterfaceRequest& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
111 private:
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
117 bool m_networkInterfaceTypeHasBeenSet = false;
118
119 Aws::String m_roleArn;
120 bool m_roleArnHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_securityGroupIds;
123 bool m_securityGroupIdsHasBeenSet = false;
124
125 Aws::String m_subnetId;
126 bool m_subnetIdHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace MediaConnect
131} // namespace Aws
AWS_MEDIACONNECT_API VpcInterfaceRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VpcInterfaceRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
VpcInterfaceRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
void SetNetworkInterfaceType(NetworkInterfaceType value)
AWS_MEDIACONNECT_API VpcInterfaceRequest()=default
VpcInterfaceRequest & WithSubnetId(SubnetIdT &&value)
VpcInterfaceRequest & WithRoleArn(RoleArnT &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API VpcInterfaceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcInterfaceRequest & WithName(NameT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
VpcInterfaceRequest & WithNetworkInterfaceType(NetworkInterfaceType value)
NetworkInterfaceType GetNetworkInterfaceType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue