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