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

package com.azure.resourcemanager.authorization.models;

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

/** Expanded info of resource scope. */
@Immutable
public final class PolicyProperties {
    /*
     * Details of the resource scope
     */
    @JsonProperty(value = "scope", access = JsonProperty.Access.WRITE_ONLY)
    private PolicyPropertiesScope scope;

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

    /**
     * Get the scope property: Details of the resource scope.
     *
     * @return the scope value.
     */
    public PolicyPropertiesScope scope() {
        return this.scope;
    }

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