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

com.pulumi.azurenative.machinelearningservices.outputs.VolumeDefinitionResponse 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.machinelearningservices.outputs;

import com.pulumi.azurenative.machinelearningservices.outputs.BindOptionsResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.TmpfsOptionsResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.VolumeOptionsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VolumeDefinitionResponse {
    /**
     * @return Bind Options of the mount
     * 
     */
    private @Nullable BindOptionsResponse bind;
    /**
     * @return Consistency of the volume
     * 
     */
    private @Nullable String consistency;
    /**
     * @return Indicate whether to mount volume as readOnly. Default value for this is false.
     * 
     */
    private @Nullable Boolean readOnly;
    /**
     * @return Source of the mount. For bind mounts this is the host path.
     * 
     */
    private @Nullable String source;
    /**
     * @return Target of the mount. For bind mounts this is the path in the container.
     * 
     */
    private @Nullable String target;
    /**
     * @return tmpfs option of the mount
     * 
     */
    private @Nullable TmpfsOptionsResponse tmpfs;
    /**
     * @return Type of Volume Definition. Possible Values: bind,volume,tmpfs,npipe
     * 
     */
    private @Nullable String type;
    /**
     * @return Volume Options of the mount
     * 
     */
    private @Nullable VolumeOptionsResponse volume;

    private VolumeDefinitionResponse() {}
    /**
     * @return Bind Options of the mount
     * 
     */
    public Optional bind() {
        return Optional.ofNullable(this.bind);
    }
    /**
     * @return Consistency of the volume
     * 
     */
    public Optional consistency() {
        return Optional.ofNullable(this.consistency);
    }
    /**
     * @return Indicate whether to mount volume as readOnly. Default value for this is false.
     * 
     */
    public Optional readOnly() {
        return Optional.ofNullable(this.readOnly);
    }
    /**
     * @return Source of the mount. For bind mounts this is the host path.
     * 
     */
    public Optional source() {
        return Optional.ofNullable(this.source);
    }
    /**
     * @return Target of the mount. For bind mounts this is the path in the container.
     * 
     */
    public Optional target() {
        return Optional.ofNullable(this.target);
    }
    /**
     * @return tmpfs option of the mount
     * 
     */
    public Optional tmpfs() {
        return Optional.ofNullable(this.tmpfs);
    }
    /**
     * @return Type of Volume Definition. Possible Values: bind,volume,tmpfs,npipe
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }
    /**
     * @return Volume Options of the mount
     * 
     */
    public Optional volume() {
        return Optional.ofNullable(this.volume);
    }

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

    public static Builder builder(VolumeDefinitionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable BindOptionsResponse bind;
        private @Nullable String consistency;
        private @Nullable Boolean readOnly;
        private @Nullable String source;
        private @Nullable String target;
        private @Nullable TmpfsOptionsResponse tmpfs;
        private @Nullable String type;
        private @Nullable VolumeOptionsResponse volume;
        public Builder() {}
        public Builder(VolumeDefinitionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bind = defaults.bind;
    	      this.consistency = defaults.consistency;
    	      this.readOnly = defaults.readOnly;
    	      this.source = defaults.source;
    	      this.target = defaults.target;
    	      this.tmpfs = defaults.tmpfs;
    	      this.type = defaults.type;
    	      this.volume = defaults.volume;
        }

        @CustomType.Setter
        public Builder bind(@Nullable BindOptionsResponse bind) {

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

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

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

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

            this.target = target;
            return this;
        }
        @CustomType.Setter
        public Builder tmpfs(@Nullable TmpfsOptionsResponse tmpfs) {

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

            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder volume(@Nullable VolumeOptionsResponse volume) {

            this.volume = volume;
            return this;
        }
        public VolumeDefinitionResponse build() {
            final var _resultValue = new VolumeDefinitionResponse();
            _resultValue.bind = bind;
            _resultValue.consistency = consistency;
            _resultValue.readOnly = readOnly;
            _resultValue.source = source;
            _resultValue.target = target;
            _resultValue.tmpfs = tmpfs;
            _resultValue.type = type;
            _resultValue.volume = volume;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy