Class BetaEnvironment.Builder
-
- All Implemented Interfaces:
public final class BetaEnvironment.BuilderA builder for BetaEnvironment.
-
-
Method Summary
Modifier and Type Method Description final BetaEnvironment.Builderid(String id)Environment identifier (e.g., 'env_... final BetaEnvironment.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaEnvironment.BuilderarchivedAt(String archivedAt)RFC 3339 timestamp when environment was archived, or null if not archived final BetaEnvironment.BuilderarchivedAt(Optional<String> archivedAt)Alias for calling Builder.archivedAt with archivedAt.orElse(null).final BetaEnvironment.BuilderarchivedAt(JsonField<String> archivedAt)Sets Builder.archivedAt to an arbitrary JSON value. final BetaEnvironment.Builderconfig(BetaEnvironment.Config config)Environment configuration (either Anthropic Cloud or self-hosted) final BetaEnvironment.Builderconfig(JsonField<BetaEnvironment.Config> config)Sets Builder.config to an arbitrary JSON value. final BetaEnvironment.Builderconfig(BetaCloudConfig cloud)Alias for calling config with Config.ofCloud(cloud).final BetaEnvironment.Builderconfig(BetaSelfHostedConfig selfHosted)Alias for calling config with Config.ofSelfHosted(selfHosted).final BetaEnvironment.BuildercreatedAt(String createdAt)RFC 3339 timestamp when environment was created final BetaEnvironment.BuildercreatedAt(JsonField<String> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaEnvironment.Builderdescription(String description)User-provided description for the environment final BetaEnvironment.Builderdescription(JsonField<String> description)Sets Builder.description to an arbitrary JSON value. final BetaEnvironment.Buildermetadata(BetaEnvironment.Metadata metadata)User-provided metadata key-value pairs final BetaEnvironment.Buildermetadata(JsonField<BetaEnvironment.Metadata> metadata)Sets Builder.metadata to an arbitrary JSON value. final BetaEnvironment.Buildername(String name)Human-readable name for the environment final BetaEnvironment.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final BetaEnvironment.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaEnvironment.BuilderupdatedAt(String updatedAt)RFC 3339 timestamp when environment was last updated final BetaEnvironment.BuilderupdatedAt(JsonField<String> updatedAt)Sets Builder.updatedAt to an arbitrary JSON value. final BetaEnvironment.Builderscope(BetaEnvironment.Scope scope)The visibility scope for this environment. final BetaEnvironment.Builderscope(JsonField<BetaEnvironment.Scope> scope)Sets Builder.scope to an arbitrary JSON value. final BetaEnvironment.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaEnvironment.BuilderputAdditionalProperty(String key, JsonValue value)final BetaEnvironment.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaEnvironment.BuilderremoveAdditionalProperty(String key)final BetaEnvironment.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaEnvironmentbuild()Returns an immutable instance of BetaEnvironment. -
-
Method Detail
-
id
final BetaEnvironment.Builder id(String id)
Environment identifier (e.g., 'env_...')
-
id
final BetaEnvironment.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final BetaEnvironment.Builder archivedAt(String archivedAt)
RFC 3339 timestamp when environment was archived, or null if not archived
-
archivedAt
final BetaEnvironment.Builder archivedAt(Optional<String> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaEnvironment.Builder archivedAt(JsonField<String> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
config
final BetaEnvironment.Builder config(BetaEnvironment.Config config)
Environment configuration (either Anthropic Cloud or self-hosted)
-
config
final BetaEnvironment.Builder config(JsonField<BetaEnvironment.Config> config)
Sets Builder.config to an arbitrary JSON value.
You should usually call Builder.config with a well-typed Config value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
config
final BetaEnvironment.Builder config(BetaCloudConfig cloud)
Alias for calling config with
Config.ofCloud(cloud).
-
config
final BetaEnvironment.Builder config(BetaSelfHostedConfig selfHosted)
Alias for calling config with
Config.ofSelfHosted(selfHosted).
-
createdAt
final BetaEnvironment.Builder createdAt(String createdAt)
RFC 3339 timestamp when environment was created
-
createdAt
final BetaEnvironment.Builder createdAt(JsonField<String> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaEnvironment.Builder description(String description)
User-provided description for the environment
-
description
final BetaEnvironment.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final BetaEnvironment.Builder metadata(BetaEnvironment.Metadata metadata)
User-provided metadata key-value pairs
-
metadata
final BetaEnvironment.Builder metadata(JsonField<BetaEnvironment.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaEnvironment.Builder name(String name)
Human-readable name for the environment
-
name
final BetaEnvironment.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaEnvironment.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("environment")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaEnvironment.Builder updatedAt(String updatedAt)
RFC 3339 timestamp when environment was last updated
-
updatedAt
final BetaEnvironment.Builder updatedAt(JsonField<String> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scope
final BetaEnvironment.Builder scope(BetaEnvironment.Scope scope)
The visibility scope for this environment. 'organization' means visible to all accounts. 'account' means visible only to the owning account.
-
scope
final BetaEnvironment.Builder scope(JsonField<BetaEnvironment.Scope> scope)
Sets Builder.scope to an arbitrary JSON value.
You should usually call Builder.scope with a well-typed Scope value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaEnvironment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaEnvironment.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaEnvironment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaEnvironment.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaEnvironment.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaEnvironment build()
Returns an immutable instance of BetaEnvironment.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .archivedAt() .config() .createdAt() .description() .metadata() .name() .updatedAt()
-
-
-
-