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 aRequestConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thedefaultConnectTimeout
record component.boolean
Returns the value of thedefaultForceChunk
record component.static RequestConfig
defaultIfNull
(RequestConfig config) boolean
Returns the value of thedisableStreamingMode
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thegzipDefaultEnabled
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 aRequestConfig
record class.- Parameters:
disableStreamingMode
- the value for thedisableStreamingMode
record componentgzipDefaultEnabled
- the value for thegzipDefaultEnabled
record componentdefaultForceChunk
- the value for thedefaultForceChunk
record componentdefaultConnectTimeout
- the value for thedefaultConnectTimeout
record 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 thedisableStreamingMode
record component.- Returns:
- the value of the
disableStreamingMode
record component
-
gzipDefaultEnabled
public boolean gzipDefaultEnabled()Returns the value of thegzipDefaultEnabled
record component.- Returns:
- the value of the
gzipDefaultEnabled
record component
-
defaultForceChunk
public boolean defaultForceChunk()Returns the value of thedefaultForceChunk
record component.- Returns:
- the value of the
defaultForceChunk
record component
-
defaultConnectTimeout
public int defaultConnectTimeout()Returns the value of thedefaultConnectTimeout
record component.- Returns:
- the value of the
defaultConnectTimeout
record component
-