Class BetaContentBlockSource
-
- All Implemented Interfaces:
public final class BetaContentBlockSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaContentBlockSource.BuilderA builder for BetaContentBlockSource.
public final classBetaContentBlockSource.Content
-
Method Summary
Modifier and Type Method Description final BetaContentBlockSource.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<BetaContentBlockSource.Content>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final BetaContentBlockSource.BuildertoBuilder()final BetaContentBlockSourcevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaContentBlockSource.Builderbuilder()Returns a mutable builder for constructing an instance of BetaContentBlockSource. final static BetaContentBlockSourceof(BetaContentBlockSource.Content content)Returns an immutable instance of BetaContentBlockSource with the required content set to the given value. final static BetaContentBlockSourceof(String string)Alias for calling of with Content.ofString(string).final static BetaContentBlockSourceofBetaContentBlockSource(List<BetaContentBlockSourceContent> betaContentBlockSource)Alias for calling of with Content.ofBetaContentBlockSource(betaContentBlockSource).-
-
Method Detail
-
content
final BetaContentBlockSource.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<BetaContentBlockSource.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 BetaContentBlockSource.Builder toBuilder()
-
validate
final BetaContentBlockSource 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 BetaContentBlockSource.Builder builder()
Returns a mutable builder for constructing an instance of BetaContentBlockSource.
The following fields are required:
.content()
-
of
final static BetaContentBlockSource of(BetaContentBlockSource.Content content)
Returns an immutable instance of BetaContentBlockSource with the required content set to the given value.
-
of
final static BetaContentBlockSource of(String string)
Alias for calling of with
Content.ofString(string).
-
ofBetaContentBlockSource
final static BetaContentBlockSource ofBetaContentBlockSource(List<BetaContentBlockSourceContent> betaContentBlockSource)
Alias for calling of with
Content.ofBetaContentBlockSource(betaContentBlockSource).
-
-
-
-