
com.pulumi.aws.ec2.NetworkInterfaceAttachmentArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ec2;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class NetworkInterfaceAttachmentArgs extends com.pulumi.resources.ResourceArgs {
public static final NetworkInterfaceAttachmentArgs Empty = new NetworkInterfaceAttachmentArgs();
/**
* Network interface index (int).
*
*/
@Import(name="deviceIndex", required=true)
private Output deviceIndex;
/**
* @return Network interface index (int).
*
*/
public Output deviceIndex() {
return this.deviceIndex;
}
/**
* Instance ID to attach.
*
*/
@Import(name="instanceId", required=true)
private Output instanceId;
/**
* @return Instance ID to attach.
*
*/
public Output instanceId() {
return this.instanceId;
}
/**
* ENI ID to attach.
*
*/
@Import(name="networkInterfaceId", required=true)
private Output networkInterfaceId;
/**
* @return ENI ID to attach.
*
*/
public Output networkInterfaceId() {
return this.networkInterfaceId;
}
private NetworkInterfaceAttachmentArgs() {}
private NetworkInterfaceAttachmentArgs(NetworkInterfaceAttachmentArgs $) {
this.deviceIndex = $.deviceIndex;
this.instanceId = $.instanceId;
this.networkInterfaceId = $.networkInterfaceId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NetworkInterfaceAttachmentArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private NetworkInterfaceAttachmentArgs $;
public Builder() {
$ = new NetworkInterfaceAttachmentArgs();
}
public Builder(NetworkInterfaceAttachmentArgs defaults) {
$ = new NetworkInterfaceAttachmentArgs(Objects.requireNonNull(defaults));
}
/**
* @param deviceIndex Network interface index (int).
*
* @return builder
*
*/
public Builder deviceIndex(Output deviceIndex) {
$.deviceIndex = deviceIndex;
return this;
}
/**
* @param deviceIndex Network interface index (int).
*
* @return builder
*
*/
public Builder deviceIndex(Integer deviceIndex) {
return deviceIndex(Output.of(deviceIndex));
}
/**
* @param instanceId Instance ID to attach.
*
* @return builder
*
*/
public Builder instanceId(Output instanceId) {
$.instanceId = instanceId;
return this;
}
/**
* @param instanceId Instance ID to attach.
*
* @return builder
*
*/
public Builder instanceId(String instanceId) {
return instanceId(Output.of(instanceId));
}
/**
* @param networkInterfaceId ENI ID to attach.
*
* @return builder
*
*/
public Builder networkInterfaceId(Output networkInterfaceId) {
$.networkInterfaceId = networkInterfaceId;
return this;
}
/**
* @param networkInterfaceId ENI ID to attach.
*
* @return builder
*
*/
public Builder networkInterfaceId(String networkInterfaceId) {
return networkInterfaceId(Output.of(networkInterfaceId));
}
public NetworkInterfaceAttachmentArgs build() {
if ($.deviceIndex == null) {
throw new MissingRequiredPropertyException("NetworkInterfaceAttachmentArgs", "deviceIndex");
}
if ($.instanceId == null) {
throw new MissingRequiredPropertyException("NetworkInterfaceAttachmentArgs", "instanceId");
}
if ($.networkInterfaceId == null) {
throw new MissingRequiredPropertyException("NetworkInterfaceAttachmentArgs", "networkInterfaceId");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy