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

com.pulumi.docker.inputs.ServiceTaskSpecNetworksAdvancedArgs Maven / Gradle / Ivy

There is a newer version: 4.7.0-alpha.1705607229+34a07055
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.docker.inputs;

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


public final class ServiceTaskSpecNetworksAdvancedArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceTaskSpecNetworksAdvancedArgs Empty = new ServiceTaskSpecNetworksAdvancedArgs();

    /**
     * The network aliases of the container in the specific network.
     * 
     */
    @Import(name="aliases")
    private @Nullable Output> aliases;

    /**
     * @return The network aliases of the container in the specific network.
     * 
     */
    public Optional>> aliases() {
        return Optional.ofNullable(this.aliases);
    }

    /**
     * An array of driver options for the network, e.g. `opts1=value`
     * 
     */
    @Import(name="driverOpts")
    private @Nullable Output> driverOpts;

    /**
     * @return An array of driver options for the network, e.g. `opts1=value`
     * 
     */
    public Optional>> driverOpts() {
        return Optional.ofNullable(this.driverOpts);
    }

    /**
     * The name/id of the network.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name/id of the network.
     * 
     */
    public Output name() {
        return this.name;
    }

    private ServiceTaskSpecNetworksAdvancedArgs() {}

    private ServiceTaskSpecNetworksAdvancedArgs(ServiceTaskSpecNetworksAdvancedArgs $) {
        this.aliases = $.aliases;
        this.driverOpts = $.driverOpts;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ServiceTaskSpecNetworksAdvancedArgs $;

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

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

        /**
         * @param aliases The network aliases of the container in the specific network.
         * 
         * @return builder
         * 
         */
        public Builder aliases(@Nullable Output> aliases) {
            $.aliases = aliases;
            return this;
        }

        /**
         * @param aliases The network aliases of the container in the specific network.
         * 
         * @return builder
         * 
         */
        public Builder aliases(List aliases) {
            return aliases(Output.of(aliases));
        }

        /**
         * @param aliases The network aliases of the container in the specific network.
         * 
         * @return builder
         * 
         */
        public Builder aliases(String... aliases) {
            return aliases(List.of(aliases));
        }

        /**
         * @param driverOpts An array of driver options for the network, e.g. `opts1=value`
         * 
         * @return builder
         * 
         */
        public Builder driverOpts(@Nullable Output> driverOpts) {
            $.driverOpts = driverOpts;
            return this;
        }

        /**
         * @param driverOpts An array of driver options for the network, e.g. `opts1=value`
         * 
         * @return builder
         * 
         */
        public Builder driverOpts(List driverOpts) {
            return driverOpts(Output.of(driverOpts));
        }

        /**
         * @param driverOpts An array of driver options for the network, e.g. `opts1=value`
         * 
         * @return builder
         * 
         */
        public Builder driverOpts(String... driverOpts) {
            return driverOpts(List.of(driverOpts));
        }

        /**
         * @param name The name/id of the network.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name/id of the network.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public ServiceTaskSpecNetworksAdvancedArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ServiceTaskSpecNetworksAdvancedArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy