// 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.fluent.models;

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

/** Api Schema Document Properties. */
@Fluent
public final class SchemaDocumentProperties {
    /*
     * Json escaped string defining the document representing the Schema. Used
     * for schemas other than Swagger/OpenAPI.
     */
    @JsonProperty(value = "value")
    private String value;

    /*
     * Types definitions. Used for Swagger/OpenAPI v1 schemas only, null
     * otherwise.
     */
    @JsonProperty(value = "definitions")
    private Object definitions;

    /*
     * Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null
     * otherwise.
     */
    @JsonProperty(value = "components")
    private Object components;

    /**
     * Get the value property: Json escaped string defining the document representing the Schema. Used for schemas other
     * than Swagger/OpenAPI.
     *
     * @return the value value.
     */
    public String value() {
        return this.value;
    }

    /**
     * Set the value property: Json escaped string defining the document representing the Schema. Used for schemas other
     * than Swagger/OpenAPI.
     *
     * @param value the value value to set.
     * @return the SchemaDocumentProperties object itself.
     */
    public SchemaDocumentProperties withValue(String value) {
        this.value = value;
        return this;
    }

    /**
     * Get the definitions property: Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
     *
     * @return the definitions value.
     */
    public Object definitions() {
        return this.definitions;
    }

    /**
     * Set the definitions property: Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
     *
     * @param definitions the definitions value to set.
     * @return the SchemaDocumentProperties object itself.
     */
    public SchemaDocumentProperties withDefinitions(Object definitions) {
        this.definitions = definitions;
        return this;
    }

    /**
     * Get the components property: Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
     *
     * @return the components value.
     */
    public Object components() {
        return this.components;
    }

    /**
     * Set the components property: Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
     *
     * @param components the components value to set.
     * @return the SchemaDocumentProperties object itself.
     */
    public SchemaDocumentProperties withComponents(Object components) {
        this.components = components;
        return this;
    }

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