Class EnvironmentCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class EnvironmentCreateParams implements Params
Create a new environment with the specified configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEnvironmentCreateParams.BuilderA builder for EnvironmentCreateParams.
public final classEnvironmentCreateParams.BodyPublic API request to create a new environment (without org/account fields).
public final classEnvironmentCreateParams.ConfigEnvironment configuration
public final classEnvironmentCreateParams.MetadataUser-provided metadata key-value pairs
public final classEnvironmentCreateParams.ScopeThe visibility scope for this environment. 'organization' makes the environment visible to all accounts. 'account' restricts visibility to the owning account only. API organizations support only 'organization'; 'account' is rejected. If not specified, defaults based on organization type.
-
Method Summary
Modifier and Type Method Description final Optional<List<AnthropicBeta>>betas()Optional header to specify the beta version(s) you want to use. final Optional<String>workspaceId()Optional header to select the Workspace for this request. final Stringname()Human-readable name for the environment final Optional<EnvironmentCreateParams.Config>config()Environment configuration final Optional<String>description()Optional description of the environment final Optional<EnvironmentCreateParams.Metadata>metadata()User-provided metadata key-value pairs final Optional<EnvironmentCreateParams.Scope>scope()The visibility scope for this environment. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<EnvironmentCreateParams.Config>_config()Returns the raw JSON value of config. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<EnvironmentCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<EnvironmentCreateParams.Scope>_scope()Returns the raw JSON value of scope. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final EnvironmentCreateParams.BuildertoBuilder()final EnvironmentCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static EnvironmentCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of EnvironmentCreateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
Optional header to specify the beta version(s) you want to use.
-
workspaceId
final Optional<String> workspaceId()
Optional header to select the Workspace for this request. The value is a Workspace ID (for example,
wrkspc_011CZkZaBF1tNoB5wlCeusgy).Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
-
config
final Optional<EnvironmentCreateParams.Config> config()
Environment configuration
-
description
final Optional<String> description()
Optional description of the environment
-
metadata
final Optional<EnvironmentCreateParams.Metadata> metadata()
User-provided metadata key-value pairs
-
scope
final Optional<EnvironmentCreateParams.Scope> scope()
The visibility scope for this environment. 'organization' makes the environment visible to all accounts. 'account' restricts visibility to the owning account only. API organizations support only 'organization'; 'account' is rejected. If not specified, defaults based on organization 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.
-
_config
final JsonField<EnvironmentCreateParams.Config> _config()
Returns the raw JSON value of config.
Unlike config, 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<EnvironmentCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_scope
final JsonField<EnvironmentCreateParams.Scope> _scope()
Returns the raw JSON value of scope.
Unlike scope, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final EnvironmentCreateParams.Builder toBuilder()
-
_body
final EnvironmentCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static EnvironmentCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of EnvironmentCreateParams.
The following fields are required:
.name()
-
-
-
-