Class UrlCitationBody.Builder
-
- All Implemented Interfaces:
public final class UrlCitationBody.Builder
A builder for UrlCitationBody.
-
-
Method Summary
Modifier and Type Method Description final UrlCitationBody.Builder
endIndex(Long endIndex)
The index of the last character of the URL citation in the message. final UrlCitationBody.Builder
endIndex(JsonField<Long> endIndex)
Sets Builder.endIndex to an arbitrary JSON value. final UrlCitationBody.Builder
startIndex(Long startIndex)
The index of the first character of the URL citation in the message. final UrlCitationBody.Builder
startIndex(JsonField<Long> startIndex)
Sets Builder.startIndex to an arbitrary JSON value. final UrlCitationBody.Builder
title(String title)
The title of the web resource. final UrlCitationBody.Builder
title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value. final UrlCitationBody.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final UrlCitationBody.Builder
url(String url)
The URL of the web resource. final UrlCitationBody.Builder
url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value. final UrlCitationBody.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final UrlCitationBody.Builder
putAdditionalProperty(String key, JsonValue value)
final UrlCitationBody.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final UrlCitationBody.Builder
removeAdditionalProperty(String key)
final UrlCitationBody.Builder
removeAllAdditionalProperties(Set<String> keys)
final UrlCitationBody
build()
Returns an immutable instance of UrlCitationBody. -
-
Method Detail
-
endIndex
final UrlCitationBody.Builder endIndex(Long endIndex)
The index of the last character of the URL citation in the message.
-
endIndex
final UrlCitationBody.Builder endIndex(JsonField<Long> endIndex)
Sets Builder.endIndex to an arbitrary JSON value.
You should usually call Builder.endIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
startIndex
final UrlCitationBody.Builder startIndex(Long startIndex)
The index of the first character of the URL citation in the message.
-
startIndex
final UrlCitationBody.Builder startIndex(JsonField<Long> startIndex)
Sets Builder.startIndex to an arbitrary JSON value.
You should usually call Builder.startIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
title
final UrlCitationBody.Builder title(String title)
The title of the web resource.
-
title
final UrlCitationBody.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title 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 UrlCitationBody.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("url_citation")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final UrlCitationBody.Builder url(String url)
The URL of the web resource.
-
url
final UrlCitationBody.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 UrlCitationBody.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UrlCitationBody.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UrlCitationBody.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UrlCitationBody.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UrlCitationBody.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UrlCitationBody build()
Returns an immutable instance of UrlCitationBody.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.endIndex() .startIndex() .title() .url()
-
-
-
-