// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appservice.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** A global distribution definition. */
@Fluent
public final class GeoDistribution {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(GeoDistribution.class);

    /*
     * Location.
     */
    @JsonProperty(value = "location")
    private String location;

    /*
     * NumberOfWorkers.
     */
    @JsonProperty(value = "numberOfWorkers")
    private Integer numberOfWorkers;

    /**
     * Get the location property: Location.
     *
     * @return the location value.
     */
    public String location() {
        return this.location;
    }

    /**
     * Set the location property: Location.
     *
     * @param location the location value to set.
     * @return the GeoDistribution object itself.
     */
    public GeoDistribution withLocation(String location) {
        this.location = location;
        return this;
    }

    /**
     * Get the numberOfWorkers property: NumberOfWorkers.
     *
     * @return the numberOfWorkers value.
     */
    public Integer numberOfWorkers() {
        return this.numberOfWorkers;
    }

    /**
     * Set the numberOfWorkers property: NumberOfWorkers.
     *
     * @param numberOfWorkers the numberOfWorkers value to set.
     * @return the GeoDistribution object itself.
     */
    public GeoDistribution withNumberOfWorkers(Integer numberOfWorkers) {
        this.numberOfWorkers = numberOfWorkers;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
