Package com.openai.models.vectorstores
Class VectorStore.ExpiresAfter
-
- All Implemented Interfaces:
public final class VectorStore.ExpiresAfterThe expiration policy for a vector store.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVectorStore.ExpiresAfter.BuilderA builder for ExpiresAfter.
-
Method Summary
Modifier and Type Method Description final JsonValue_anchor()Anchor timestamp after which the expiration policy applies. final Longdays()The number of days after the anchor time that the vector store will expire. final JsonField<Long>_days()Returns the raw JSON value of days. final Map<String, JsonValue>_additionalProperties()final VectorStore.ExpiresAfter.BuildertoBuilder()final VectorStore.ExpiresAftervalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static VectorStore.ExpiresAfter.Builderbuilder()Returns a mutable builder for constructing an instance of ExpiresAfter. -
-
Method Detail
-
_anchor
final JsonValue _anchor()
Anchor timestamp after which the expiration policy applies. Supported anchors:
last_active_at.Expected to always return the following:
JsonValue.from("last_active_at")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_days
final JsonField<Long> _days()
Returns the raw JSON value of days.
Unlike days, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final VectorStore.ExpiresAfter.Builder toBuilder()
-
validate
final VectorStore.ExpiresAfter 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 VectorStore.ExpiresAfter.Builder builder()
Returns a mutable builder for constructing an instance of ExpiresAfter.
The following fields are required:
.days()
-
-
-
-