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

com.pulumi.azurenative.containerinstance.outputs.VolumeMountResponse 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.containerinstance.outputs;

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

@CustomType
public final class VolumeMountResponse {
    /**
     * @return The path within the container where the volume should be mounted. Must not contain colon (:).
     * 
     */
    private String mountPath;
    /**
     * @return The name of the volume mount.
     * 
     */
    private String name;
    /**
     * @return The flag indicating whether the volume mount is read-only.
     * 
     */
    private @Nullable Boolean readOnly;

    private VolumeMountResponse() {}
    /**
     * @return The path within the container where the volume should be mounted. Must not contain colon (:).
     * 
     */
    public String mountPath() {
        return this.mountPath;
    }
    /**
     * @return The name of the volume mount.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The flag indicating whether the volume mount is read-only.
     * 
     */
    public Optional readOnly() {
        return Optional.ofNullable(this.readOnly);
    }

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

    public static Builder builder(VolumeMountResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String mountPath;
        private String name;
        private @Nullable Boolean readOnly;
        public Builder() {}
        public Builder(VolumeMountResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.mountPath = defaults.mountPath;
    	      this.name = defaults.name;
    	      this.readOnly = defaults.readOnly;
        }

        @CustomType.Setter
        public Builder mountPath(String mountPath) {
            if (mountPath == null) {
              throw new MissingRequiredPropertyException("VolumeMountResponse", "mountPath");
            }
            this.mountPath = mountPath;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("VolumeMountResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder readOnly(@Nullable Boolean readOnly) {

            this.readOnly = readOnly;
            return this;
        }
        public VolumeMountResponse build() {
            final var _resultValue = new VolumeMountResponse();
            _resultValue.mountPath = mountPath;
            _resultValue.name = name;
            _resultValue.readOnly = readOnly;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy