/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ecr.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object that describes an image returned by a DescribeImages operation. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ImageDetail implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Web Services account ID associated with the registry to which this image belongs. *
*/ private String registryId; /** ** The name of the repository to which this image belongs. *
*/ private String repositoryName; /** *
* The sha256
digest of the image manifest.
*
* The list of tags associated with this image. *
*/ private java.util.List* 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 images
command shows the uncompressed image size, so it may
* return a larger image size than the image sizes returned by DescribeImages.
*
* The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the * repository. *
*/ private java.util.Date imagePushedAt; /** ** The current state of the scan. *
*/ private ImageScanStatus imageScanStatus; /** ** A summary of the last completed image scan. *
*/ private ImageScanFindingsSummary imageScanFindingsSummary; /** ** The media type of the image manifest. *
*/ private String imageManifestMediaType; /** ** The artifact media type of the image. *
*/ private String artifactMediaType; /** ** 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 lastRecordedPullTime
timestamp will indicate the exact time that the image
* was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes the
* lastRecordedPullTime
timestamp at least once every 24 hours, the result may not be the exact time
* that the image was last pulled.
*
* The Amazon Web Services account ID associated with the registry to which this image belongs. *
* * @param registryId * The Amazon Web Services account ID associated with the registry to which this image belongs. */ public void setRegistryId(String registryId) { this.registryId = registryId; } /** ** The Amazon Web Services account ID associated with the registry to which this image belongs. *
* * @return The Amazon Web Services account ID associated with the registry to which this image belongs. */ public String getRegistryId() { return this.registryId; } /** ** The Amazon Web Services account ID associated with the registry to which this image belongs. *
* * @param registryId * The Amazon Web Services account ID associated with the registry to which this image belongs. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withRegistryId(String registryId) { setRegistryId(registryId); return this; } /** ** The name of the repository to which this image belongs. *
* * @param repositoryName * The name of the repository to which this image belongs. */ public void setRepositoryName(String repositoryName) { this.repositoryName = repositoryName; } /** ** The name of the repository to which this image belongs. *
* * @return The name of the repository to which this image belongs. */ public String getRepositoryName() { return this.repositoryName; } /** ** The name of the repository to which this image belongs. *
* * @param repositoryName * The name of the repository to which this image belongs. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withRepositoryName(String repositoryName) { setRepositoryName(repositoryName); return this; } /** *
* The sha256
digest of the image manifest.
*
sha256
digest of the image manifest.
*/
public void setImageDigest(String imageDigest) {
this.imageDigest = imageDigest;
}
/**
*
* The sha256
digest of the image manifest.
*
sha256
digest of the image manifest.
*/
public String getImageDigest() {
return this.imageDigest;
}
/**
*
* The sha256
digest of the image manifest.
*
sha256
digest of the image manifest.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ImageDetail withImageDigest(String imageDigest) {
setImageDigest(imageDigest);
return this;
}
/**
* * The list of tags associated with this image. *
* * @return The list of tags associated with this image. */ public java.util.List* The list of tags associated with this image. *
* * @param imageTags * The list of tags associated with this image. */ public void setImageTags(java.util.Collection* The list of tags associated with this image. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setImageTags(java.util.Collection)} or {@link #withImageTags(java.util.Collection)} if you want to * override the existing values. *
* * @param imageTags * The list of tags associated with this image. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withImageTags(String... imageTags) { if (this.imageTags == null) { setImageTags(new java.util.ArrayList* The list of tags associated with this image. *
* * @param imageTags * The list of tags associated with this image. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withImageTags(java.util.Collection* 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 images
command shows the uncompressed image size, so it may
* return a larger image size than the image sizes returned by DescribeImages.
*
* 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 images
command shows the uncompressed image size,
* so it may return a larger image size than the image sizes returned by DescribeImages.
*
* 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 images
command shows the uncompressed image size, so it may
* return a larger image size than the image sizes returned by DescribeImages.
*
* 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 images
command shows the uncompressed image size,
* so it may return a larger image size than the image sizes returned by DescribeImages.
*
* 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 images
command shows the uncompressed image size, so it may
* return a larger image size than the image sizes returned by DescribeImages.
*
* 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 images
command shows the uncompressed image size,
* so it may return a larger image size than the image sizes returned by DescribeImages.
*
* The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the * repository. *
* * @param imagePushedAt * The date and time, expressed in standard JavaScript date format, at which the current image was pushed to * the repository. */ public void setImagePushedAt(java.util.Date imagePushedAt) { this.imagePushedAt = imagePushedAt; } /** ** The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the * repository. *
* * @return The date and time, expressed in standard JavaScript date format, at which the current image was pushed to * the repository. */ public java.util.Date getImagePushedAt() { return this.imagePushedAt; } /** ** The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the * repository. *
* * @param imagePushedAt * The date and time, expressed in standard JavaScript date format, at which the current image was pushed to * the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withImagePushedAt(java.util.Date imagePushedAt) { setImagePushedAt(imagePushedAt); return this; } /** ** The current state of the scan. *
* * @param imageScanStatus * The current state of the scan. */ public void setImageScanStatus(ImageScanStatus imageScanStatus) { this.imageScanStatus = imageScanStatus; } /** ** The current state of the scan. *
* * @return The current state of the scan. */ public ImageScanStatus getImageScanStatus() { return this.imageScanStatus; } /** ** The current state of the scan. *
* * @param imageScanStatus * The current state of the scan. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withImageScanStatus(ImageScanStatus imageScanStatus) { setImageScanStatus(imageScanStatus); return this; } /** ** A summary of the last completed image scan. *
* * @param imageScanFindingsSummary * A summary of the last completed image scan. */ public void setImageScanFindingsSummary(ImageScanFindingsSummary imageScanFindingsSummary) { this.imageScanFindingsSummary = imageScanFindingsSummary; } /** ** A summary of the last completed image scan. *
* * @return A summary of the last completed image scan. */ public ImageScanFindingsSummary getImageScanFindingsSummary() { return this.imageScanFindingsSummary; } /** ** A summary of the last completed image scan. *
* * @param imageScanFindingsSummary * A summary of the last completed image scan. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withImageScanFindingsSummary(ImageScanFindingsSummary imageScanFindingsSummary) { setImageScanFindingsSummary(imageScanFindingsSummary); return this; } /** ** The media type of the image manifest. *
* * @param imageManifestMediaType * The media type of the image manifest. */ public void setImageManifestMediaType(String imageManifestMediaType) { this.imageManifestMediaType = imageManifestMediaType; } /** ** The media type of the image manifest. *
* * @return The media type of the image manifest. */ public String getImageManifestMediaType() { return this.imageManifestMediaType; } /** ** The media type of the image manifest. *
* * @param imageManifestMediaType * The media type of the image manifest. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withImageManifestMediaType(String imageManifestMediaType) { setImageManifestMediaType(imageManifestMediaType); return this; } /** ** The artifact media type of the image. *
* * @param artifactMediaType * The artifact media type of the image. */ public void setArtifactMediaType(String artifactMediaType) { this.artifactMediaType = artifactMediaType; } /** ** The artifact media type of the image. *
* * @return The artifact media type of the image. */ public String getArtifactMediaType() { return this.artifactMediaType; } /** ** The artifact media type of the image. *
* * @param artifactMediaType * The artifact media type of the image. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageDetail withArtifactMediaType(String artifactMediaType) { setArtifactMediaType(artifactMediaType); return this; } /** ** 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 lastRecordedPullTime
timestamp will indicate the exact time that the image
* was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes the
* lastRecordedPullTime
timestamp at least once every 24 hours, the result may not be the exact time
* that the image was last pulled.
*
* 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 lastRecordedPullTime
timestamp will indicate the exact time that
* the image was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes the
* lastRecordedPullTime
timestamp at least once every 24 hours, the result may not be the exact
* time that the image was last pulled.
*
* 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 lastRecordedPullTime
timestamp will indicate the exact time that the image
* was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes the
* lastRecordedPullTime
timestamp at least once every 24 hours, the result may not be the exact time
* that the image was last pulled.
*
* 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 lastRecordedPullTime
timestamp will indicate the exact time
* that the image was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes
* the lastRecordedPullTime
timestamp at least once every 24 hours, the result may not be the
* exact time that the image was last pulled.
*
* 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 lastRecordedPullTime
timestamp will indicate the exact time that the image
* was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes the
* lastRecordedPullTime
timestamp at least once every 24 hours, the result may not be the exact time
* that the image was last pulled.
*
* 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 lastRecordedPullTime
timestamp will indicate the exact time that
* the image was last pulled. However, if you pull an image once an hour, because Amazon ECR refreshes the
* lastRecordedPullTime
timestamp at least once every 24 hours, the result may not be the exact
* time that the image was last pulled.
*