Interface Task.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Task.Builder,,Task> SdkBuilder<Task.Builder,,Task> SdkPojo
- Enclosing class:
Task
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the agent space.categories(Collection<Category> categories) The list of categories assigned to the task.categories(Consumer<Category.Builder>... categories) The list of categories assigned to the task.categories(Category... categories) The list of categories assigned to the task.The date and time the task was created, in UTC format.description(String description) A description of the task.executionStatus(String executionStatus) The current execution status of the task.executionStatus(TaskExecutionStatus executionStatus) The current execution status of the task.default Task.BuilderlogsLocation(Consumer<LogLocation.Builder> logsLocation) The location of the task execution logs.logsLocation(LogLocation logsLocation) The location of the task execution logs.The unique identifier of the pentest associated with the task.pentestJobId(String pentestJobId) The unique identifier of the pentest job that contains the task.The type of security risk the task is testing for.The type of security risk the task is testing for.default Task.BuildertargetEndpoint(Consumer<Endpoint.Builder> targetEndpoint) The target endpoint being tested by the task.targetEndpoint(Endpoint targetEndpoint) The target endpoint being tested by the task.The unique identifier of the task.The title of the task.The date and time the task was last updated, in UTC format.Methods 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
-
taskId
The unique identifier of the task.
- Parameters:
taskId- The unique identifier of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pentestId
The unique identifier of the pentest associated with the task.
- Parameters:
pentestId- The unique identifier of the pentest associated with the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pentestJobId
The unique identifier of the pentest job that contains the task.
- Parameters:
pentestJobId- The unique identifier of the pentest job that contains the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentSpaceId
The unique identifier of the agent space.
- Parameters:
agentSpaceId- The unique identifier of the agent space.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
The title of the task.
- Parameters:
title- The title of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the task.
- Parameters:
description- A description of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
The list of categories assigned to the task.
- Parameters:
categories- The list of categories assigned to the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
The list of categories assigned to the task.
- Parameters:
categories- The list of categories assigned to the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
The list of categories assigned to the task.
This is a convenience method that creates an instance of theCategory.Builderavoiding the need to create one manually viaCategory.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocategories(List<Category>).- Parameters:
categories- a consumer that will call methods onCategory.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
riskType
The type of security risk the task is testing for.
- Parameters:
riskType- The type of security risk the task is testing for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
riskType
The type of security risk the task is testing for.
- Parameters:
riskType- The type of security risk the task is testing for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetEndpoint
The target endpoint being tested by the task.
- Parameters:
targetEndpoint- The target endpoint being tested by the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetEndpoint
The target endpoint being tested by the task.
This is a convenience method that creates an instance of theEndpoint.Builderavoiding the need to create one manually viaEndpoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargetEndpoint(Endpoint).- Parameters:
targetEndpoint- a consumer that will call methods onEndpoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionStatus
The current execution status of the task.
- Parameters:
executionStatus- The current execution status of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionStatus
The current execution status of the task.
- Parameters:
executionStatus- The current execution status of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logsLocation
The location of the task execution logs.
- Parameters:
logsLocation- The location of the task execution logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logsLocation
The location of the task execution logs.
This is a convenience method that creates an instance of theLogLocation.Builderavoiding the need to create one manually viaLogLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologsLocation(LogLocation).- Parameters:
logsLocation- a consumer that will call methods onLogLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The date and time the task was created, in UTC format.
- Parameters:
createdAt- The date and time the task was created, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time the task was last updated, in UTC format.
- Parameters:
updatedAt- The date and time the task was last updated, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-