Record Class AppJavalinServlet.RestConfiguration

java.lang.Object
java.lang.Record
net.tangly.app.api.AppJavalinServlet.RestConfiguration
Enclosing class:
AppJavalinServlet

public static record AppJavalinServlet.RestConfiguration(String openApiName, String openApiUrl, String openApiEmail, String openApiLicense, String openApiLicenseIdentifier, String openApiServerUrl, String openApiServerDescription, String openApiTermsOfService, String openApiServerVersion) extends Record
  • Constructor Details

    • RestConfiguration

      public RestConfiguration(String openApiName, String openApiUrl, String openApiEmail, String openApiLicense, String openApiLicenseIdentifier, String openApiServerUrl, String openApiServerDescription, String openApiTermsOfService, String openApiServerVersion)
      Creates an instance of a RestConfiguration record class.
      Parameters:
      openApiName - the value for the openApiName record component
      openApiUrl - the value for the openApiUrl record component
      openApiEmail - the value for the openApiEmail record component
      openApiLicense - the value for the openApiLicense record component
      openApiLicenseIdentifier - the value for the openApiLicenseIdentifier record component
      openApiServerUrl - the value for the openApiServerUrl record component
      openApiServerDescription - the value for the openApiServerDescription record component
      openApiTermsOfService - the value for the openApiTermsOfService record component
      openApiServerVersion - the value for the openApiServerVersion record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • openApiName

      public String openApiName()
      Returns the value of the openApiName record component.
      Returns:
      the value of the openApiName record component
    • openApiUrl

      public String openApiUrl()
      Returns the value of the openApiUrl record component.
      Returns:
      the value of the openApiUrl record component
    • openApiEmail

      public String openApiEmail()
      Returns the value of the openApiEmail record component.
      Returns:
      the value of the openApiEmail record component
    • openApiLicense

      public String openApiLicense()
      Returns the value of the openApiLicense record component.
      Returns:
      the value of the openApiLicense record component
    • openApiLicenseIdentifier

      public String openApiLicenseIdentifier()
      Returns the value of the openApiLicenseIdentifier record component.
      Returns:
      the value of the openApiLicenseIdentifier record component
    • openApiServerUrl

      public String openApiServerUrl()
      Returns the value of the openApiServerUrl record component.
      Returns:
      the value of the openApiServerUrl record component
    • openApiServerDescription

      public String openApiServerDescription()
      Returns the value of the openApiServerDescription record component.
      Returns:
      the value of the openApiServerDescription record component
    • openApiTermsOfService

      public String openApiTermsOfService()
      Returns the value of the openApiTermsOfService record component.
      Returns:
      the value of the openApiTermsOfService record component
    • openApiServerVersion

      public String openApiServerVersion()
      Returns the value of the openApiServerVersion record component.
      Returns:
      the value of the openApiServerVersion record component