Class BrowserStateChangeDownloadCompleted.Builder
-
- All Implemented Interfaces:
public final class BrowserStateChangeDownloadCompleted.BuilderA builder for BrowserStateChangeDownloadCompleted.
-
-
Method Summary
-
-
Method Detail
-
downloadId
final BrowserStateChangeDownloadCompleted.Builder downloadId(String downloadId)
The caller-assigned identifier for this download, stable across the state changes reporting it.
-
downloadId
final BrowserStateChangeDownloadCompleted.Builder downloadId(JsonField<String> downloadId)
Sets Builder.downloadId to an arbitrary JSON value.
You should usually call Builder.downloadId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BrowserStateChangeDownloadCompleted.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("download_completed")This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final BrowserStateChangeDownloadCompleted.Builder url(String url)
The final post-redirect URL the download was served from.
-
url
final BrowserStateChangeDownloadCompleted.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
path
final BrowserStateChangeDownloadCompleted.Builder path(String path)
Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path.
-
path
final BrowserStateChangeDownloadCompleted.Builder path(Optional<String> path)
Alias for calling Builder.path with
path.orElse(null).
-
path
final BrowserStateChangeDownloadCompleted.Builder path(JsonField<String> path)
Sets Builder.path to an arbitrary JSON value.
You should usually call Builder.path with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sizeBytes
final BrowserStateChangeDownloadCompleted.Builder sizeBytes(Long sizeBytes)
The completed download's size.
-
sizeBytes
final BrowserStateChangeDownloadCompleted.Builder sizeBytes(Long sizeBytes)
Alias for Builder.sizeBytes.
This unboxed primitive overload exists for backwards compatibility.
-
sizeBytes
final BrowserStateChangeDownloadCompleted.Builder sizeBytes(Optional<Long> sizeBytes)
Alias for calling Builder.sizeBytes with
sizeBytes.orElse(null).
-
sizeBytes
final BrowserStateChangeDownloadCompleted.Builder sizeBytes(JsonField<Long> sizeBytes)
Sets Builder.sizeBytes to an arbitrary JSON value.
You should usually call Builder.sizeBytes with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BrowserStateChangeDownloadCompleted.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BrowserStateChangeDownloadCompleted.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BrowserStateChangeDownloadCompleted.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BrowserStateChangeDownloadCompleted.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BrowserStateChangeDownloadCompleted.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BrowserStateChangeDownloadCompleted build()
Returns an immutable instance of BrowserStateChangeDownloadCompleted.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.downloadId() .url()
-
-
-
-