AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
34 {
35 public:
36 AWS_MEDIACONNECT_API VpcInterfaceRequest();
37 AWS_MEDIACONNECT_API VpcInterfaceRequest(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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline VpcInterfaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline VpcInterfaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline VpcInterfaceRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const NetworkInterfaceType& GetNetworkInterfaceType() const{ return m_networkInterfaceType; }
63 inline bool NetworkInterfaceTypeHasBeenSet() const { return m_networkInterfaceTypeHasBeenSet; }
64 inline void SetNetworkInterfaceType(const NetworkInterfaceType& value) { m_networkInterfaceTypeHasBeenSet = true; m_networkInterfaceType = value; }
65 inline void SetNetworkInterfaceType(NetworkInterfaceType&& value) { m_networkInterfaceTypeHasBeenSet = true; m_networkInterfaceType = std::move(value); }
69
71
74 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
75 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
76 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
77 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
78 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
79 inline VpcInterfaceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
80 inline VpcInterfaceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
81 inline VpcInterfaceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
83
85
88 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
89 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
90 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
91 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
93 inline VpcInterfaceRequest& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
94 inline VpcInterfaceRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
95 inline VpcInterfaceRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
96 inline VpcInterfaceRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
98
100
103 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
104 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
105 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
106 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
107 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
108 inline VpcInterfaceRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
109 inline VpcInterfaceRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
110 inline VpcInterfaceRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
112 private:
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 NetworkInterfaceType m_networkInterfaceType;
118 bool m_networkInterfaceTypeHasBeenSet = false;
119
120 Aws::String m_roleArn;
121 bool m_roleArnHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_securityGroupIds;
124 bool m_securityGroupIdsHasBeenSet = false;
125
126 Aws::String m_subnetId;
127 bool m_subnetIdHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace MediaConnect
132} // namespace Aws
VpcInterfaceRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
VpcInterfaceRequest & WithSubnetId(const char *value)
void SetNetworkInterfaceType(NetworkInterfaceType &&value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_MEDIACONNECT_API VpcInterfaceRequest(Aws::Utils::Json::JsonView jsonValue)
VpcInterfaceRequest & WithSubnetId(Aws::String &&value)
VpcInterfaceRequest & AddSecurityGroupIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
VpcInterfaceRequest & WithRoleArn(Aws::String &&value)
VpcInterfaceRequest & WithSubnetId(const Aws::String &value)
VpcInterfaceRequest & WithName(const char *value)
void SetNetworkInterfaceType(const NetworkInterfaceType &value)
VpcInterfaceRequest & WithRoleArn(const Aws::String &value)
VpcInterfaceRequest & AddSecurityGroupIds(Aws::String &&value)
VpcInterfaceRequest & WithName(Aws::String &&value)
VpcInterfaceRequest & WithName(const Aws::String &value)
VpcInterfaceRequest & AddSecurityGroupIds(const char *value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
VpcInterfaceRequest & WithRoleArn(const char *value)
AWS_MEDIACONNECT_API VpcInterfaceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
VpcInterfaceRequest & WithNetworkInterfaceType(const NetworkInterfaceType &value)
VpcInterfaceRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const NetworkInterfaceType & GetNetworkInterfaceType() const
VpcInterfaceRequest & WithNetworkInterfaceType(NetworkInterfaceType &&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