AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline VpcInterface& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline VpcInterface& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline VpcInterface& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const{ return m_networkInterfaceIds; }
61 inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
62 inline void SetNetworkInterfaceIds(const Aws::Vector<Aws::String>& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = value; }
63 inline void SetNetworkInterfaceIds(Aws::Vector<Aws::String>&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = std::move(value); }
65 inline VpcInterface& WithNetworkInterfaceIds(Aws::Vector<Aws::String>&& value) { SetNetworkInterfaceIds(std::move(value)); return *this;}
66 inline VpcInterface& AddNetworkInterfaceIds(const Aws::String& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; }
67 inline VpcInterface& AddNetworkInterfaceIds(Aws::String&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(std::move(value)); return *this; }
68 inline VpcInterface& AddNetworkInterfaceIds(const char* value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; }
70
72
75 inline const NetworkInterfaceType& GetNetworkInterfaceType() const{ return m_networkInterfaceType; }
76 inline bool NetworkInterfaceTypeHasBeenSet() const { return m_networkInterfaceTypeHasBeenSet; }
77 inline void SetNetworkInterfaceType(const NetworkInterfaceType& value) { m_networkInterfaceTypeHasBeenSet = true; m_networkInterfaceType = value; }
78 inline void SetNetworkInterfaceType(NetworkInterfaceType&& value) { m_networkInterfaceTypeHasBeenSet = true; m_networkInterfaceType = std::move(value); }
80 inline VpcInterface& WithNetworkInterfaceType(NetworkInterfaceType&& value) { SetNetworkInterfaceType(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
88 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
89 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
90 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
91 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
92 inline VpcInterface& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
93 inline VpcInterface& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
94 inline VpcInterface& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
96
98
101 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
102 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
103 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
104 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
106 inline VpcInterface& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
107 inline VpcInterface& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
108 inline VpcInterface& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
109 inline VpcInterface& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
111
113
116 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
117 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
118 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
119 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
120 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
121 inline VpcInterface& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
122 inline VpcInterface& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
123 inline VpcInterface& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
125 private:
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_networkInterfaceIds;
131 bool m_networkInterfaceIdsHasBeenSet = false;
132
133 NetworkInterfaceType m_networkInterfaceType;
134 bool m_networkInterfaceTypeHasBeenSet = false;
135
136 Aws::String m_roleArn;
137 bool m_roleArnHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_securityGroupIds;
140 bool m_securityGroupIdsHasBeenSet = false;
141
142 Aws::String m_subnetId;
143 bool m_subnetIdHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace MediaConnect
148} // namespace Aws
void SetNetworkInterfaceType(NetworkInterfaceType &&value)
void SetName(const Aws::String &value)
VpcInterface & AddNetworkInterfaceIds(Aws::String &&value)
VpcInterface & WithRoleArn(const Aws::String &value)
VpcInterface & AddSecurityGroupIds(const Aws::String &value)
const NetworkInterfaceType & GetNetworkInterfaceType() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
VpcInterface & AddSecurityGroupIds(Aws::String &&value)
void SetSubnetId(Aws::String &&value)
const Aws::String & GetRoleArn() const
VpcInterface & WithSubnetId(const Aws::String &value)
void SetNetworkInterfaceType(const NetworkInterfaceType &value)
VpcInterface & WithName(const Aws::String &value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
VpcInterface & AddNetworkInterfaceIds(const char *value)
VpcInterface & WithSubnetId(Aws::String &&value)
VpcInterface & AddNetworkInterfaceIds(const Aws::String &value)
VpcInterface & WithNetworkInterfaceType(const NetworkInterfaceType &value)
VpcInterface & WithName(const char *value)
void SetRoleArn(const char *value)
VpcInterface & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
VpcInterface & WithRoleArn(const char *value)
VpcInterface & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetName(Aws::String &&value)
VpcInterface & WithSubnetId(const char *value)
AWS_MEDIACONNECT_API VpcInterface()
const Aws::String & GetSubnetId() const
VpcInterface & WithNetworkInterfaceType(NetworkInterfaceType &&value)
void SetNetworkInterfaceIds(Aws::Vector< Aws::String > &&value)
AWS_MEDIACONNECT_API VpcInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcInterface & WithNetworkInterfaceIds(Aws::Vector< Aws::String > &&value)
VpcInterface & WithRoleArn(Aws::String &&value)
void SetRoleArn(Aws::String &&value)
const Aws::String & GetName() const
void SetRoleArn(const Aws::String &value)
void SetSubnetId(const Aws::String &value)
VpcInterface & AddSecurityGroupIds(const char *value)
const Aws::Vector< Aws::String > & GetNetworkInterfaceIds() const
VpcInterface & WithName(Aws::String &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubnetId(const char *value)
VpcInterface & WithNetworkInterfaceIds(const Aws::Vector< Aws::String > &value)
void SetNetworkInterfaceIds(const Aws::Vector< Aws::String > &value)
AWS_MEDIACONNECT_API VpcInterface(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue