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
ConstructorsConstructorDescriptionRequestConfig(boolean disableStreamingMode, boolean gzipDefaultEnabled, boolean defaultForceChunk, int defaultConnectTimeout) Creates an instance of aRequestConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedefaultConnectTimeoutrecord component.booleanReturns the value of thedefaultForceChunkrecord component.static RequestConfigdefaultIfNull(RequestConfig config) booleanReturns the value of thedisableStreamingModerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegzipDefaultEnabledrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestConfig
public RequestConfig(boolean disableStreamingMode, boolean gzipDefaultEnabled, boolean defaultForceChunk, int defaultConnectTimeout) Creates an instance of aRequestConfigrecord class.- Parameters:
disableStreamingMode- the value for thedisableStreamingModerecord componentgzipDefaultEnabled- the value for thegzipDefaultEnabledrecord componentdefaultForceChunk- the value for thedefaultForceChunkrecord componentdefaultConnectTimeout- the value for thedefaultConnectTimeoutrecord component
-
-
Method Details
-
defaultIfNull
-
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. -
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. -
equals
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 '=='. -
disableStreamingMode
public boolean disableStreamingMode()Returns the value of thedisableStreamingModerecord component.- Returns:
- the value of the
disableStreamingModerecord component
-
gzipDefaultEnabled
public boolean gzipDefaultEnabled()Returns the value of thegzipDefaultEnabledrecord component.- Returns:
- the value of the
gzipDefaultEnabledrecord component
-
defaultForceChunk
public boolean defaultForceChunk()Returns the value of thedefaultForceChunkrecord component.- Returns:
- the value of the
defaultForceChunkrecord component
-
defaultConnectTimeout
public int defaultConnectTimeout()Returns the value of thedefaultConnectTimeoutrecord component.- Returns:
- the value of the
defaultConnectTimeoutrecord component
-