// 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.fasterxml.jackson.annotation.JsonProperty;

/** Parameter example. */
@Fluent
public final class ParameterExampleContract {
    /*
     * Short description for the example
     */
    @JsonProperty(value = "summary")
    private String summary;

    /*
     * Long description for the example
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * Example value. May be a primitive value, or an object.
     */
    @JsonProperty(value = "value")
    private Object value;

    /*
     * A URL that points to the literal example
     */
    @JsonProperty(value = "externalValue")
    private String externalValue;

    /**
     * Get the summary property: Short description for the example.
     *
     * @return the summary value.
     */
    public String summary() {
        return this.summary;
    }

    /**
     * Set the summary property: Short description for the example.
     *
     * @param summary the summary value to set.
     * @return the ParameterExampleContract object itself.
     */
    public ParameterExampleContract withSummary(String summary) {
        this.summary = summary;
        return this;
    }

    /**
     * Get the description property: Long description for the example.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Long description for the example.
     *
     * @param description the description value to set.
     * @return the ParameterExampleContract object itself.
     */
    public ParameterExampleContract withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the value property: Example value. May be a primitive value, or an object.
     *
     * @return the value value.
     */
    public Object value() {
        return this.value;
    }

    /**
     * Set the value property: Example value. May be a primitive value, or an object.
     *
     * @param value the value value to set.
     * @return the ParameterExampleContract object itself.
     */
    public ParameterExampleContract withValue(Object value) {
        this.value = value;
        return this;
    }

    /**
     * Get the externalValue property: A URL that points to the literal example.
     *
     * @return the externalValue value.
     */
    public String externalValue() {
        return this.externalValue;
    }

    /**
     * Set the externalValue property: A URL that points to the literal example.
     *
     * @param externalValue the externalValue value to set.
     * @return the ParameterExampleContract object itself.
     */
    public ParameterExampleContract withExternalValue(String externalValue) {
        this.externalValue = externalValue;
        return this;
    }

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