Class EnvVarCreateParams
-
- All Implemented Interfaces:
-
com.braintrustdata.api.core.Params
public final class EnvVarCreateParams implements Params
Create a new env_var. If there is an existing env_var with the same name as the one specified in the request, will return the existing env_var unmodified
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEnvVarCreateParams.BuilderA builder for EnvVarCreateParams.
public final classEnvVarCreateParams.Bodypublic final classEnvVarCreateParams.ObjectTypeThe type of the object the environment variable is scoped for
-
Method Summary
Modifier and Type Method Description final Stringname()The name of the environment variable final StringobjectId()The id of the object the environment variable is scoped for final EnvVarCreateParams.ObjectTypeobjectType()The type of the object the environment variable is scoped for final Optional<String>value()The value of the environment variable. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_objectId()Returns the raw JSON value of objectId. final JsonField<EnvVarCreateParams.ObjectType>_objectType()Returns the raw JSON value of objectType. final JsonField<String>_value()Returns the raw JSON value of value. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()final EnvVarCreateParams.BuildertoBuilder()final EnvVarCreateParams.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. Booleanequals(Object other)IntegerhashCode()StringtoString()final static EnvVarCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of EnvVarCreateParams. -
-
Method Detail
-
objectType
final EnvVarCreateParams.ObjectType objectType()
The type of the object the environment variable is scoped for
-
value
final Optional<String> value()
The value of the environment variable. Will be encrypted at rest.
-
_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.
-
_objectId
final JsonField<String> _objectId()
Returns the raw JSON value of objectId.
Unlike objectId, this method doesn't throw if the JSON field has an unexpected type.
-
_objectType
final JsonField<EnvVarCreateParams.ObjectType> _objectType()
Returns the raw JSON value of objectType.
Unlike objectType, this method doesn't throw if the JSON field has an unexpected type.
-
_value
final JsonField<String> _value()
Returns the raw JSON value of value.
Unlike value, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
toBuilder
final EnvVarCreateParams.Builder toBuilder()
-
_body
final EnvVarCreateParams.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.
-
builder
final static EnvVarCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of EnvVarCreateParams.
The following fields are required:
.name() .objectId() .objectType()
-
-
-
-