Class BetaEnvironment
-
- All Implemented Interfaces:
public final class BetaEnvironmentUnified Environment resource for both cloud and self-hosted environments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaEnvironment.BuilderA builder for BetaEnvironment.
public final classBetaEnvironment.ConfigEnvironment configuration (either Anthropic Cloud or self-hosted)
public final classBetaEnvironment.MetadataUser-provided metadata key-value pairs
public final classBetaEnvironment.ScopeThe visibility scope for this environment. 'organization' means visible to all accounts. 'account' means visible only to the owning account.
-
Method Summary
Modifier and Type Method Description final Stringid()Environment identifier (e.g., 'env_... final Optional<String>archivedAt()RFC 3339 timestamp when environment was archived, or null if not archived final BetaEnvironment.Configconfig()Environment configuration (either Anthropic Cloud or self-hosted) final StringcreatedAt()RFC 3339 timestamp when environment was created final Stringdescription()User-provided description for the environment final BetaEnvironment.Metadatametadata()User-provided metadata key-value pairs final Stringname()Human-readable name for the environment final JsonValue_type()The type of object (always 'environment')Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("environment")final StringupdatedAt()RFC 3339 timestamp when environment was last updated final Optional<BetaEnvironment.Scope>scope()The visibility scope for this environment. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<BetaEnvironment.Config>_config()Returns the raw JSON value of config. final JsonField<String>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<BetaEnvironment.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<BetaEnvironment.Scope>_scope()Returns the raw JSON value of scope. final Map<String, JsonValue>_additionalProperties()final BetaEnvironment.BuildertoBuilder()final BetaEnvironmentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaEnvironment.Builderbuilder()Returns a mutable builder for constructing an instance of BetaEnvironment. -
-
Method Detail
-
archivedAt
final Optional<String> archivedAt()
RFC 3339 timestamp when environment was archived, or null if not archived
-
config
final BetaEnvironment.Config config()
Environment configuration (either Anthropic Cloud or self-hosted)
-
description
final String description()
User-provided description for the environment
-
metadata
final BetaEnvironment.Metadata metadata()
User-provided metadata key-value pairs
-
_type
final JsonValue _type()
The type of object (always 'environment')
Expected to always return the following:
JsonValue.from("environment")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
scope
final Optional<BetaEnvironment.Scope> scope()
The visibility scope for this environment. 'organization' means visible to all accounts. 'account' means visible only to the owning account.
-
_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.
-
_archivedAt
final JsonField<String> _archivedAt()
Returns the raw JSON value of archivedAt.
Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_config
final JsonField<BetaEnvironment.Config> _config()
Returns the raw JSON value of config.
Unlike config, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<String> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<BetaEnvironment.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<String> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_scope
final JsonField<BetaEnvironment.Scope> _scope()
Returns the raw JSON value of scope.
Unlike scope, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaEnvironment.Builder toBuilder()
-
validate
final BetaEnvironment 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 BetaEnvironment.Builder builder()
Returns a mutable builder for constructing an instance of BetaEnvironment.
The following fields are required:
.id() .archivedAt() .config() .createdAt() .description() .metadata() .name() .updatedAt()
-
-
-
-