Class BetaManagedAgentsDeployment.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDeployment.BuilderA builder for BetaManagedAgentsDeployment.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsDeployment.Builder id(String id)
Unique identifier for this deployment.
-
id
final BetaManagedAgentsDeployment.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.
-
agent
final BetaManagedAgentsDeployment.Builder agent(BetaManagedAgentsAgentReference agent)
A resolved agent reference with a concrete version.
-
agent
final BetaManagedAgentsDeployment.Builder agent(JsonField<BetaManagedAgentsAgentReference> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed BetaManagedAgentsAgentReference value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final BetaManagedAgentsDeployment.Builder archivedAt(OffsetDateTime archivedAt)
A timestamp in RFC 3339 format
-
archivedAt
final BetaManagedAgentsDeployment.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaManagedAgentsDeployment.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaManagedAgentsDeployment.Builder createdAt(OffsetDateTime createdAt)
A timestamp in RFC 3339 format
-
createdAt
final BetaManagedAgentsDeployment.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaManagedAgentsDeployment.Builder description(String description)
Description of what the deployment does.
-
description
final BetaManagedAgentsDeployment.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final BetaManagedAgentsDeployment.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.
-
environmentId
final BetaManagedAgentsDeployment.Builder environmentId(String environmentId)
ID of the
environmentwhere sessions run.
-
environmentId
final BetaManagedAgentsDeployment.Builder environmentId(JsonField<String> environmentId)
Sets Builder.environmentId to an arbitrary JSON value.
You should usually call Builder.environmentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
initialEvents
final BetaManagedAgentsDeployment.Builder initialEvents(List<BetaManagedAgentsDeploymentInitialEvent> initialEvents)
Events sent to each session immediately after creation.
-
initialEvents
final BetaManagedAgentsDeployment.Builder initialEvents(JsonField<List<BetaManagedAgentsDeploymentInitialEvent>> initialEvents)
Sets Builder.initialEvents to an arbitrary JSON value.
You should usually call Builder.initialEvents with a well-typed
List<BetaManagedAgentsDeploymentInitialEvent>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addInitialEvent
final BetaManagedAgentsDeployment.Builder addInitialEvent(BetaManagedAgentsDeploymentInitialEvent initialEvent)
Adds a single BetaManagedAgentsDeploymentInitialEvent to initialEvents.
-
addInitialEvent
final BetaManagedAgentsDeployment.Builder addInitialEvent(BetaManagedAgentsDeploymentUserMessageEvent userMessage)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEvent.ofUserMessage(userMessage).
-
addInitialEvent
final BetaManagedAgentsDeployment.Builder addInitialEvent(BetaManagedAgentsDeploymentUserDefineOutcomeEvent userDefineOutcome)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEvent.ofUserDefineOutcome(userDefineOutcome).
-
addInitialEvent
final BetaManagedAgentsDeployment.Builder addInitialEvent(BetaManagedAgentsDeploymentSystemMessageEvent systemMessage)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEvent.ofSystemMessage(systemMessage).
-
addUserMessageInitialEvent
final BetaManagedAgentsDeployment.Builder addUserMessageInitialEvent(List<BetaManagedAgentsDeploymentUserMessageEvent.Content> content)
Alias for calling addInitialEvent with the following:
BetaManagedAgentsDeploymentUserMessageEvent.builder() .type(BetaManagedAgentsDeploymentUserMessageEvent.Type.USER_MESSAGE) .content(content) .build()
-
addSystemMessageInitialEvent
final BetaManagedAgentsDeployment.Builder addSystemMessageInitialEvent(List<BetaManagedAgentsSystemContentBlock> content)
Alias for calling addInitialEvent with the following:
BetaManagedAgentsDeploymentSystemMessageEvent.builder() .type(BetaManagedAgentsDeploymentSystemMessageEvent.Type.SYSTEM_MESSAGE) .content(content) .build()
-
metadata
final BetaManagedAgentsDeployment.Builder metadata(BetaManagedAgentsDeployment.Metadata metadata)
Arbitrary key-value metadata. Maximum 16 pairs.
-
metadata
final BetaManagedAgentsDeployment.Builder metadata(JsonField<BetaManagedAgentsDeployment.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 BetaManagedAgentsDeployment.Builder name(String name)
Human-readable name.
-
name
final BetaManagedAgentsDeployment.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.
-
pausedReason
final BetaManagedAgentsDeployment.Builder pausedReason(BetaManagedAgentsDeploymentPausedReason pausedReason)
Why a deployment is paused. Non-null exactly when
statusispaused.
-
pausedReason
final BetaManagedAgentsDeployment.Builder pausedReason(Optional<BetaManagedAgentsDeploymentPausedReason> pausedReason)
Alias for calling Builder.pausedReason with
pausedReason.orElse(null).
-
pausedReason
final BetaManagedAgentsDeployment.Builder pausedReason(JsonField<BetaManagedAgentsDeploymentPausedReason> pausedReason)
Sets Builder.pausedReason to an arbitrary JSON value.
You should usually call Builder.pausedReason with a well-typed BetaManagedAgentsDeploymentPausedReason value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pausedReason
final BetaManagedAgentsDeployment.Builder pausedReason(BetaManagedAgentsManualDeploymentPausedReason manual)
Alias for calling pausedReason with
BetaManagedAgentsDeploymentPausedReason.ofManual(manual).
-
pausedReason
final BetaManagedAgentsDeployment.Builder pausedReason(BetaManagedAgentsErrorDeploymentPausedReason error)
Alias for calling pausedReason with
BetaManagedAgentsDeploymentPausedReason.ofError(error).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsDeploymentPausedReasonError error)
Alias for calling pausedReason with the following:
BetaManagedAgentsErrorDeploymentPausedReason.builder() .type(BetaManagedAgentsErrorDeploymentPausedReason.Type.ERROR) .error(error) .build()
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsEnvironmentArchivedDeploymentPausedReasonError environmentArchived)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofEnvironmentArchived(environmentArchived).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsAgentArchivedDeploymentPausedReasonError agentArchived)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofAgentArchived(agentArchived).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError environmentNotFound)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofEnvironmentNotFound(environmentNotFound).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsVaultNotFoundDeploymentPausedReasonError vaultNotFound)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofVaultNotFound(vaultNotFound).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsFileNotFoundDeploymentPausedReasonError fileNotFound)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofFileNotFound(fileNotFound).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError sessionResourceNotFound)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofSessionResourceNotFound(sessionResourceNotFound).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsWorkspaceArchivedDeploymentPausedReasonError workspaceArchived)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofWorkspaceArchived(workspaceArchived).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsOrganizationDisabledDeploymentPausedReasonError organizationDisabled)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofOrganizationDisabled(organizationDisabled).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError memoryStoreArchived)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofMemoryStoreArchived(memoryStoreArchived).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsSkillNotFoundDeploymentPausedReasonError skillNotFound)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofSkillNotFound(skillNotFound).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsVaultArchivedDeploymentPausedReasonError vaultArchived)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofVaultArchived(vaultArchived).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsUnknownDeploymentPausedReasonError unknown)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofUnknown(unknown).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError selfHostedResourcesUnsupported)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofSelfHostedResourcesUnsupported(selfHostedResourcesUnsupported).
-
errorPausedReason
final BetaManagedAgentsDeployment.Builder errorPausedReason(BetaManagedAgentsMcpEgressBlockedDeploymentPausedReasonError mcpEgressBlocked)
Alias for calling errorPausedReason with
BetaManagedAgentsDeploymentPausedReasonError.ofMcpEgressBlocked(mcpEgressBlocked).
-
resources
final BetaManagedAgentsDeployment.Builder resources(List<BetaManagedAgentsSessionResourceConfig> resources)
Resources attached to sessions created from this deployment. Echoes the input minus write-only credentials.
-
resources
final BetaManagedAgentsDeployment.Builder resources(JsonField<List<BetaManagedAgentsSessionResourceConfig>> resources)
Sets Builder.resources to an arbitrary JSON value.
You should usually call Builder.resources with a well-typed
List<BetaManagedAgentsSessionResourceConfig>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addResource
final BetaManagedAgentsDeployment.Builder addResource(BetaManagedAgentsSessionResourceConfig resource)
Adds a single BetaManagedAgentsSessionResourceConfig to resources.
-
addResource
final BetaManagedAgentsDeployment.Builder addResource(BetaManagedAgentsGitHubRepositoryResourceConfig githubRepository)
Alias for calling addResource with
BetaManagedAgentsSessionResourceConfig.ofGitHubRepository(githubRepository).
-
addResource
final BetaManagedAgentsDeployment.Builder addResource(BetaManagedAgentsFileResourceConfig file)
Alias for calling addResource with
BetaManagedAgentsSessionResourceConfig.ofFile(file).
-
addResource
final BetaManagedAgentsDeployment.Builder addResource(BetaManagedAgentsMemoryStoreResourceConfig memoryStore)
Alias for calling addResource with
BetaManagedAgentsSessionResourceConfig.ofMemoryStore(memoryStore).
-
addGitHubRepositoryResource
final BetaManagedAgentsDeployment.Builder addGitHubRepositoryResource(String url)
Alias for calling addResource with the following:
BetaManagedAgentsGitHubRepositoryResourceConfig.builder() .type(BetaManagedAgentsGitHubRepositoryResourceConfig.Type.GITHUB_REPOSITORY) .url(url) .build()
-
addFileResource
final BetaManagedAgentsDeployment.Builder addFileResource(String fileId)
Alias for calling addResource with the following:
BetaManagedAgentsFileResourceConfig.builder() .type(BetaManagedAgentsFileResourceConfig.Type.FILE) .fileId(fileId) .build()
-
addMemoryStoreResource
final BetaManagedAgentsDeployment.Builder addMemoryStoreResource(String memoryStoreId)
Alias for calling addResource with the following:
BetaManagedAgentsMemoryStoreResourceConfig.builder() .type(BetaManagedAgentsMemoryStoreResourceConfig.Type.MEMORY_STORE) .memoryStoreId(memoryStoreId) .build()
-
schedule
final BetaManagedAgentsDeployment.Builder schedule(BetaManagedAgentsSchedule schedule)
5-field POSIX cron schedule with computed runtime timestamps.
-
schedule
final BetaManagedAgentsDeployment.Builder schedule(Optional<BetaManagedAgentsSchedule> schedule)
Alias for calling Builder.schedule with
schedule.orElse(null).
-
schedule
final BetaManagedAgentsDeployment.Builder schedule(JsonField<BetaManagedAgentsSchedule> schedule)
Sets Builder.schedule to an arbitrary JSON value.
You should usually call Builder.schedule with a well-typed BetaManagedAgentsSchedule value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final BetaManagedAgentsDeployment.Builder status(BetaManagedAgentsDeploymentStatus status)
Lifecycle status of a deployment.
-
status
final BetaManagedAgentsDeployment.Builder status(JsonField<BetaManagedAgentsDeploymentStatus> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed BetaManagedAgentsDeploymentStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsDeployment.Builder type(BetaManagedAgentsDeployment.Type type)
-
type
final BetaManagedAgentsDeployment.Builder type(JsonField<BetaManagedAgentsDeployment.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaManagedAgentsDeployment.Builder updatedAt(OffsetDateTime updatedAt)
A timestamp in RFC 3339 format
-
updatedAt
final BetaManagedAgentsDeployment.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
vaultIds
final BetaManagedAgentsDeployment.Builder vaultIds(List<String> vaultIds)
Vault IDs supplying stored credentials for sessions created from this deployment.
-
vaultIds
final BetaManagedAgentsDeployment.Builder vaultIds(JsonField<List<String>> vaultIds)
Sets Builder.vaultIds to an arbitrary JSON value.
You should usually call Builder.vaultIds with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addVaultId
final BetaManagedAgentsDeployment.Builder addVaultId(String vaultId)
-
additionalProperties
final BetaManagedAgentsDeployment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsDeployment.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsDeployment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsDeployment.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsDeployment.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsDeployment build()
Returns an immutable instance of BetaManagedAgentsDeployment.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .agent() .archivedAt() .createdAt() .description() .environmentId() .initialEvents() .metadata() .name() .pausedReason() .resources() .schedule() .status() .type() .updatedAt() .vaultIds()
-
-
-
-