// *** 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.aws.lightsail.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class DistributionLocation {
    /**
     * @return The Availability Zone. Follows the format us-east-2a (case-sensitive).
     * 
     */
    private String availabilityZone;
    /**
     * @return The AWS Region name of the origin resource.
     * 
     */
    private String regionName;

    private DistributionLocation() {}
    /**
     * @return The Availability Zone. Follows the format us-east-2a (case-sensitive).
     * 
     */
    public String availabilityZone() {
        return this.availabilityZone;
    }
    /**
     * @return The AWS Region name of the origin resource.
     * 
     */
    public String regionName() {
        return this.regionName;
    }

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

    public static Builder builder(DistributionLocation defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String availabilityZone;
        private String regionName;
        public Builder() {}
        public Builder(DistributionLocation defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.availabilityZone = defaults.availabilityZone;
    	      this.regionName = defaults.regionName;
        }

        @CustomType.Setter
        public Builder availabilityZone(String availabilityZone) {
            this.availabilityZone = Objects.requireNonNull(availabilityZone);
            return this;
        }
        @CustomType.Setter
        public Builder regionName(String regionName) {
            this.regionName = Objects.requireNonNull(regionName);
            return this;
        }
        public DistributionLocation build() {
            final var o = new DistributionLocation();
            o.availabilityZone = availabilityZone;
            o.regionName = regionName;
            return o;
        }
    }
}
