Class PlainTextSource.Builder
-
- All Implemented Interfaces:
public final class PlainTextSource.BuilderA builder for PlainTextSource.
-
-
Method Summary
Modifier and Type Method Description final PlainTextSource.Builderdata(String data)final PlainTextSource.Builderdata(JsonField<String> data)Sets Builder.data to an arbitrary JSON value. final PlainTextSource.BuildermediaType(JsonValue mediaType)Sets the field to an arbitrary JSON value. final PlainTextSource.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final PlainTextSource.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final PlainTextSource.BuilderputAdditionalProperty(String key, JsonValue value)final PlainTextSource.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final PlainTextSource.BuilderremoveAdditionalProperty(String key)final PlainTextSource.BuilderremoveAllAdditionalProperties(Set<String> keys)final PlainTextSourcebuild()Returns an immutable instance of PlainTextSource. -
-
Method Detail
-
data
final PlainTextSource.Builder data(String data)
-
data
final PlainTextSource.Builder data(JsonField<String> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mediaType
final PlainTextSource.Builder mediaType(JsonValue mediaType)
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("text/plain")This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final PlainTextSource.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("text")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PlainTextSource.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PlainTextSource.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PlainTextSource.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PlainTextSource.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PlainTextSource.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PlainTextSource build()
Returns an immutable instance of PlainTextSource.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data()
-
-
-
-