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

com.pulumi.azurenative.awsconnector.outputs.InstanceNetworkInterfaceAttachmentResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
Show newest version
// *** 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.outputs;

import com.pulumi.azurenative.awsconnector.outputs.AttachmentStatusEnumValueResponse;
import com.pulumi.azurenative.awsconnector.outputs.InstanceAttachmentEnaSrdSpecificationResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class InstanceNetworkInterfaceAttachmentResponse {
    /**
     * @return <p>The time stamp when the attachment initiated.</p>
     * 
     */
    private @Nullable String attachTime;
    /**
     * @return <p>The ID of the network interface attachment.</p>
     * 
     */
    private @Nullable String attachmentId;
    /**
     * @return <p>Indicates whether the network interface is deleted when the instance is terminated.</p>
     * 
     */
    private @Nullable Boolean deleteOnTermination;
    /**
     * @return <p>The index of the device on the instance for the network interface attachment.</p>
     * 
     */
    private @Nullable Integer deviceIndex;
    /**
     * @return <p>Contains the ENA Express settings for the network interface that's attached to the instance.</p>
     * 
     */
    private @Nullable InstanceAttachmentEnaSrdSpecificationResponse enaSrdSpecification;
    /**
     * @return <p>The index of the network card.</p>
     * 
     */
    private @Nullable Integer networkCardIndex;
    /**
     * @return <p>The attachment state.</p>
     * 
     */
    private @Nullable AttachmentStatusEnumValueResponse status;

    private InstanceNetworkInterfaceAttachmentResponse() {}
    /**
     * @return <p>The time stamp when the attachment initiated.</p>
     * 
     */
    public Optional attachTime() {
        return Optional.ofNullable(this.attachTime);
    }
    /**
     * @return <p>The ID of the network interface attachment.</p>
     * 
     */
    public Optional attachmentId() {
        return Optional.ofNullable(this.attachmentId);
    }
    /**
     * @return <p>Indicates whether the network interface is deleted when the instance is terminated.</p>
     * 
     */
    public Optional deleteOnTermination() {
        return Optional.ofNullable(this.deleteOnTermination);
    }
    /**
     * @return <p>The index of the device on the instance for the network interface attachment.</p>
     * 
     */
    public Optional deviceIndex() {
        return Optional.ofNullable(this.deviceIndex);
    }
    /**
     * @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);
    }
    /**
     * @return <p>The index of the network card.</p>
     * 
     */
    public Optional networkCardIndex() {
        return Optional.ofNullable(this.networkCardIndex);
    }
    /**
     * @return <p>The attachment state.</p>
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }

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

    public static Builder builder(InstanceNetworkInterfaceAttachmentResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String attachTime;
        private @Nullable String attachmentId;
        private @Nullable Boolean deleteOnTermination;
        private @Nullable Integer deviceIndex;
        private @Nullable InstanceAttachmentEnaSrdSpecificationResponse enaSrdSpecification;
        private @Nullable Integer networkCardIndex;
        private @Nullable AttachmentStatusEnumValueResponse status;
        public Builder() {}
        public Builder(InstanceNetworkInterfaceAttachmentResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.attachTime = defaults.attachTime;
    	      this.attachmentId = defaults.attachmentId;
    	      this.deleteOnTermination = defaults.deleteOnTermination;
    	      this.deviceIndex = defaults.deviceIndex;
    	      this.enaSrdSpecification = defaults.enaSrdSpecification;
    	      this.networkCardIndex = defaults.networkCardIndex;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder attachTime(@Nullable String attachTime) {

            this.attachTime = attachTime;
            return this;
        }
        @CustomType.Setter
        public Builder attachmentId(@Nullable String attachmentId) {

            this.attachmentId = attachmentId;
            return this;
        }
        @CustomType.Setter
        public Builder deleteOnTermination(@Nullable Boolean deleteOnTermination) {

            this.deleteOnTermination = deleteOnTermination;
            return this;
        }
        @CustomType.Setter
        public Builder deviceIndex(@Nullable Integer deviceIndex) {

            this.deviceIndex = deviceIndex;
            return this;
        }
        @CustomType.Setter
        public Builder enaSrdSpecification(@Nullable InstanceAttachmentEnaSrdSpecificationResponse enaSrdSpecification) {

            this.enaSrdSpecification = enaSrdSpecification;
            return this;
        }
        @CustomType.Setter
        public Builder networkCardIndex(@Nullable Integer networkCardIndex) {

            this.networkCardIndex = networkCardIndex;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable AttachmentStatusEnumValueResponse status) {

            this.status = status;
            return this;
        }
        public InstanceNetworkInterfaceAttachmentResponse build() {
            final var _resultValue = new InstanceNetworkInterfaceAttachmentResponse();
            _resultValue.attachTime = attachTime;
            _resultValue.attachmentId = attachmentId;
            _resultValue.deleteOnTermination = deleteOnTermination;
            _resultValue.deviceIndex = deviceIndex;
            _resultValue.enaSrdSpecification = enaSrdSpecification;
            _resultValue.networkCardIndex = networkCardIndex;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy