Class GetMediaUploadUrlRequest.Builder
java.lang.Object
com.langfuse.client.resources.media.types.GetMediaUploadUrlRequest.Builder
- All Implemented Interfaces:
GetMediaUploadUrlRequest._FinalStage,GetMediaUploadUrlRequest.ContentLengthStage,GetMediaUploadUrlRequest.ContentTypeStage,GetMediaUploadUrlRequest.FieldStage,GetMediaUploadUrlRequest.Sha256HashStage,GetMediaUploadUrlRequest.TraceIdStage
- Enclosing class:
GetMediaUploadUrlRequest
public static final class GetMediaUploadUrlRequest.Builder
extends Object
implements GetMediaUploadUrlRequest.TraceIdStage, GetMediaUploadUrlRequest.ContentTypeStage, GetMediaUploadUrlRequest.ContentLengthStage, GetMediaUploadUrlRequest.Sha256HashStage, GetMediaUploadUrlRequest.FieldStage, GetMediaUploadUrlRequest._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()contentLength(int contentLength) The size of the media record in bytescontentType(MediaContentType contentType) The trace / observation field the media record is associated with.from(GetMediaUploadUrlRequest other) observationId(String observationId) The observation ID associated with the media record.observationId(Optional<String> observationId) The observation ID associated with the media record.sha256Hash(String sha256Hash) The SHA-256 hash of the media recordThe trace ID associated with the media record
-
Method Details
-
from
- Specified by:
fromin interfaceGetMediaUploadUrlRequest.TraceIdStage
-
traceId
The trace ID associated with the media record
The trace ID associated with the media record
- Specified by:
traceIdin interfaceGetMediaUploadUrlRequest.TraceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentType
public GetMediaUploadUrlRequest.ContentLengthStage contentType(@NotNull MediaContentType contentType) - Specified by:
contentTypein interfaceGetMediaUploadUrlRequest.ContentTypeStage
-
contentLength
The size of the media record in bytes
The size of the media record in bytes
- Specified by:
contentLengthin interfaceGetMediaUploadUrlRequest.ContentLengthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sha256Hash
The SHA-256 hash of the media record
The SHA-256 hash of the media record
- Specified by:
sha256Hashin interfaceGetMediaUploadUrlRequest.Sha256HashStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
field
The trace / observation field the media record is associated with. This can be one of
input,output,metadataThe trace / observation field the media record is associated with. This can be one of
input,output,metadata- Specified by:
fieldin interfaceGetMediaUploadUrlRequest.FieldStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
observationId
The observation ID associated with the media record. If the media record is associated directly with a trace, this will be null.
- Specified by:
observationIdin interfaceGetMediaUploadUrlRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
observationId
The observation ID associated with the media record. If the media record is associated directly with a trace, this will be null.
- Specified by:
observationIdin interfaceGetMediaUploadUrlRequest._FinalStage
-
build
- Specified by:
buildin interfaceGetMediaUploadUrlRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceGetMediaUploadUrlRequest._FinalStage
-
additionalProperties
public GetMediaUploadUrlRequest.Builder additionalProperties(Map<String, Object> additionalProperties) - Specified by:
additionalPropertiesin interfaceGetMediaUploadUrlRequest._FinalStage
-