Record Class RequestConfig

java.lang.Object
java.lang.Record
com.technia.dsx.threedspace.doc.file.RequestConfig

public record RequestConfig(boolean disableStreamingMode, boolean gzipDefaultEnabled, boolean defaultForceChunk, int defaultConnectTimeout) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    RequestConfig(boolean disableStreamingMode, boolean gzipDefaultEnabled, boolean defaultForceChunk, int defaultConnectTimeout)
    Creates an instance of a RequestConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the defaultConnectTimeout record component.
    boolean
    Returns the value of the defaultForceChunk record component.
     
    boolean
    Returns the value of the disableStreamingMode record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the gzipDefaultEnabled record component.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RequestConfig

      public RequestConfig(boolean disableStreamingMode, boolean gzipDefaultEnabled, boolean defaultForceChunk, int defaultConnectTimeout)
      Creates an instance of a RequestConfig record class.
      Parameters:
      disableStreamingMode - the value for the disableStreamingMode record component
      gzipDefaultEnabled - the value for the gzipDefaultEnabled record component
      defaultForceChunk - the value for the defaultForceChunk record component
      defaultConnectTimeout - the value for the defaultConnectTimeout record component
  • Method Details

    • defaultIfNull

      public static RequestConfig defaultIfNull(RequestConfig config)
    • 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 '=='.
      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.
    • disableStreamingMode

      public boolean disableStreamingMode()
      Returns the value of the disableStreamingMode record component.
      Returns:
      the value of the disableStreamingMode record component
    • gzipDefaultEnabled

      public boolean gzipDefaultEnabled()
      Returns the value of the gzipDefaultEnabled record component.
      Returns:
      the value of the gzipDefaultEnabled record component
    • defaultForceChunk

      public boolean defaultForceChunk()
      Returns the value of the defaultForceChunk record component.
      Returns:
      the value of the defaultForceChunk record component
    • defaultConnectTimeout

      public int defaultConnectTimeout()
      Returns the value of the defaultConnectTimeout record component.
      Returns:
      the value of the defaultConnectTimeout record component