Interface StartTaskRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<StartTaskRequest.Builder,,StartTaskRequest> SdkBuilder<StartTaskRequest.Builder,,StartTaskRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartTaskRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault StartTaskRequest.BuilderaccessControlConfig(Consumer<AccessControlConfig.Builder> accessControlConfig) Who can see the content that the task adds to the agent context.accessControlConfig(AccessControlConfig accessControlConfig) Who can see the content that the task adds to the agent context.agentContextId(String agentContextId) The agent context, as an ID or ARN.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure that the request completes no more than one time.description(String description) A description of the task.default StartTaskRequest.BuilderinputConfiguration(Consumer<TaskInputConfiguration.Builder> inputConfiguration) What the task imports.inputConfiguration(TaskInputConfiguration inputConfiguration) What the task imports.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agentContextId
The agent context, as an ID or ARN.
- Parameters:
agentContextId- The agent context, as an ID or ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure that the request completes no more than one time. The token is scoped to your account and the agent context. If you reuse a token on the same agent context with different parameters, the request fails with
ValidationException.- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure that the request completes no more than one time. The token is scoped to your account and the agent context. If you reuse a token on the same agent context with different parameters, the request fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the task. Up to 1,024 characters, with no control characters.
- Parameters:
description- A description of the task. Up to 1,024 characters, with no control characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputConfiguration
What the task imports. Set exactly one member. The member that you set determines the task's
type.- Parameters:
inputConfiguration- What the task imports. Set exactly one member. The member that you set determines the task'stype.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputConfiguration
default StartTaskRequest.Builder inputConfiguration(Consumer<TaskInputConfiguration.Builder> inputConfiguration) What the task imports. Set exactly one member. The member that you set determines the task's
This is a convenience method that creates an instance of thetype.TaskInputConfiguration.Builderavoiding the need to create one manually viaTaskInputConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputConfiguration(TaskInputConfiguration).- Parameters:
inputConfiguration- a consumer that will call methods onTaskInputConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessControlConfig
Who can see the content that the task adds to the agent context. AWS Context supports only one entry:
ALLOWwithprincipalId*, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include aDENYentry, or send more than one entry, the request fails withValidationException, and no task is started.- Parameters:
accessControlConfig- Who can see the content that the task adds to the agent context. AWS Context supports only one entry:ALLOWwithprincipalId*, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include aDENYentry, or send more than one entry, the request fails withValidationException, and no task is started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessControlConfig
default StartTaskRequest.Builder accessControlConfig(Consumer<AccessControlConfig.Builder> accessControlConfig) Who can see the content that the task adds to the agent context. AWS Context supports only one entry:
This is a convenience method that creates an instance of theALLOWwithprincipalId*, so that every reader of the agent context can see it. If you omit it or send no entries, AWS Context uses that entry. If you name any other principal, include aDENYentry, or send more than one entry, the request fails withValidationException, and no task is started.AccessControlConfig.Builderavoiding the need to create one manually viaAccessControlConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessControlConfig(AccessControlConfig).- Parameters:
accessControlConfig- a consumer that will call methods onAccessControlConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
StartTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-