Record Class CloudFunctionFilePart
java.lang.Object
java.lang.Record
io.camunda.connector.http.base.cloudfunction.CloudFunctionFilePart
- Record Components:
name- The name of the field in the multipart form corresponding to this part.fileName- If this part represents an uploaded file, gets the file name submitted in the upload. Returnsnullif no file name is available or if this part is not a file upload.content- The content of this part.contentType- The content type of this part.
public record CloudFunctionFilePart(String name, String fileName, byte[] content, String contentType)
extends Record
Represents a part of a multipart form submission. Can contain either files or a fields. This
record prevents any dependency on the Servlet API. This part is used only in the
ExecutionEnvironment.SaaSCloudFunction environment.-
Constructor Summary
ConstructorsConstructorDescriptionCloudFunctionFilePart(String name, String fileName, byte[] content, String contentType) Creates an instance of aCloudFunctionFilePartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]content()Returns the value of thecontentrecord component.Returns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CloudFunctionFilePart
Creates an instance of aCloudFunctionFilePartrecord class.- Parameters:
name- the value for thenamerecord componentfileName- the value for thefileNamerecord componentcontent- the value for thecontentrecord componentcontentType- the value for thecontentTyperecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
content
public byte[] content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-