Class FederationIssuerPollStatus
-
- All Implemented Interfaces:
public final class FederationIssuerPollStatusStatus of automatic JWKS polling for a federation issuer.
Anthropic periodically fetches the issuer's signing keys in the background. These fields summarize the most recent fetches so the health of the JWKS endpoint can be monitored.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFederationIssuerPollStatus.BuilderA builder for FederationIssuerPollStatus.
-
Method Summary
Modifier and Type Method Description final LongconsecutiveFailures()Consecutive fetch failures since the last success. final Optional<OffsetDateTime>lastFetchedAt()When the last successful fetch completed. final Optional<OffsetDateTime>nextPollAt()When the next fetch is scheduled. final JsonField<Long>_consecutiveFailures()Returns the raw JSON value of consecutiveFailures. final JsonField<OffsetDateTime>_lastFetchedAt()Returns the raw JSON value of lastFetchedAt. final JsonField<OffsetDateTime>_nextPollAt()Returns the raw JSON value of nextPollAt. final Map<String, JsonValue>_additionalProperties()final FederationIssuerPollStatus.BuildertoBuilder()final FederationIssuerPollStatusvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FederationIssuerPollStatus.Builderbuilder()Returns a mutable builder for constructing an instance of FederationIssuerPollStatus. -
-
Method Detail
-
consecutiveFailures
final Long consecutiveFailures()
Consecutive fetch failures since the last success.
-
lastFetchedAt
final Optional<OffsetDateTime> lastFetchedAt()
When the last successful fetch completed.
-
nextPollAt
final Optional<OffsetDateTime> nextPollAt()
When the next fetch is scheduled. Null if paused.
-
_consecutiveFailures
final JsonField<Long> _consecutiveFailures()
Returns the raw JSON value of consecutiveFailures.
Unlike consecutiveFailures, this method doesn't throw if the JSON field has an unexpected type.
-
_lastFetchedAt
final JsonField<OffsetDateTime> _lastFetchedAt()
Returns the raw JSON value of lastFetchedAt.
Unlike lastFetchedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_nextPollAt
final JsonField<OffsetDateTime> _nextPollAt()
Returns the raw JSON value of nextPollAt.
Unlike nextPollAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FederationIssuerPollStatus.Builder toBuilder()
-
validate
final FederationIssuerPollStatus 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 FederationIssuerPollStatus.Builder builder()
Returns a mutable builder for constructing an instance of FederationIssuerPollStatus.
The following fields are required:
.consecutiveFailures() .lastFetchedAt() .nextPollAt()
-
-
-
-