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

com.pulumi.digitalocean.inputs.GetRegionArgs Maven / Gradle / Ivy

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

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


public final class GetRegionArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRegionArgs Empty = new GetRegionArgs();

    /**
     * A human-readable string that is used as a unique identifier for each region.
     * 
     */
    @Import(name="slug", required=true)
    private Output slug;

    /**
     * @return A human-readable string that is used as a unique identifier for each region.
     * 
     */
    public Output slug() {
        return this.slug;
    }

    private GetRegionArgs() {}

    private GetRegionArgs(GetRegionArgs $) {
        this.slug = $.slug;
    }

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

    public static final class Builder {
        private GetRegionArgs $;

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

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

        /**
         * @param slug A human-readable string that is used as a unique identifier for each region.
         * 
         * @return builder
         * 
         */
        public Builder slug(Output slug) {
            $.slug = slug;
            return this;
        }

        /**
         * @param slug A human-readable string that is used as a unique identifier for each region.
         * 
         * @return builder
         * 
         */
        public Builder slug(String slug) {
            return slug(Output.of(slug));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy