Class BetaResponseCompactionItem
-
- All Implemented Interfaces:
public final class BetaResponseCompactionItemA compaction item generated by the
v1/responses/compactAPI.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseCompactionItem.BuilderA builder for BetaResponseCompactionItem.
public final classBetaResponseCompactionItem.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the compaction item. final StringencryptedContent()The encrypted content that was produced by compaction. final JsonValue_type()The type of the item. final Optional<BetaResponseCompactionItem.Agent>agent()The agent that produced this item. final Optional<String>createdBy()The identifier of the actor that created the item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_encryptedContent()Returns the raw JSON value of encryptedContent. final JsonField<BetaResponseCompactionItem.Agent>_agent()Returns the raw JSON value of agent. final JsonField<String>_createdBy()Returns the raw JSON value of createdBy. final Map<String, JsonValue>_additionalProperties()final BetaResponseCompactionItem.BuildertoBuilder()final BetaResponseCompactionItemvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseCompactionItem.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseCompactionItem. -
-
Method Detail
-
encryptedContent
final String encryptedContent()
The encrypted content that was produced by compaction.
-
_type
final JsonValue _type()
The type of the item. Always
compaction.Expected to always return the following:
JsonValue.from("compaction")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseCompactionItem.Agent> agent()
The agent that produced this item.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_encryptedContent
final JsonField<String> _encryptedContent()
Returns the raw JSON value of encryptedContent.
Unlike encryptedContent, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseCompactionItem.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_createdBy
final JsonField<String> _createdBy()
Returns the raw JSON value of createdBy.
Unlike createdBy, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseCompactionItem.Builder toBuilder()
-
validate
final BetaResponseCompactionItem 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 BetaResponseCompactionItem.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseCompactionItem.
The following fields are required:
.id() .encryptedContent()
-
-
-
-