Class DeploymentUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class DeploymentUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
agent
final DeploymentUpdateParams.Body.Builder agent(DeploymentUpdateParams.Agent agent)
Agent to deploy. Accepts the
agentID string, which re-pins to the latest version, or anagentobject with both id and version specified. Omit to preserve. Cannot be cleared.
-
agent
final DeploymentUpdateParams.Body.Builder agent(JsonField<DeploymentUpdateParams.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final DeploymentUpdateParams.Body.Builder agent(String string)
Alias for calling agent with
Agent.ofString(string).
-
agent
final DeploymentUpdateParams.Body.Builder agent(BetaManagedAgentsAgentParams betaManagedAgentsAgentParams)
Alias for calling agent with
Agent.ofBetaManagedAgentsAgentParams(betaManagedAgentsAgentParams).
-
description
final DeploymentUpdateParams.Body.Builder description(String description)
Description. Omit to preserve; send empty string or null to clear.
-
description
final DeploymentUpdateParams.Body.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final DeploymentUpdateParams.Body.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 DeploymentUpdateParams.Body.Builder environmentId(String environmentId)
ID of the
environmentwhere sessions run. Omit to preserve. Cannot be cleared.
-
environmentId
final DeploymentUpdateParams.Body.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 DeploymentUpdateParams.Body.Builder initialEvents(List<BetaManagedAgentsDeploymentInitialEventParams> initialEvents)
Initial events. Full replacement. Omit to preserve. Cannot be cleared. At least 1, maximum 50.
-
initialEvents
final DeploymentUpdateParams.Body.Builder initialEvents(JsonField<List<BetaManagedAgentsDeploymentInitialEventParams>> initialEvents)
Sets Builder.initialEvents to an arbitrary JSON value.
You should usually call Builder.initialEvents with a well-typed
List<BetaManagedAgentsDeploymentInitialEventParams>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addInitialEvent
final DeploymentUpdateParams.Body.Builder addInitialEvent(BetaManagedAgentsDeploymentInitialEventParams initialEvent)
Adds a single BetaManagedAgentsDeploymentInitialEventParams to initialEvents.
-
addInitialEvent
final DeploymentUpdateParams.Body.Builder addInitialEvent(BetaManagedAgentsUserMessageEventParams userMessage)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEventParams.ofUserMessage(userMessage).
-
addInitialEvent
final DeploymentUpdateParams.Body.Builder addInitialEvent(BetaManagedAgentsUserDefineOutcomeEventParams userDefineOutcome)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEventParams.ofUserDefineOutcome(userDefineOutcome).
-
addInitialEvent
final DeploymentUpdateParams.Body.Builder addInitialEvent(BetaManagedAgentsSystemMessageEventParams systemMessage)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEventParams.ofSystemMessage(systemMessage).
-
addUserMessageInitialEvent
final DeploymentUpdateParams.Body.Builder addUserMessageInitialEvent(List<BetaManagedAgentsUserMessageEventParams.Content> content)
Alias for calling addInitialEvent with the following:
BetaManagedAgentsUserMessageEventParams.builder() .type(BetaManagedAgentsUserMessageEventParams.Type.USER_MESSAGE) .content(content) .build()
-
addSystemMessageInitialEvent
final DeploymentUpdateParams.Body.Builder addSystemMessageInitialEvent(List<BetaManagedAgentsSystemContentBlock> content)
Alias for calling addInitialEvent with the following:
BetaManagedAgentsSystemMessageEventParams.builder() .type(BetaManagedAgentsSystemMessageEventParams.Type.SYSTEM_MESSAGE) .content(content) .build()
-
metadata
final DeploymentUpdateParams.Body.Builder metadata(DeploymentUpdateParams.Metadata metadata)
Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars each) with values up to 512 chars.
-
metadata
final DeploymentUpdateParams.Body.Builder metadata(Optional<DeploymentUpdateParams.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final DeploymentUpdateParams.Body.Builder metadata(JsonField<DeploymentUpdateParams.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 DeploymentUpdateParams.Body.Builder name(String name)
Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.
-
name
final DeploymentUpdateParams.Body.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.
-
resources
final DeploymentUpdateParams.Body.Builder resources(List<DeploymentUpdateParams.Resource> resources)
Session resources. Full replacement. Omit to preserve; send empty array or null to clear. Maximum 500.
-
resources
final DeploymentUpdateParams.Body.Builder resources(Optional<List<DeploymentUpdateParams.Resource>> resources)
Alias for calling Builder.resources with
resources.orElse(null).
-
resources
final DeploymentUpdateParams.Body.Builder resources(JsonField<List<DeploymentUpdateParams.Resource>> resources)
Sets Builder.resources to an arbitrary JSON value.
You should usually call Builder.resources with a well-typed
List<Resource>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addResource
final DeploymentUpdateParams.Body.Builder addResource(DeploymentUpdateParams.Resource resource)
-
addResource
final DeploymentUpdateParams.Body.Builder addResource(BetaManagedAgentsGitHubRepositoryResourceParams githubRepository)
Alias for calling addResource with
Resource.ofGitHubRepository(githubRepository).
-
addResource
final DeploymentUpdateParams.Body.Builder addResource(BetaManagedAgentsFileResourceParams file)
Alias for calling addResource with
Resource.ofFile(file).
-
addResource
final DeploymentUpdateParams.Body.Builder addResource(BetaManagedAgentsMemoryStoreResourceParam memoryStore)
Alias for calling addResource with
Resource.ofMemoryStore(memoryStore).
-
addFileResource
final DeploymentUpdateParams.Body.Builder addFileResource(String fileId)
Alias for calling addResource with the following:
BetaManagedAgentsFileResourceParams.builder() .type(BetaManagedAgentsFileResourceParams.Type.FILE) .fileId(fileId) .build()
-
addMemoryStoreResource
final DeploymentUpdateParams.Body.Builder addMemoryStoreResource(String memoryStoreId)
Alias for calling addResource with the following:
BetaManagedAgentsMemoryStoreResourceParam.builder() .type(BetaManagedAgentsMemoryStoreResourceParam.Type.MEMORY_STORE) .memoryStoreId(memoryStoreId) .build()
-
schedule
final DeploymentUpdateParams.Body.Builder schedule(BetaManagedAgentsScheduleParams schedule)
5-field POSIX cron schedule. Literal wall-clock matching in the configured timezone.
-
schedule
final DeploymentUpdateParams.Body.Builder schedule(Optional<BetaManagedAgentsScheduleParams> schedule)
Alias for calling Builder.schedule with
schedule.orElse(null).
-
schedule
final DeploymentUpdateParams.Body.Builder schedule(JsonField<BetaManagedAgentsScheduleParams> schedule)
Sets Builder.schedule to an arbitrary JSON value.
You should usually call Builder.schedule with a well-typed BetaManagedAgentsScheduleParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
vaultIds
final DeploymentUpdateParams.Body.Builder vaultIds(List<String> vaultIds)
Vault IDs. Full replacement. Omit to preserve; send empty array or null to clear. Maximum 50.
-
vaultIds
final DeploymentUpdateParams.Body.Builder vaultIds(Optional<List<String>> vaultIds)
Alias for calling Builder.vaultIds with
vaultIds.orElse(null).
-
vaultIds
final DeploymentUpdateParams.Body.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 DeploymentUpdateParams.Body.Builder addVaultId(String vaultId)
-
additionalProperties
final DeploymentUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final DeploymentUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final DeploymentUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final DeploymentUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final DeploymentUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final DeploymentUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-