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

com.pulumi.azurenative.avs.outputs.DiskPoolVolumeResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.avs.outputs;

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

@CustomType
public final class DiskPoolVolumeResponse {
    /**
     * @return Name of the LUN to be used for datastore
     * 
     */
    private String lunName;
    /**
     * @return Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN
     * 
     */
    private @Nullable String mountOption;
    /**
     * @return Device path
     * 
     */
    private String path;
    /**
     * @return Azure resource ID of the iSCSI target
     * 
     */
    private String targetId;

    private DiskPoolVolumeResponse() {}
    /**
     * @return Name of the LUN to be used for datastore
     * 
     */
    public String lunName() {
        return this.lunName;
    }
    /**
     * @return Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN
     * 
     */
    public Optional mountOption() {
        return Optional.ofNullable(this.mountOption);
    }
    /**
     * @return Device path
     * 
     */
    public String path() {
        return this.path;
    }
    /**
     * @return Azure resource ID of the iSCSI target
     * 
     */
    public String targetId() {
        return this.targetId;
    }

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

    public static Builder builder(DiskPoolVolumeResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String lunName;
        private @Nullable String mountOption;
        private String path;
        private String targetId;
        public Builder() {}
        public Builder(DiskPoolVolumeResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.lunName = defaults.lunName;
    	      this.mountOption = defaults.mountOption;
    	      this.path = defaults.path;
    	      this.targetId = defaults.targetId;
        }

        @CustomType.Setter
        public Builder lunName(String lunName) {
            if (lunName == null) {
              throw new MissingRequiredPropertyException("DiskPoolVolumeResponse", "lunName");
            }
            this.lunName = lunName;
            return this;
        }
        @CustomType.Setter
        public Builder mountOption(@Nullable String mountOption) {

            this.mountOption = mountOption;
            return this;
        }
        @CustomType.Setter
        public Builder path(String path) {
            if (path == null) {
              throw new MissingRequiredPropertyException("DiskPoolVolumeResponse", "path");
            }
            this.path = path;
            return this;
        }
        @CustomType.Setter
        public Builder targetId(String targetId) {
            if (targetId == null) {
              throw new MissingRequiredPropertyException("DiskPoolVolumeResponse", "targetId");
            }
            this.targetId = targetId;
            return this;
        }
        public DiskPoolVolumeResponse build() {
            final var _resultValue = new DiskPoolVolumeResponse();
            _resultValue.lunName = lunName;
            _resultValue.mountOption = mountOption;
            _resultValue.path = path;
            _resultValue.targetId = targetId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy