Class EnvironmentCreateParams.Body
-
- All Implemented Interfaces:
public final class EnvironmentCreateParams.BodyPublic API request to create a new environment (without org/account fields).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEnvironmentCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description 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>_additionalProperties()final EnvironmentCreateParams.Body.BuildertoBuilder()final EnvironmentCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EnvironmentCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
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. Only applicable for self-hosted environments. 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EnvironmentCreateParams.Body.Builder toBuilder()
-
validate
final EnvironmentCreateParams.Body 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 EnvironmentCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.name()
-
-
-
-