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