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

com.pulumi.docker.inputs.ContainerNetworksAdvancedArgs 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 ContainerNetworksAdvancedArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContainerNetworksAdvancedArgs Empty = new ContainerNetworksAdvancedArgs();

    /**
     * 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);
    }

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

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

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

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

    /**
     * The name or id of the network to use. You can use `name` or `id` attribute from a `docker.Network` resource.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name or id of the network to use. You can use `name` or `id` attribute from a `docker.Network` resource.
     * 
     */
    public Output name() {
        return this.name;
    }

    private ContainerNetworksAdvancedArgs() {}

    private ContainerNetworksAdvancedArgs(ContainerNetworksAdvancedArgs $) {
        this.aliases = $.aliases;
        this.ipv4Address = $.ipv4Address;
        this.ipv6Address = $.ipv6Address;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ContainerNetworksAdvancedArgs $;

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

        public Builder(ContainerNetworksAdvancedArgs defaults) {
            $ = new ContainerNetworksAdvancedArgs(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 ipv4Address The IPV4 address of the container in the specific network.
         * 
         * @return builder
         * 
         */
        public Builder ipv4Address(@Nullable Output ipv4Address) {
            $.ipv4Address = ipv4Address;
            return this;
        }

        /**
         * @param ipv4Address The IPV4 address of the container in the specific network.
         * 
         * @return builder
         * 
         */
        public Builder ipv4Address(String ipv4Address) {
            return ipv4Address(Output.of(ipv4Address));
        }

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

        /**
         * @param ipv6Address The IPV6 address of the container in the specific network.
         * 
         * @return builder
         * 
         */
        public Builder ipv6Address(String ipv6Address) {
            return ipv6Address(Output.of(ipv6Address));
        }

        /**
         * @param name The name or id of the network to use. You can use `name` or `id` attribute from a `docker.Network` resource.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name or id of the network to use. You can use `name` or `id` attribute from a `docker.Network` resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy