Class DeploymentUpdateParams.Builder
-
- All Implemented Interfaces:
public final class DeploymentUpdateParams.BuilderA builder for DeploymentUpdateParams.
-
-
Method Summary
-
-
Method Detail
-
deploymentId
final DeploymentUpdateParams.Builder deploymentId(String deploymentId)
-
deploymentId
final DeploymentUpdateParams.Builder deploymentId(Optional<String> deploymentId)
Alias for calling Builder.deploymentId with
deploymentId.orElse(null).
-
betas
final DeploymentUpdateParams.Builder betas(List<AnthropicBeta> betas)
Optional header to specify the beta version(s) you want to use.
-
betas
final DeploymentUpdateParams.Builder betas(Optional<List<AnthropicBeta>> betas)
Alias for calling Builder.betas with
betas.orElse(null).
-
addBeta
final DeploymentUpdateParams.Builder addBeta(AnthropicBeta beta)
Adds a single AnthropicBeta to betas.
-
addBeta
final DeploymentUpdateParams.Builder addBeta(String value)
Sets addBeta to an arbitrary String.
You should usually call addBeta with a well-typed AnthropicBeta constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
body
final DeploymentUpdateParams.Builder body(DeploymentUpdateParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
agent
final DeploymentUpdateParams.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.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.Builder agent(String string)
Alias for calling agent with
Agent.ofString(string).
-
agent
final DeploymentUpdateParams.Builder agent(BetaManagedAgentsAgentParams betaManagedAgentsAgentParams)
Alias for calling agent with
Agent.ofBetaManagedAgentsAgentParams(betaManagedAgentsAgentParams).
-
description
final DeploymentUpdateParams.Builder description(String description)
Description. Omit to preserve; send empty string or null to clear.
-
description
final DeploymentUpdateParams.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final DeploymentUpdateParams.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.Builder environmentId(String environmentId)
ID of the
environmentwhere sessions run. Omit to preserve. Cannot be cleared.
-
environmentId
final DeploymentUpdateParams.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.Builder initialEvents(List<BetaManagedAgentsDeploymentInitialEventParams> initialEvents)
Initial events. Full replacement. Omit to preserve. Cannot be cleared. At least 1, maximum 50.
-
initialEvents
final DeploymentUpdateParams.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.Builder addInitialEvent(BetaManagedAgentsDeploymentInitialEventParams initialEvent)
Adds a single BetaManagedAgentsDeploymentInitialEventParams to initialEvents.
-
addInitialEvent
final DeploymentUpdateParams.Builder addInitialEvent(BetaManagedAgentsUserMessageEventParams userMessage)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEventParams.ofUserMessage(userMessage).
-
addInitialEvent
final DeploymentUpdateParams.Builder addInitialEvent(BetaManagedAgentsUserDefineOutcomeEventParams userDefineOutcome)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEventParams.ofUserDefineOutcome(userDefineOutcome).
-
addInitialEvent
final DeploymentUpdateParams.Builder addInitialEvent(BetaManagedAgentsSystemMessageEventParams systemMessage)
Alias for calling addInitialEvent with
BetaManagedAgentsDeploymentInitialEventParams.ofSystemMessage(systemMessage).
-
addUserMessageInitialEvent
final DeploymentUpdateParams.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.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.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.Builder metadata(Optional<DeploymentUpdateParams.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final DeploymentUpdateParams.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.Builder name(String name)
Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.
-
name
final DeploymentUpdateParams.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.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.Builder resources(Optional<List<DeploymentUpdateParams.Resource>> resources)
Alias for calling Builder.resources with
resources.orElse(null).
-
resources
final DeploymentUpdateParams.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.Builder addResource(DeploymentUpdateParams.Resource resource)
-
addResource
final DeploymentUpdateParams.Builder addResource(BetaManagedAgentsGitHubRepositoryResourceParams githubRepository)
Alias for calling addResource with
Resource.ofGitHubRepository(githubRepository).
-
addResource
final DeploymentUpdateParams.Builder addResource(BetaManagedAgentsFileResourceParams file)
Alias for calling addResource with
Resource.ofFile(file).
-
addResource
final DeploymentUpdateParams.Builder addResource(BetaManagedAgentsMemoryStoreResourceParam memoryStore)
Alias for calling addResource with
Resource.ofMemoryStore(memoryStore).
-
addFileResource
final DeploymentUpdateParams.Builder addFileResource(String fileId)
Alias for calling addResource with the following:
BetaManagedAgentsFileResourceParams.builder() .type(BetaManagedAgentsFileResourceParams.Type.FILE) .fileId(fileId) .build()
-
addMemoryStoreResource
final DeploymentUpdateParams.Builder addMemoryStoreResource(String memoryStoreId)
Alias for calling addResource with the following:
BetaManagedAgentsMemoryStoreResourceParam.builder() .type(BetaManagedAgentsMemoryStoreResourceParam.Type.MEMORY_STORE) .memoryStoreId(memoryStoreId) .build()
-
schedule
final DeploymentUpdateParams.Builder schedule(BetaManagedAgentsScheduleParams schedule)
5-field POSIX cron schedule. Literal wall-clock matching in the configured timezone.
-
schedule
final DeploymentUpdateParams.Builder schedule(Optional<BetaManagedAgentsScheduleParams> schedule)
Alias for calling Builder.schedule with
schedule.orElse(null).
-
schedule
final DeploymentUpdateParams.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.Builder vaultIds(List<String> vaultIds)
Vault IDs. Full replacement. Omit to preserve; send empty array or null to clear. Maximum 50.
-
vaultIds
final DeploymentUpdateParams.Builder vaultIds(Optional<List<String>> vaultIds)
Alias for calling Builder.vaultIds with
vaultIds.orElse(null).
-
vaultIds
final DeploymentUpdateParams.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.Builder addVaultId(String vaultId)
-
additionalBodyProperties
final DeploymentUpdateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final DeploymentUpdateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final DeploymentUpdateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final DeploymentUpdateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final DeploymentUpdateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final DeploymentUpdateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final DeploymentUpdateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final DeploymentUpdateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final DeploymentUpdateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final DeploymentUpdateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final DeploymentUpdateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final DeploymentUpdateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final DeploymentUpdateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final DeploymentUpdateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final DeploymentUpdateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final DeploymentUpdateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final DeploymentUpdateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final DeploymentUpdateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final DeploymentUpdateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final DeploymentUpdateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final DeploymentUpdateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final DeploymentUpdateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final DeploymentUpdateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final DeploymentUpdateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final DeploymentUpdateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final DeploymentUpdateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final DeploymentUpdateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final DeploymentUpdateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final DeploymentUpdateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final DeploymentUpdateParams build()
Returns an immutable instance of DeploymentUpdateParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-