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

com.pulumi.azurenative.hybridcompute.inputs.LocationDataArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.hybridcompute.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;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Metadata pertaining to the geographic location of the resource.
 * 
 */
public final class LocationDataArgs extends com.pulumi.resources.ResourceArgs {

    public static final LocationDataArgs Empty = new LocationDataArgs();

    /**
     * The city or locality where the resource is located.
     * 
     */
    @Import(name="city")
    private @Nullable Output city;

    /**
     * @return The city or locality where the resource is located.
     * 
     */
    public Optional> city() {
        return Optional.ofNullable(this.city);
    }

    /**
     * The country or region where the resource is located
     * 
     */
    @Import(name="countryOrRegion")
    private @Nullable Output countryOrRegion;

    /**
     * @return The country or region where the resource is located
     * 
     */
    public Optional> countryOrRegion() {
        return Optional.ofNullable(this.countryOrRegion);
    }

    /**
     * The district, state, or province where the resource is located.
     * 
     */
    @Import(name="district")
    private @Nullable Output district;

    /**
     * @return The district, state, or province where the resource is located.
     * 
     */
    public Optional> district() {
        return Optional.ofNullable(this.district);
    }

    /**
     * A canonical name for the geographic or physical location.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return A canonical name for the geographic or physical location.
     * 
     */
    public Output name() {
        return this.name;
    }

    private LocationDataArgs() {}

    private LocationDataArgs(LocationDataArgs $) {
        this.city = $.city;
        this.countryOrRegion = $.countryOrRegion;
        this.district = $.district;
        this.name = $.name;
    }

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

    public static final class Builder {
        private LocationDataArgs $;

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

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

        /**
         * @param city The city or locality where the resource is located.
         * 
         * @return builder
         * 
         */
        public Builder city(@Nullable Output city) {
            $.city = city;
            return this;
        }

        /**
         * @param city The city or locality where the resource is located.
         * 
         * @return builder
         * 
         */
        public Builder city(String city) {
            return city(Output.of(city));
        }

        /**
         * @param countryOrRegion The country or region where the resource is located
         * 
         * @return builder
         * 
         */
        public Builder countryOrRegion(@Nullable Output countryOrRegion) {
            $.countryOrRegion = countryOrRegion;
            return this;
        }

        /**
         * @param countryOrRegion The country or region where the resource is located
         * 
         * @return builder
         * 
         */
        public Builder countryOrRegion(String countryOrRegion) {
            return countryOrRegion(Output.of(countryOrRegion));
        }

        /**
         * @param district The district, state, or province where the resource is located.
         * 
         * @return builder
         * 
         */
        public Builder district(@Nullable Output district) {
            $.district = district;
            return this;
        }

        /**
         * @param district The district, state, or province where the resource is located.
         * 
         * @return builder
         * 
         */
        public Builder district(String district) {
            return district(Output.of(district));
        }

        /**
         * @param name A canonical name for the geographic or physical location.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A canonical name for the geographic or physical location.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy