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

com.pulumi.docker.ServiceConfigArgs 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;

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


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

    public static final ServiceConfigArgs Empty = new ServiceConfigArgs();

    /**
     * Base64-url-safe-encoded config data
     * 
     */
    @Import(name="data", required=true)
    private Output data;

    /**
     * @return Base64-url-safe-encoded config data
     * 
     */
    public Output data() {
        return this.data;
    }

    /**
     * User-defined name of the config
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return User-defined name of the config
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private ServiceConfigArgs() {}

    private ServiceConfigArgs(ServiceConfigArgs $) {
        this.data = $.data;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ServiceConfigArgs $;

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

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

        /**
         * @param data Base64-url-safe-encoded config data
         * 
         * @return builder
         * 
         */
        public Builder data(Output data) {
            $.data = data;
            return this;
        }

        /**
         * @param data Base64-url-safe-encoded config data
         * 
         * @return builder
         * 
         */
        public Builder data(String data) {
            return data(Output.of(data));
        }

        /**
         * @param name User-defined name of the config
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name User-defined name of the config
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy