/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaConnect
{
namespace Model
{
/**
* Desired VPC Interface for a FlowSee Also:
AWS
* API Reference
*/
class VpcInterfaceRequest
{
public:
AWS_MEDIACONNECT_API VpcInterfaceRequest();
AWS_MEDIACONNECT_API VpcInterfaceRequest(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONNECT_API VpcInterfaceRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The name of the VPC Interface. This value must be unique within the current
* flow.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the VPC Interface. This value must be unique within the current
* flow.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the VPC Interface. This value must be unique within the current
* flow.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the VPC Interface. This value must be unique within the current
* flow.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the VPC Interface. This value must be unique within the current
* flow.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the VPC Interface. This value must be unique within the current
* flow.
*/
inline VpcInterfaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the VPC Interface. This value must be unique within the current
* flow.
*/
inline VpcInterfaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the VPC Interface. This value must be unique within the current
* flow.
*/
inline VpcInterfaceRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* The type of network interface. If this value is not included in the request,
* MediaConnect uses ENA as the networkInterfaceType.
*/
inline const NetworkInterfaceType& GetNetworkInterfaceType() const{ return m_networkInterfaceType; }
/**
* The type of network interface. If this value is not included in the request,
* MediaConnect uses ENA as the networkInterfaceType.
*/
inline bool NetworkInterfaceTypeHasBeenSet() const { return m_networkInterfaceTypeHasBeenSet; }
/**
* The type of network interface. If this value is not included in the request,
* MediaConnect uses ENA as the networkInterfaceType.
*/
inline void SetNetworkInterfaceType(const NetworkInterfaceType& value) { m_networkInterfaceTypeHasBeenSet = true; m_networkInterfaceType = value; }
/**
* The type of network interface. If this value is not included in the request,
* MediaConnect uses ENA as the networkInterfaceType.
*/
inline void SetNetworkInterfaceType(NetworkInterfaceType&& value) { m_networkInterfaceTypeHasBeenSet = true; m_networkInterfaceType = std::move(value); }
/**
* The type of network interface. If this value is not included in the request,
* MediaConnect uses ENA as the networkInterfaceType.
*/
inline VpcInterfaceRequest& WithNetworkInterfaceType(const NetworkInterfaceType& value) { SetNetworkInterfaceType(value); return *this;}
/**
* The type of network interface. If this value is not included in the request,
* MediaConnect uses ENA as the networkInterfaceType.
*/
inline VpcInterfaceRequest& WithNetworkInterfaceType(NetworkInterfaceType&& value) { SetNetworkInterfaceType(std::move(value)); return *this;}
/**
* Role Arn MediaConnect can assumes to create ENIs in customer's account
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* Role Arn MediaConnect can assumes to create ENIs in customer's account
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* Role Arn MediaConnect can assumes to create ENIs in customer's account
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* Role Arn MediaConnect can assumes to create ENIs in customer's account
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* Role Arn MediaConnect can assumes to create ENIs in customer's account
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* Role Arn MediaConnect can assumes to create ENIs in customer's account
*/
inline VpcInterfaceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* Role Arn MediaConnect can assumes to create ENIs in customer's account
*/
inline VpcInterfaceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* Role Arn MediaConnect can assumes to create ENIs in customer's account
*/
inline VpcInterfaceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* Security Group IDs to be used on ENI.
*/
inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; }
/**
* Security Group IDs to be used on ENI.
*/
inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
/**
* Security Group IDs to be used on ENI.
*/
inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
/**
* Security Group IDs to be used on ENI.
*/
inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
/**
* Security Group IDs to be used on ENI.
*/
inline VpcInterfaceRequest& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;}
/**
* Security Group IDs to be used on ENI.
*/
inline VpcInterfaceRequest& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
/**
* Security Group IDs to be used on ENI.
*/
inline VpcInterfaceRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
/**
* Security Group IDs to be used on ENI.
*/
inline VpcInterfaceRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
/**
* Security Group IDs to be used on ENI.
*/
inline VpcInterfaceRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
/**
* Subnet must be in the AZ of the Flow
*/
inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
/**
* Subnet must be in the AZ of the Flow
*/
inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
/**
* Subnet must be in the AZ of the Flow
*/
inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
/**
* Subnet must be in the AZ of the Flow
*/
inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
/**
* Subnet must be in the AZ of the Flow
*/
inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
/**
* Subnet must be in the AZ of the Flow
*/
inline VpcInterfaceRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
/**
* Subnet must be in the AZ of the Flow
*/
inline VpcInterfaceRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
/**
* Subnet must be in the AZ of the Flow
*/
inline VpcInterfaceRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet = false;
NetworkInterfaceType m_networkInterfaceType;
bool m_networkInterfaceTypeHasBeenSet = false;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet = false;
Aws::Vector m_securityGroupIds;
bool m_securityGroupIdsHasBeenSet = false;
Aws::String m_subnetId;
bool m_subnetIdHasBeenSet = false;
};
} // namespace Model
} // namespace MediaConnect
} // namespace Aws