Class ContentBlockSource
-
- All Implemented Interfaces:
public final class ContentBlockSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classContentBlockSource.BuilderA builder for ContentBlockSource.
public final classContentBlockSource.Content
-
Method Summary
Modifier and Type Method Description final ContentBlockSource.Contentcontent()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("content")final JsonField<ContentBlockSource.Content>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final ContentBlockSource.BuildertoBuilder()final ContentBlockSourcevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ContentBlockSource.Builderbuilder()Returns a mutable builder for constructing an instance of ContentBlockSource. final static ContentBlockSourceof(ContentBlockSource.Content content)Returns an immutable instance of ContentBlockSource with the required content set to the given value. final static ContentBlockSourceof(String string)Alias for calling of with Content.ofString(string).final static ContentBlockSourceofBlockSource(List<ContentBlockSourceContent> blockSource)Alias for calling of with Content.ofBlockSource(blockSource).-
-
Method Detail
-
content
final ContentBlockSource.Content content()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("content")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<ContentBlockSource.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ContentBlockSource.Builder toBuilder()
-
validate
final ContentBlockSource validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ContentBlockSource.Builder builder()
Returns a mutable builder for constructing an instance of ContentBlockSource.
The following fields are required:
.content()
-
of
final static ContentBlockSource of(ContentBlockSource.Content content)
Returns an immutable instance of ContentBlockSource with the required content set to the given value.
-
of
final static ContentBlockSource of(String string)
Alias for calling of with
Content.ofString(string).
-
ofBlockSource
final static ContentBlockSource ofBlockSource(List<ContentBlockSourceContent> blockSource)
Alias for calling of with
Content.ofBlockSource(blockSource).
-
-
-
-