// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class NetworkInterfaceAttachmentState extends com.pulumi.resources.ResourceArgs {

    public static final NetworkInterfaceAttachmentState Empty = new NetworkInterfaceAttachmentState();

    /**
     * The ENI Attachment ID.
     * 
     */
    @Import(name="attachmentId")
    private @Nullable Output<String> attachmentId;

    /**
     * @return The ENI Attachment ID.
     * 
     */
    public Optional<Output<String>> attachmentId() {
        return Optional.ofNullable(this.attachmentId);
    }

    /**
     * Network interface index (int).
     * 
     */
    @Import(name="deviceIndex")
    private @Nullable Output<Integer> deviceIndex;

    /**
     * @return Network interface index (int).
     * 
     */
    public Optional<Output<Integer>> deviceIndex() {
        return Optional.ofNullable(this.deviceIndex);
    }

    /**
     * Instance ID to attach.
     * 
     */
    @Import(name="instanceId")
    private @Nullable Output<String> instanceId;

    /**
     * @return Instance ID to attach.
     * 
     */
    public Optional<Output<String>> instanceId() {
        return Optional.ofNullable(this.instanceId);
    }

    /**
     * ENI ID to attach.
     * 
     */
    @Import(name="networkInterfaceId")
    private @Nullable Output<String> networkInterfaceId;

    /**
     * @return ENI ID to attach.
     * 
     */
    public Optional<Output<String>> networkInterfaceId() {
        return Optional.ofNullable(this.networkInterfaceId);
    }

    /**
     * The status of the Network Interface Attachment.
     * 
     */
    @Import(name="status")
    private @Nullable Output<String> status;

    /**
     * @return The status of the Network Interface Attachment.
     * 
     */
    public Optional<Output<String>> status() {
        return Optional.ofNullable(this.status);
    }

    private NetworkInterfaceAttachmentState() {}

    private NetworkInterfaceAttachmentState(NetworkInterfaceAttachmentState $) {
        this.attachmentId = $.attachmentId;
        this.deviceIndex = $.deviceIndex;
        this.instanceId = $.instanceId;
        this.networkInterfaceId = $.networkInterfaceId;
        this.status = $.status;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(NetworkInterfaceAttachmentState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private NetworkInterfaceAttachmentState $;

        public Builder() {
            $ = new NetworkInterfaceAttachmentState();
        }

        public Builder(NetworkInterfaceAttachmentState defaults) {
            $ = new NetworkInterfaceAttachmentState(Objects.requireNonNull(defaults));
        }

        /**
         * @param attachmentId The ENI Attachment ID.
         * 
         * @return builder
         * 
         */
        public Builder attachmentId(@Nullable Output<String> attachmentId) {
            $.attachmentId = attachmentId;
            return this;
        }

        /**
         * @param attachmentId The ENI Attachment ID.
         * 
         * @return builder
         * 
         */
        public Builder attachmentId(String attachmentId) {
            return attachmentId(Output.of(attachmentId));
        }

        /**
         * @param deviceIndex Network interface index (int).
         * 
         * @return builder
         * 
         */
        public Builder deviceIndex(@Nullable Output<Integer> 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(@Nullable Output<String> 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(@Nullable Output<String> networkInterfaceId) {
            $.networkInterfaceId = networkInterfaceId;
            return this;
        }

        /**
         * @param networkInterfaceId ENI ID to attach.
         * 
         * @return builder
         * 
         */
        public Builder networkInterfaceId(String networkInterfaceId) {
            return networkInterfaceId(Output.of(networkInterfaceId));
        }

        /**
         * @param status The status of the Network Interface Attachment.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output<String> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of the Network Interface Attachment.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public NetworkInterfaceAttachmentState build() {
            return $;
        }
    }

}
