Class SessionCreateParams.Body
-
- All Implemented Interfaces:
public final class SessionCreateParams.BodyRequest parameters for creating a
session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final SessionCreateParams.Agentagent()Agent identifier. final StringenvironmentId()ID of the environmentdefining the container configuration for this session.final Optional<SessionCreateParams.Metadata>metadata()Arbitrary key-value metadata attached to the session. final Optional<List<SessionCreateParams.Resource>>resources()Resources (e.g. final Optional<String>title()Human-readable session title. final Optional<List<String>>vaultIds()Vault IDs for stored credentials the agent can use during the session. final JsonField<SessionCreateParams.Agent>_agent()Returns the raw JSON value of agent. final JsonField<String>_environmentId()Returns the raw JSON value of environmentId. final JsonField<SessionCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<List<SessionCreateParams.Resource>>_resources()Returns the raw JSON value of resources. final JsonField<String>_title()Returns the raw JSON value of title. final JsonField<List<String>>_vaultIds()Returns the raw JSON value of vaultIds. final Map<String, JsonValue>_additionalProperties()final SessionCreateParams.Body.BuildertoBuilder()final SessionCreateParams.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 SessionCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
agent
final SessionCreateParams.Agent agent()
Agent identifier. Accepts the
agentID string, which pins the latest version for the session, or anagentobject with both id and version specified.
-
environmentId
final String environmentId()
ID of the
environmentdefining the container configuration for this session.
-
metadata
final Optional<SessionCreateParams.Metadata> metadata()
Arbitrary key-value metadata attached to the session. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
-
resources
final Optional<List<SessionCreateParams.Resource>> resources()
Resources (e.g. repositories, files) to mount into the session's container.
-
vaultIds
final Optional<List<String>> vaultIds()
Vault IDs for stored credentials the agent can use during the session.
-
_agent
final JsonField<SessionCreateParams.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_environmentId
final JsonField<String> _environmentId()
Returns the raw JSON value of environmentId.
Unlike environmentId, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<SessionCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_resources
final JsonField<List<SessionCreateParams.Resource>> _resources()
Returns the raw JSON value of resources.
Unlike resources, this method doesn't throw if the JSON field has an unexpected type.
-
_title
final JsonField<String> _title()
Returns the raw JSON value of title.
Unlike title, this method doesn't throw if the JSON field has an unexpected type.
-
_vaultIds
final JsonField<List<String>> _vaultIds()
Returns the raw JSON value of vaultIds.
Unlike vaultIds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SessionCreateParams.Body.Builder toBuilder()
-
validate
final SessionCreateParams.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 SessionCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.agent() .environmentId()
-
-
-
-