Interface StartImageScanRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StartImageScanRequest.Builder,
,StartImageScanRequest> EcrRequest.Builder
,SdkBuilder<StartImageScanRequest.Builder,
,StartImageScanRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
StartImageScanRequest
public static interface StartImageScanRequest.Builder
extends EcrRequest.Builder, SdkPojo, CopyableBuilder<StartImageScanRequest.Builder,StartImageScanRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault StartImageScanRequest.Builder
imageId
(Consumer<ImageIdentifier.Builder> imageId) Sets the value of the ImageId property for this object.imageId
(ImageIdentifier imageId) Sets the value of the ImageId property for this object.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.registryId
(String registryId) The Amazon Web Services account ID associated with the registry that contains the repository in which to start an image scan request.repositoryName
(String repositoryName) The name of the repository that contains the images to scan.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ecr.model.EcrRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
registryId
The Amazon Web Services account ID associated with the registry that contains the repository in which to start an image scan request. If you do not specify a registry, the default registry is assumed.
- Parameters:
registryId
- The Amazon Web Services account ID associated with the registry that contains the repository in which to start an image scan request. If you do not specify a registry, the default registry is assumed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryName
The name of the repository that contains the images to scan.
- Parameters:
repositoryName
- The name of the repository that contains the images to scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageId
Sets the value of the ImageId property for this object.- Parameters:
imageId
- The new value for the ImageId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageId
Sets the value of the ImageId property for this object. This is a convenience method that creates an instance of theImageIdentifier.Builder
avoiding the need to create one manually viaImageIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageId(ImageIdentifier)
.- Parameters:
imageId
- a consumer that will call methods onImageIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
StartImageScanRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartImageScanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-