Class WebFetchBlockParam.Builder
-
- All Implemented Interfaces:
public final class WebFetchBlockParam.BuilderA builder for WebFetchBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final WebFetchBlockParam.Builder content(DocumentBlockParam content)
-
content
final WebFetchBlockParam.Builder content(JsonField<DocumentBlockParam> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed DocumentBlockParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final WebFetchBlockParam.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("web_fetch_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final WebFetchBlockParam.Builder url(String url)
Fetched content URL
-
url
final WebFetchBlockParam.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.
-
retrievedAt
final WebFetchBlockParam.Builder retrievedAt(String retrievedAt)
ISO 8601 timestamp when the content was retrieved
-
retrievedAt
final WebFetchBlockParam.Builder retrievedAt(Optional<String> retrievedAt)
Alias for calling Builder.retrievedAt with
retrievedAt.orElse(null).
-
retrievedAt
final WebFetchBlockParam.Builder retrievedAt(JsonField<String> retrievedAt)
Sets Builder.retrievedAt to an arbitrary JSON value.
You should usually call Builder.retrievedAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final WebFetchBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebFetchBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebFetchBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebFetchBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebFetchBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebFetchBlockParam build()
Returns an immutable instance of WebFetchBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .url()
-
-
-
-