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

package com.azure.resourcemanager.apimanagement.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.resourcemanager.apimanagement.fluent.models.PolicyDescriptionContractProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Policy description details. */
@Fluent
public final class PolicyDescriptionContract extends ProxyResource {
    /*
     * Policy description contract properties.
     */
    @JsonProperty(value = "properties")
    private PolicyDescriptionContractProperties innerProperties;

    /**
     * Get the innerProperties property: Policy description contract properties.
     *
     * @return the innerProperties value.
     */
    private PolicyDescriptionContractProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the description property: Policy description.
     *
     * @return the description value.
     */
    public String description() {
        return this.innerProperties() == null ? null : this.innerProperties().description();
    }

    /**
     * Get the scope property: Binary OR value of the Snippet scope.
     *
     * @return the scope value.
     */
    public Long scope() {
        return this.innerProperties() == null ? null : this.innerProperties().scope();
    }

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