Interface ImageDetail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ImageDetail.Builder,ImageDetail>,SdkBuilder<ImageDetail.Builder,ImageDetail>,SdkPojo
- Enclosing class:
- ImageDetail
public static interface ImageDetail.Builder extends SdkPojo, CopyableBuilder<ImageDetail.Builder,ImageDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ImageDetail.BuilderartifactMediaType(String artifactMediaType)The artifact media type of the image.ImageDetail.BuilderimageDigest(String imageDigest)Thesha256digest of the image manifest.ImageDetail.BuilderimageManifestMediaType(String imageManifestMediaType)The media type of the image manifest.ImageDetail.BuilderimagePushedAt(Instant imagePushedAt)The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository.default ImageDetail.BuilderimageScanFindingsSummary(Consumer<ImageScanFindingsSummary.Builder> imageScanFindingsSummary)A summary of the last completed image scan.ImageDetail.BuilderimageScanFindingsSummary(ImageScanFindingsSummary imageScanFindingsSummary)A summary of the last completed image scan.default ImageDetail.BuilderimageScanStatus(Consumer<ImageScanStatus.Builder> imageScanStatus)The current state of the scan.ImageDetail.BuilderimageScanStatus(ImageScanStatus imageScanStatus)The current state of the scan.ImageDetail.BuilderimageSizeInBytes(Long imageSizeInBytes)The size, in bytes, of the image in the repository.ImageDetail.BuilderimageTags(String... imageTags)The list of tags associated with this image.ImageDetail.BuilderimageTags(Collection<String> imageTags)The list of tags associated with this image.ImageDetail.BuilderlastRecordedPullTime(Instant lastRecordedPullTime)The date and time, expressed in standard JavaScript date format, when Amazon ECR recorded the last image pull.ImageDetail.BuilderregistryId(String registryId)The Amazon Web Services account ID associated with the registry to which this image belongs.ImageDetail.BuilderrepositoryName(String repositoryName)The name of the repository to which this image belongs.-
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 Detail
-
registryId
ImageDetail.Builder registryId(String registryId)
The Amazon Web Services account ID associated with the registry to which this image belongs.
- Parameters:
registryId- The Amazon Web Services account ID associated with the registry to which this image belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryName
ImageDetail.Builder repositoryName(String repositoryName)
The name of the repository to which this image belongs.
- Parameters:
repositoryName- The name of the repository to which this image belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageDigest
ImageDetail.Builder imageDigest(String imageDigest)
The
sha256digest of the image manifest.- Parameters:
imageDigest- Thesha256digest of the image manifest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageTags
ImageDetail.Builder imageTags(Collection<String> imageTags)
The list of tags associated with this image.
- Parameters:
imageTags- The list of tags associated with this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageTags
ImageDetail.Builder imageTags(String... imageTags)
The list of tags associated with this image.
- Parameters:
imageTags- The list of tags associated with this image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageSizeInBytes
ImageDetail.Builder imageSizeInBytes(Long imageSizeInBytes)
The size, in bytes, of the image in the repository.
If the image is a manifest list, this will be the max size of all manifests in the list.
Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker registry. The output of the
docker imagescommand shows the uncompressed image size, so it may return a larger image size than the image sizes returned by DescribeImages.- Parameters:
imageSizeInBytes- The size, in bytes, of the image in the repository.If the image is a manifest list, this will be the max size of all manifests in the list.
Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker registry. The output of the
docker imagescommand shows the uncompressed image size, so it may return a larger image size than the image sizes returned by DescribeImages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePushedAt
ImageDetail.Builder imagePushedAt(Instant imagePushedAt)
The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository.
- Parameters:
imagePushedAt- The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanStatus
ImageDetail.Builder imageScanStatus(ImageScanStatus imageScanStatus)
The current state of the scan.
- Parameters:
imageScanStatus- The current state of the scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanStatus
default ImageDetail.Builder imageScanStatus(Consumer<ImageScanStatus.Builder> imageScanStatus)
The current state of the scan.
This is a convenience method that creates an instance of theImageScanStatus.Builderavoiding the need to create one manually viaImageScanStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageScanStatus(ImageScanStatus).- Parameters:
imageScanStatus- a consumer that will call methods onImageScanStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
imageScanStatus(ImageScanStatus)
-
imageScanFindingsSummary
ImageDetail.Builder imageScanFindingsSummary(ImageScanFindingsSummary imageScanFindingsSummary)
A summary of the last completed image scan.
- Parameters:
imageScanFindingsSummary- A summary of the last completed image scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanFindingsSummary
default ImageDetail.Builder imageScanFindingsSummary(Consumer<ImageScanFindingsSummary.Builder> imageScanFindingsSummary)
A summary of the last completed image scan.
This is a convenience method that creates an instance of theImageScanFindingsSummary.Builderavoiding the need to create one manually viaImageScanFindingsSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageScanFindingsSummary(ImageScanFindingsSummary).- Parameters:
imageScanFindingsSummary- a consumer that will call methods onImageScanFindingsSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
imageScanFindingsSummary(ImageScanFindingsSummary)
-
imageManifestMediaType
ImageDetail.Builder imageManifestMediaType(String imageManifestMediaType)
The media type of the image manifest.
- Parameters:
imageManifestMediaType- The media type of the image manifest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
artifactMediaType
ImageDetail.Builder artifactMediaType(String artifactMediaType)
The artifact media type of the image.
- Parameters:
artifactMediaType- The artifact media type of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastRecordedPullTime
ImageDetail.Builder lastRecordedPullTime(Instant lastRecordedPullTime)
The date and time, expressed in standard JavaScript date format, when Amazon ECR recorded the last image pull.
Amazon ECR refreshes the last image pull timestamp at least once every 24 hours. For example, if you pull an image once a day then the
lastRecordedPullTimetimestamp will indicate the exact time that the image was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes thelastRecordedPullTimetimestamp at least once every 24 hours, the result may not be the exact time that the image was last pulled.- Parameters:
lastRecordedPullTime- The date and time, expressed in standard JavaScript date format, when Amazon ECR recorded the last image pull.Amazon ECR refreshes the last image pull timestamp at least once every 24 hours. For example, if you pull an image once a day then the
lastRecordedPullTimetimestamp will indicate the exact time that the image was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes thelastRecordedPullTimetimestamp at least once every 24 hours, the result may not be the exact time that the image was last pulled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-