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

com.pulumi.aws.ec2.outputs.NetworkInterfaceAttachment Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.aws.ec2.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NetworkInterfaceAttachment {
    private @Nullable String attachmentId;
    /**
     * @return Integer to define the devices index.
     * 
     */
    private Integer deviceIndex;
    /**
     * @return ID of the instance to attach to.
     * 
     */
    private String instance;

    private NetworkInterfaceAttachment() {}
    public Optional attachmentId() {
        return Optional.ofNullable(this.attachmentId);
    }
    /**
     * @return Integer to define the devices index.
     * 
     */
    public Integer deviceIndex() {
        return this.deviceIndex;
    }
    /**
     * @return ID of the instance to attach to.
     * 
     */
    public String instance() {
        return this.instance;
    }

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

    public static Builder builder(NetworkInterfaceAttachment defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String attachmentId;
        private Integer deviceIndex;
        private String instance;
        public Builder() {}
        public Builder(NetworkInterfaceAttachment defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.attachmentId = defaults.attachmentId;
    	      this.deviceIndex = defaults.deviceIndex;
    	      this.instance = defaults.instance;
        }

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

            this.attachmentId = attachmentId;
            return this;
        }
        @CustomType.Setter
        public Builder deviceIndex(Integer deviceIndex) {
            if (deviceIndex == null) {
              throw new MissingRequiredPropertyException("NetworkInterfaceAttachment", "deviceIndex");
            }
            this.deviceIndex = deviceIndex;
            return this;
        }
        @CustomType.Setter
        public Builder instance(String instance) {
            if (instance == null) {
              throw new MissingRequiredPropertyException("NetworkInterfaceAttachment", "instance");
            }
            this.instance = instance;
            return this;
        }
        public NetworkInterfaceAttachment build() {
            final var _resultValue = new NetworkInterfaceAttachment();
            _resultValue.attachmentId = attachmentId;
            _resultValue.deviceIndex = deviceIndex;
            _resultValue.instance = instance;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy