/* * 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.codegurusecurity.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about summary metrics in an account. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MetricsSummary implements Serializable, Cloneable, StructuredPojo { /** *
* A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
*
* The date from which the metrics summary information was retrieved. *
*/ private java.util.Date date; /** ** The number of open findings of each severity in an account. *
*/ private FindingMetricsValuePerSeverity openFindings; /** *
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings
* in an account.
*
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical
* findings in an account.
*
* A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
*
CategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
*/
public java.util.List
* A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
*
CategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
*/
public void setCategoriesWithMostFindings(java.util.Collection
* A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCategoriesWithMostFindings(java.util.Collection)} or * {@link #withCategoriesWithMostFindings(java.util.Collection)} if you want to override the existing values. *
* * @param categoriesWithMostFindings * A list ofCategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricsSummary withCategoriesWithMostFindings(CategoryWithFindingNum... categoriesWithMostFindings) {
if (this.categoriesWithMostFindings == null) {
setCategoriesWithMostFindings(new java.util.ArrayList
* A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
*
CategoryWithFindingNum
objects for the top 5 finding categories with the most open
* findings in an account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricsSummary withCategoriesWithMostFindings(java.util.Collection* The date from which the metrics summary information was retrieved. *
* * @param date * The date from which the metrics summary information was retrieved. */ public void setDate(java.util.Date date) { this.date = date; } /** ** The date from which the metrics summary information was retrieved. *
* * @return The date from which the metrics summary information was retrieved. */ public java.util.Date getDate() { return this.date; } /** ** The date from which the metrics summary information was retrieved. *
* * @param date * The date from which the metrics summary information was retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricsSummary withDate(java.util.Date date) { setDate(date); return this; } /** ** The number of open findings of each severity in an account. *
* * @param openFindings * The number of open findings of each severity in an account. */ public void setOpenFindings(FindingMetricsValuePerSeverity openFindings) { this.openFindings = openFindings; } /** ** The number of open findings of each severity in an account. *
* * @return The number of open findings of each severity in an account. */ public FindingMetricsValuePerSeverity getOpenFindings() { return this.openFindings; } /** ** The number of open findings of each severity in an account. *
* * @param openFindings * The number of open findings of each severity in an account. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricsSummary withOpenFindings(FindingMetricsValuePerSeverity openFindings) { setOpenFindings(openFindings); return this; } /** *
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings
* in an account.
*
ScanNameWithFindingNum
objects for the top 3 scans with the most number of open
* findings in an account.
*/
public java.util.List
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings
* in an account.
*
ScanNameWithFindingNum
objects for the top 3 scans with the most number of open
* findings in an account.
*/
public void setScansWithMostOpenCriticalFindings(java.util.Collection
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings
* in an account.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setScansWithMostOpenCriticalFindings(java.util.Collection)} or * {@link #withScansWithMostOpenCriticalFindings(java.util.Collection)} if you want to override the existing values. *
* * @param scansWithMostOpenCriticalFindings * A list ofScanNameWithFindingNum
objects for the top 3 scans with the most number of open
* findings in an account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricsSummary withScansWithMostOpenCriticalFindings(ScanNameWithFindingNum... scansWithMostOpenCriticalFindings) {
if (this.scansWithMostOpenCriticalFindings == null) {
setScansWithMostOpenCriticalFindings(new java.util.ArrayList
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings
* in an account.
*
ScanNameWithFindingNum
objects for the top 3 scans with the most number of open
* findings in an account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricsSummary withScansWithMostOpenCriticalFindings(java.util.Collection
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical
* findings in an account.
*
ScanNameWithFindingNum
objects for the top 3 scans with the most number of open
* critical findings in an account.
*/
public java.util.List
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical
* findings in an account.
*
ScanNameWithFindingNum
objects for the top 3 scans with the most number of open
* critical findings in an account.
*/
public void setScansWithMostOpenFindings(java.util.Collection
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical
* findings in an account.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setScansWithMostOpenFindings(java.util.Collection)} or * {@link #withScansWithMostOpenFindings(java.util.Collection)} if you want to override the existing values. *
* * @param scansWithMostOpenFindings * A list ofScanNameWithFindingNum
objects for the top 3 scans with the most number of open
* critical findings in an account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricsSummary withScansWithMostOpenFindings(ScanNameWithFindingNum... scansWithMostOpenFindings) {
if (this.scansWithMostOpenFindings == null) {
setScansWithMostOpenFindings(new java.util.ArrayList
* A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical
* findings in an account.
*
ScanNameWithFindingNum
objects for the top 3 scans with the most number of open
* critical findings in an account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MetricsSummary withScansWithMostOpenFindings(java.util.Collection