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

com.pulumi.azurenative.awsconnector.inputs.VolumeFromArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.awsconnector.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of VolumeFrom
 * 
 */
public final class VolumeFromArgs extends com.pulumi.resources.ResourceArgs {

    public static final VolumeFromArgs Empty = new VolumeFromArgs();

    /**
     * If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
     * 
     */
    @Import(name="readOnly")
    private @Nullable Output readOnly;

    /**
     * @return If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
     * 
     */
    public Optional> readOnly() {
        return Optional.ofNullable(this.readOnly);
    }

    /**
     * The name of another container within the same task definition to mount volumes from.
     * 
     */
    @Import(name="sourceContainer")
    private @Nullable Output sourceContainer;

    /**
     * @return The name of another container within the same task definition to mount volumes from.
     * 
     */
    public Optional> sourceContainer() {
        return Optional.ofNullable(this.sourceContainer);
    }

    private VolumeFromArgs() {}

    private VolumeFromArgs(VolumeFromArgs $) {
        this.readOnly = $.readOnly;
        this.sourceContainer = $.sourceContainer;
    }

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

    public static final class Builder {
        private VolumeFromArgs $;

        public Builder() {
            $ = new VolumeFromArgs();
        }

        public Builder(VolumeFromArgs defaults) {
            $ = new VolumeFromArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param readOnly If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
         * 
         * @return builder
         * 
         */
        public Builder readOnly(@Nullable Output readOnly) {
            $.readOnly = readOnly;
            return this;
        }

        /**
         * @param readOnly If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
         * 
         * @return builder
         * 
         */
        public Builder readOnly(Boolean readOnly) {
            return readOnly(Output.of(readOnly));
        }

        /**
         * @param sourceContainer The name of another container within the same task definition to mount volumes from.
         * 
         * @return builder
         * 
         */
        public Builder sourceContainer(@Nullable Output sourceContainer) {
            $.sourceContainer = sourceContainer;
            return this;
        }

        /**
         * @param sourceContainer The name of another container within the same task definition to mount volumes from.
         * 
         * @return builder
         * 
         */
        public Builder sourceContainer(String sourceContainer) {
            return sourceContainer(Output.of(sourceContainer));
        }

        public VolumeFromArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy