Package org.apache.nifi.web.client.api
Record Class StandardMultipartFormDataStreamBuilder.Part
java.lang.Object
java.lang.Record
org.apache.nifi.web.client.api.StandardMultipartFormDataStreamBuilder.Part
- Enclosing class:
StandardMultipartFormDataStreamBuilder
private static record StandardMultipartFormDataStreamBuilder.Part(String name, HttpContentType httpContentType, InputStream inputStream)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpContentType
The field for thehttpContentType
record component.private final InputStream
The field for theinputStream
record component.private final String
The field for thename
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Part
(String name, HttpContentType httpContentType, InputStream inputStream) Creates an instance of aPart
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehttpContentType
record component.Returns the value of theinputStream
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
httpContentType
The field for thehttpContentType
record component. -
inputStream
The field for theinputStream
record component.
-
-
Constructor Details
-
Part
Creates an instance of aPart
record class.- Parameters:
name
- the value for thename
record componenthttpContentType
- the value for thehttpContentType
record componentinputStream
- the value for theinputStream
record component
-
-
Method Details
-
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 withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
httpContentType
Returns the value of thehttpContentType
record component.- Returns:
- the value of the
httpContentType
record component
-
inputStream
Returns the value of theinputStream
record component.- Returns:
- the value of the
inputStream
record component
-