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

com.pulumi.azurenative.hybridcompute.outputs.LocationDataResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.outputs;

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

@CustomType
public final class LocationDataResponse {
    /**
     * @return The city or locality where the resource is located.
     * 
     */
    private @Nullable String city;
    /**
     * @return The country or region where the resource is located
     * 
     */
    private @Nullable String countryOrRegion;
    /**
     * @return The district, state, or province where the resource is located.
     * 
     */
    private @Nullable String district;
    /**
     * @return A canonical name for the geographic or physical location.
     * 
     */
    private String name;

    private LocationDataResponse() {}
    /**
     * @return The city or locality where the resource is located.
     * 
     */
    public Optional city() {
        return Optional.ofNullable(this.city);
    }
    /**
     * @return The country or region where the resource is located
     * 
     */
    public Optional countryOrRegion() {
        return Optional.ofNullable(this.countryOrRegion);
    }
    /**
     * @return The district, state, or province where the resource is located.
     * 
     */
    public Optional district() {
        return Optional.ofNullable(this.district);
    }
    /**
     * @return A canonical name for the geographic or physical location.
     * 
     */
    public String name() {
        return this.name;
    }

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

    public static Builder builder(LocationDataResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String city;
        private @Nullable String countryOrRegion;
        private @Nullable String district;
        private String name;
        public Builder() {}
        public Builder(LocationDataResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.city = defaults.city;
    	      this.countryOrRegion = defaults.countryOrRegion;
    	      this.district = defaults.district;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder city(@Nullable String city) {

            this.city = city;
            return this;
        }
        @CustomType.Setter
        public Builder countryOrRegion(@Nullable String countryOrRegion) {

            this.countryOrRegion = countryOrRegion;
            return this;
        }
        @CustomType.Setter
        public Builder district(@Nullable String district) {

            this.district = district;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("LocationDataResponse", "name");
            }
            this.name = name;
            return this;
        }
        public LocationDataResponse build() {
            final var _resultValue = new LocationDataResponse();
            _resultValue.city = city;
            _resultValue.countryOrRegion = countryOrRegion;
            _resultValue.district = district;
            _resultValue.name = name;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy