/* * 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; /** *
* The details of an image scan. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ImageScanFindings implements Serializable, Cloneable, StructuredPojo { /** ** The time of the last completed image scan. *
*/ private java.util.Date imageScanCompletedAt; /** ** The time when the vulnerability data was last scanned. *
*/ private java.util.Date vulnerabilitySourceUpdatedAt; /** ** The image vulnerability counts, sorted by severity. *
*/ private java.util.Map* The findings from the image scan. *
*/ private java.util.List* Details about the enhanced scan findings from Amazon Inspector. *
*/ private java.util.List* The time of the last completed image scan. *
* * @param imageScanCompletedAt * The time of the last completed image scan. */ public void setImageScanCompletedAt(java.util.Date imageScanCompletedAt) { this.imageScanCompletedAt = imageScanCompletedAt; } /** ** The time of the last completed image scan. *
* * @return The time of the last completed image scan. */ public java.util.Date getImageScanCompletedAt() { return this.imageScanCompletedAt; } /** ** The time of the last completed image scan. *
* * @param imageScanCompletedAt * The time of the last completed image scan. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageScanFindings withImageScanCompletedAt(java.util.Date imageScanCompletedAt) { setImageScanCompletedAt(imageScanCompletedAt); return this; } /** ** The time when the vulnerability data was last scanned. *
* * @param vulnerabilitySourceUpdatedAt * The time when the vulnerability data was last scanned. */ public void setVulnerabilitySourceUpdatedAt(java.util.Date vulnerabilitySourceUpdatedAt) { this.vulnerabilitySourceUpdatedAt = vulnerabilitySourceUpdatedAt; } /** ** The time when the vulnerability data was last scanned. *
* * @return The time when the vulnerability data was last scanned. */ public java.util.Date getVulnerabilitySourceUpdatedAt() { return this.vulnerabilitySourceUpdatedAt; } /** ** The time when the vulnerability data was last scanned. *
* * @param vulnerabilitySourceUpdatedAt * The time when the vulnerability data was last scanned. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageScanFindings withVulnerabilitySourceUpdatedAt(java.util.Date vulnerabilitySourceUpdatedAt) { setVulnerabilitySourceUpdatedAt(vulnerabilitySourceUpdatedAt); return this; } /** ** The image vulnerability counts, sorted by severity. *
* * @return The image vulnerability counts, sorted by severity. */ public java.util.Map* The image vulnerability counts, sorted by severity. *
* * @param findingSeverityCounts * The image vulnerability counts, sorted by severity. */ public void setFindingSeverityCounts(java.util.Map* The image vulnerability counts, sorted by severity. *
* * @param findingSeverityCounts * The image vulnerability counts, sorted by severity. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageScanFindings withFindingSeverityCounts(java.util.Map* The findings from the image scan. *
* * @return The findings from the image scan. */ public java.util.List* The findings from the image scan. *
* * @param findings * The findings from the image scan. */ public void setFindings(java.util.Collection* The findings from the image scan. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFindings(java.util.Collection)} or {@link #withFindings(java.util.Collection)} if you want to override * the existing values. *
* * @param findings * The findings from the image scan. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageScanFindings withFindings(ImageScanFinding... findings) { if (this.findings == null) { setFindings(new java.util.ArrayList* The findings from the image scan. *
* * @param findings * The findings from the image scan. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageScanFindings withFindings(java.util.Collection* Details about the enhanced scan findings from Amazon Inspector. *
* * @return Details about the enhanced scan findings from Amazon Inspector. */ public java.util.List* Details about the enhanced scan findings from Amazon Inspector. *
* * @param enhancedFindings * Details about the enhanced scan findings from Amazon Inspector. */ public void setEnhancedFindings(java.util.Collection* Details about the enhanced scan findings from Amazon Inspector. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEnhancedFindings(java.util.Collection)} or {@link #withEnhancedFindings(java.util.Collection)} if you * want to override the existing values. *
* * @param enhancedFindings * Details about the enhanced scan findings from Amazon Inspector. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageScanFindings withEnhancedFindings(EnhancedImageScanFinding... enhancedFindings) { if (this.enhancedFindings == null) { setEnhancedFindings(new java.util.ArrayList* Details about the enhanced scan findings from Amazon Inspector. *
* * @param enhancedFindings * Details about the enhanced scan findings from Amazon Inspector. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageScanFindings withEnhancedFindings(java.util.Collection