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

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

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

/** The Find Target Resource Group operation response. */
@Immutable
public final class CustomLocationFindTargetResourceGroupResultInner {
    /*
     * The matching resource sync rule is the particular resource sync rule
     * that matched the match expressions and labels and had lowest priority.
     * This is the rule responsible for mapping the target resource to the
     * target resource group.
     */
    @JsonProperty(value = "matchedResourceSyncRule", access = JsonProperty.Access.WRITE_ONLY)
    private String matchedResourceSyncRule;

    /*
     * The target resource group of matching resource sync rule. The labels
     * from the request will be used to find out matching resource sync rule
     * against the selector property of the resource sync rule. The one with
     * highest priority will be returned if there are multiple matching rules.
     */
    @JsonProperty(value = "targetResourceGroup", access = JsonProperty.Access.WRITE_ONLY)
    private String targetResourceGroup;

    /**
     * Get the matchedResourceSyncRule property: The matching resource sync rule is the particular resource sync rule
     * that matched the match expressions and labels and had lowest priority. This is the rule responsible for mapping
     * the target resource to the target resource group.
     *
     * @return the matchedResourceSyncRule value.
     */
    public String matchedResourceSyncRule() {
        return this.matchedResourceSyncRule;
    }

    /**
     * Get the targetResourceGroup property: The target resource group of matching resource sync rule. The labels from
     * the request will be used to find out matching resource sync rule against the selector property of the resource
     * sync rule. The one with highest priority will be returned if there are multiple matching rules.
     *
     * @return the targetResourceGroup value.
     */
    public String targetResourceGroup() {
        return this.targetResourceGroup;
    }

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