Class ApiLicenseInformation


  • public final class ApiLicenseInformation
    extends Object
    API license information.
    • Constructor Detail

      • ApiLicenseInformation

        public ApiLicenseInformation()
    • Method Detail

      • name

        public String name()
        Get the name property: The license name used for the API.
        Returns:
        the name value.
      • withName

        public ApiLicenseInformation withName​(String name)
        Set the name property: The license name used for the API.
        Parameters:
        name - the name value to set.
        Returns:
        the ApiLicenseInformation object itself.
      • url

        public String url()
        Get the url property: A URL to the license used for the API. MUST be in the format of a URL.
        Returns:
        the url value.
      • withUrl

        public ApiLicenseInformation withUrl​(String url)
        Set the url property: A URL to the license used for the API. MUST be in the format of a URL.
        Parameters:
        url - the url value to set.
        Returns:
        the ApiLicenseInformation object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.