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

package com.azure.resourcemanager.resourcemover.models;

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

/** Defines reference to a proxy resource. */
@Fluent
public class ProxyResourceReference extends AzureResourceReference {
    /*
     * Gets the name of the proxy resource on the target side.
     */
    @JsonProperty(value = "name")
    private String name;

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

    /**
     * Get the name property: Gets the name of the proxy resource on the target side.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Gets the name of the proxy resource on the target side.
     *
     * @param name the name value to set.
     * @return the ProxyResourceReference object itself.
     */
    public ProxyResourceReference withName(String name) {
        this.name = name;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public ProxyResourceReference withSourceArmResourceId(String sourceArmResourceId) {
        super.withSourceArmResourceId(sourceArmResourceId);
        return this;
    }

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