// 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;

/** API license information. */
@Fluent
public final class ApiLicenseInformation {
    /*
     * The license name used for the API
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * A URL to the license used for the API. MUST be in the format of a URL
     */
    @JsonProperty(value = "url")
    private String url;

    /**
     * Get the name property: The license name used for the API.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: The license name used for the API.
     *
     * @param name the name value to set.
     * @return the ApiLicenseInformation object itself.
     */
    public ApiLicenseInformation withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the url property: A URL to the license used for the API. MUST be in the format of a URL.
     *
     * @return the url value.
     */
    public String url() {
        return this.url;
    }

    /**
     * Set the url property: A URL to the license used for the API. MUST be in the format of a URL.
     *
     * @param url the url value to set.
     * @return the ApiLicenseInformation object itself.
     */
    public ApiLicenseInformation withUrl(String url) {
        this.url = url;
        return this;
    }

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