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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/** The extended location of Recovery point where VM was present. */
@Fluent
public final class ExtendedLocation {
    /*
     * Name of the extended location.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Type of the extended location. Possible values include: 'EdgeZone'
     */
    @JsonProperty(value = "type")
    private String type;

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

    /**
     * Get the name property: Name of the extended location.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Name of the extended location.
     *
     * @param name the name value to set.
     * @return the ExtendedLocation object itself.
     */
    public ExtendedLocation withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the type property: Type of the extended location. Possible values include: 'EdgeZone'.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type property: Type of the extended location. Possible values include: 'EdgeZone'.
     *
     * @param type the type value to set.
     * @return the ExtendedLocation object itself.
     */
    public ExtendedLocation withType(String type) {
        this.type = type;
        return this;
    }

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