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

package com.azure.resourcemanager.cosmos.models;

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

/** Properties of the regional restorable account. */
@Fluent
public final class ContinuousBackupRestoreLocation {
    /*
     * The name of the continuous backup restore location.
     */
    @JsonProperty(value = "location")
    private String location;

    /** Creates an instance of ContinuousBackupRestoreLocation class. */
    public ContinuousBackupRestoreLocation() {
    }

    /**
     * Get the location property: The name of the continuous backup restore location.
     *
     * @return the location value.
     */
    public String location() {
        return this.location;
    }

    /**
     * Set the location property: The name of the continuous backup restore location.
     *
     * @param location the location value to set.
     * @return the ContinuousBackupRestoreLocation object itself.
     */
    public ContinuousBackupRestoreLocation withLocation(String location) {
        this.location = location;
        return this;
    }

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