All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.awsconnector.inputs.InstanceNetworkInterfaceAttachmentArgs 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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.AttachmentStatusEnumValueArgs;
import com.pulumi.azurenative.awsconnector.inputs.InstanceAttachmentEnaSrdSpecificationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of InstanceNetworkInterfaceAttachment
 * 
 */
public final class InstanceNetworkInterfaceAttachmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final InstanceNetworkInterfaceAttachmentArgs Empty = new InstanceNetworkInterfaceAttachmentArgs();

    /**
     * <p>The time stamp when the attachment initiated.</p>
     * 
     */
    @Import(name="attachTime")
    private @Nullable Output attachTime;

    /**
     * @return <p>The time stamp when the attachment initiated.</p>
     * 
     */
    public Optional> attachTime() {
        return Optional.ofNullable(this.attachTime);
    }

    /**
     * <p>The ID of the network interface attachment.</p>
     * 
     */
    @Import(name="attachmentId")
    private @Nullable Output attachmentId;

    /**
     * @return <p>The ID of the network interface attachment.</p>
     * 
     */
    public Optional> attachmentId() {
        return Optional.ofNullable(this.attachmentId);
    }

    /**
     * <p>Indicates whether the network interface is deleted when the instance is terminated.</p>
     * 
     */
    @Import(name="deleteOnTermination")
    private @Nullable Output deleteOnTermination;

    /**
     * @return <p>Indicates whether the network interface is deleted when the instance is terminated.</p>
     * 
     */
    public Optional> deleteOnTermination() {
        return Optional.ofNullable(this.deleteOnTermination);
    }

    /**
     * <p>The index of the device on the instance for the network interface attachment.</p>
     * 
     */
    @Import(name="deviceIndex")
    private @Nullable Output deviceIndex;

    /**
     * @return <p>The index of the device on the instance for the network interface attachment.</p>
     * 
     */
    public Optional> deviceIndex() {
        return Optional.ofNullable(this.deviceIndex);
    }

    /**
     * <p>Contains the ENA Express settings for the network interface that's attached to the instance.</p>
     * 
     */
    @Import(name="enaSrdSpecification")
    private @Nullable Output enaSrdSpecification;

    /**
     * @return <p>Contains the ENA Express settings for the network interface that's attached to the instance.</p>
     * 
     */
    public Optional> enaSrdSpecification() {
        return Optional.ofNullable(this.enaSrdSpecification);
    }

    /**
     * <p>The index of the network card.</p>
     * 
     */
    @Import(name="networkCardIndex")
    private @Nullable Output networkCardIndex;

    /**
     * @return <p>The index of the network card.</p>
     * 
     */
    public Optional> networkCardIndex() {
        return Optional.ofNullable(this.networkCardIndex);
    }

    /**
     * <p>The attachment state.</p>
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return <p>The attachment state.</p>
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private InstanceNetworkInterfaceAttachmentArgs() {}

    private InstanceNetworkInterfaceAttachmentArgs(InstanceNetworkInterfaceAttachmentArgs $) {
        this.attachTime = $.attachTime;
        this.attachmentId = $.attachmentId;
        this.deleteOnTermination = $.deleteOnTermination;
        this.deviceIndex = $.deviceIndex;
        this.enaSrdSpecification = $.enaSrdSpecification;
        this.networkCardIndex = $.networkCardIndex;
        this.status = $.status;
    }

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

    public static final class Builder {
        private InstanceNetworkInterfaceAttachmentArgs $;

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

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

        /**
         * @param attachTime <p>The time stamp when the attachment initiated.</p>
         * 
         * @return builder
         * 
         */
        public Builder attachTime(@Nullable Output attachTime) {
            $.attachTime = attachTime;
            return this;
        }

        /**
         * @param attachTime <p>The time stamp when the attachment initiated.</p>
         * 
         * @return builder
         * 
         */
        public Builder attachTime(String attachTime) {
            return attachTime(Output.of(attachTime));
        }

        /**
         * @param attachmentId <p>The ID of the network interface attachment.</p>
         * 
         * @return builder
         * 
         */
        public Builder attachmentId(@Nullable Output attachmentId) {
            $.attachmentId = attachmentId;
            return this;
        }

        /**
         * @param attachmentId <p>The ID of the network interface attachment.</p>
         * 
         * @return builder
         * 
         */
        public Builder attachmentId(String attachmentId) {
            return attachmentId(Output.of(attachmentId));
        }

        /**
         * @param deleteOnTermination <p>Indicates whether the network interface is deleted when the instance is terminated.</p>
         * 
         * @return builder
         * 
         */
        public Builder deleteOnTermination(@Nullable Output deleteOnTermination) {
            $.deleteOnTermination = deleteOnTermination;
            return this;
        }

        /**
         * @param deleteOnTermination <p>Indicates whether the network interface is deleted when the instance is terminated.</p>
         * 
         * @return builder
         * 
         */
        public Builder deleteOnTermination(Boolean deleteOnTermination) {
            return deleteOnTermination(Output.of(deleteOnTermination));
        }

        /**
         * @param deviceIndex <p>The index of the device on the instance for the network interface attachment.</p>
         * 
         * @return builder
         * 
         */
        public Builder deviceIndex(@Nullable Output deviceIndex) {
            $.deviceIndex = deviceIndex;
            return this;
        }

        /**
         * @param deviceIndex <p>The index of the device on the instance for the network interface attachment.</p>
         * 
         * @return builder
         * 
         */
        public Builder deviceIndex(Integer deviceIndex) {
            return deviceIndex(Output.of(deviceIndex));
        }

        /**
         * @param enaSrdSpecification <p>Contains the ENA Express settings for the network interface that's attached to the instance.</p>
         * 
         * @return builder
         * 
         */
        public Builder enaSrdSpecification(@Nullable Output enaSrdSpecification) {
            $.enaSrdSpecification = enaSrdSpecification;
            return this;
        }

        /**
         * @param enaSrdSpecification <p>Contains the ENA Express settings for the network interface that's attached to the instance.</p>
         * 
         * @return builder
         * 
         */
        public Builder enaSrdSpecification(InstanceAttachmentEnaSrdSpecificationArgs enaSrdSpecification) {
            return enaSrdSpecification(Output.of(enaSrdSpecification));
        }

        /**
         * @param networkCardIndex <p>The index of the network card.</p>
         * 
         * @return builder
         * 
         */
        public Builder networkCardIndex(@Nullable Output networkCardIndex) {
            $.networkCardIndex = networkCardIndex;
            return this;
        }

        /**
         * @param networkCardIndex <p>The index of the network card.</p>
         * 
         * @return builder
         * 
         */
        public Builder networkCardIndex(Integer networkCardIndex) {
            return networkCardIndex(Output.of(networkCardIndex));
        }

        /**
         * @param status <p>The attachment state.</p>
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status <p>The attachment state.</p>
         * 
         * @return builder
         * 
         */
        public Builder status(AttachmentStatusEnumValueArgs status) {
            return status(Output.of(status));
        }

        public InstanceNetworkInterfaceAttachmentArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy