Record Class QuestionnaireApplicationSettings

java.lang.Object
java.lang.Record
io.dialob.boot.settings.QuestionnaireApplicationSettings

@ConfigurationProperties("questionnaire") @Validated public record QuestionnaireApplicationSettings(String socketUrl, String reviewUrl, String restUrl, String connectionMode, String backendApiUrl, @NotNull String contextPath, Map<String,SettingsPageAttributes> tenants) extends Record
  • Constructor Details

    • QuestionnaireApplicationSettings

      public QuestionnaireApplicationSettings(String socketUrl, String reviewUrl, String restUrl, String connectionMode, String backendApiUrl, @NotNull @NotNull String contextPath, Map<String,SettingsPageAttributes> tenants)
      Creates an instance of a QuestionnaireApplicationSettings record class.
      Parameters:
      socketUrl - the value for the socketUrl record component
      reviewUrl - the value for the reviewUrl record component
      restUrl - the value for the restUrl record component
      connectionMode - the value for the connectionMode record component
      backendApiUrl - the value for the backendApiUrl record component
      contextPath - the value for the contextPath record component
      tenants - the value for the tenants 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.
    • socketUrl

      public String socketUrl()
      Returns the value of the socketUrl record component.
      Returns:
      the value of the socketUrl record component
    • reviewUrl

      public String reviewUrl()
      Returns the value of the reviewUrl record component.
      Returns:
      the value of the reviewUrl record component
    • restUrl

      public String restUrl()
      Returns the value of the restUrl record component.
      Returns:
      the value of the restUrl record component
    • connectionMode

      public String connectionMode()
      Returns the value of the connectionMode record component.
      Returns:
      the value of the connectionMode record component
    • backendApiUrl

      public String backendApiUrl()
      Returns the value of the backendApiUrl record component.
      Returns:
      the value of the backendApiUrl record component
    • contextPath

      @NotNull public @NotNull String contextPath()
      Returns the value of the contextPath record component.
      Returns:
      the value of the contextPath record component
    • tenants

      public Map<String,SettingsPageAttributes> tenants()
      Returns the value of the tenants record component.
      Returns:
      the value of the tenants record component