Interface ImageLayerAggregationResponse.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageLayerAggregationResponse.Builder,
,ImageLayerAggregationResponse> SdkBuilder<ImageLayerAggregationResponse.Builder,
,ImageLayerAggregationResponse> SdkPojo
- Enclosing class:
ImageLayerAggregationResponse
@Mutable
@NotThreadSafe
public static interface ImageLayerAggregationResponse.Builder
extends SdkPojo, CopyableBuilder<ImageLayerAggregationResponse.Builder,ImageLayerAggregationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Amazon Web Services account that owns the container image hosting the layer image.The layer hash.repository
(String repository) The repository the layer resides in.resourceId
(String resourceId) The resource ID of the container image layer.severityCounts
(Consumer<SeverityCounts.Builder> severityCounts) An object that represents the count of matched findings per severity.severityCounts
(SeverityCounts severityCounts) An object that represents the count of matched findings per severity.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
accountId
The ID of the Amazon Web Services account that owns the container image hosting the layer image.
- Parameters:
accountId
- The ID of the Amazon Web Services account that owns the container image hosting the layer image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layerHash
The layer hash.
- Parameters:
layerHash
- The layer hash.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repository
The repository the layer resides in.
- Parameters:
repository
- The repository the layer resides in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
The resource ID of the container image layer.
- Parameters:
resourceId
- The resource ID of the container image layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severityCounts
An object that represents the count of matched findings per severity.
- Parameters:
severityCounts
- An object that represents the count of matched findings per severity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severityCounts
default ImageLayerAggregationResponse.Builder severityCounts(Consumer<SeverityCounts.Builder> severityCounts) An object that represents the count of matched findings per severity.
This is a convenience method that creates an instance of theSeverityCounts.Builder
avoiding the need to create one manually viaSeverityCounts.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toseverityCounts(SeverityCounts)
.- Parameters:
severityCounts
- a consumer that will call methods onSeverityCounts.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-