Class BetaResponseCompactionItemParam
-
- All Implemented Interfaces:
public final class BetaResponseCompactionItemParamA compaction item generated by the
v1/responses/compactAPI.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseCompactionItemParam.BuilderA builder for BetaResponseCompactionItemParam.
public final classBetaResponseCompactionItemParam.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final StringencryptedContent()The encrypted content of the compaction summary. final JsonValue_type()The type of the item. final Optional<String>id()The ID of the compaction item. final Optional<BetaResponseCompactionItemParam.Agent>agent()The agent that produced this item. final JsonField<String>_encryptedContent()Returns the raw JSON value of encryptedContent. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseCompactionItemParam.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseCompactionItemParam.BuildertoBuilder()final BetaResponseCompactionItemParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseCompactionItemParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseCompactionItemParam. -
-
Method Detail
-
encryptedContent
final String encryptedContent()
The encrypted content of the compaction summary.
-
_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<BetaResponseCompactionItemParam.Agent> agent()
The agent that produced this item.
-
_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.
-
_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.
-
_agent
final JsonField<BetaResponseCompactionItemParam.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseCompactionItemParam.Builder toBuilder()
-
validate
final BetaResponseCompactionItemParam 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 BetaResponseCompactionItemParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseCompactionItemParam.
The following fields are required:
.encryptedContent()
-
-
-
-