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

package com.azure.resourcemanager.apimanagement.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Region profile. */
@Fluent
public final class RegionContractInner {
    /*
     * Region name.
     */
    @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
    private String name;

    /*
     * whether Region is the master region.
     */
    @JsonProperty(value = "isMasterRegion")
    private Boolean isMasterRegion;

    /*
     * whether Region is deleted.
     */
    @JsonProperty(value = "isDeleted")
    private Boolean isDeleted;

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

    /**
     * Get the isMasterRegion property: whether Region is the master region.
     *
     * @return the isMasterRegion value.
     */
    public Boolean isMasterRegion() {
        return this.isMasterRegion;
    }

    /**
     * Set the isMasterRegion property: whether Region is the master region.
     *
     * @param isMasterRegion the isMasterRegion value to set.
     * @return the RegionContractInner object itself.
     */
    public RegionContractInner withIsMasterRegion(Boolean isMasterRegion) {
        this.isMasterRegion = isMasterRegion;
        return this;
    }

    /**
     * Get the isDeleted property: whether Region is deleted.
     *
     * @return the isDeleted value.
     */
    public Boolean isDeleted() {
        return this.isDeleted;
    }

    /**
     * Set the isDeleted property: whether Region is deleted.
     *
     * @param isDeleted the isDeleted value to set.
     * @return the RegionContractInner object itself.
     */
    public RegionContractInner withIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

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