/* * 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.guardduty.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetCoverageStatisticsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique ID of the GuardDuty detector associated to the coverage statistics. *
*/ private String detectorId; /** ** Represents the criteria used to filter the coverage statistics *
*/ private CoverageFilterCriteria filterCriteria; /** ** Represents the statistics type used to aggregate the coverage details. *
*/ private java.util.List* The unique ID of the GuardDuty detector associated to the coverage statistics. *
* * @param detectorId * The unique ID of the GuardDuty detector associated to the coverage statistics. */ public void setDetectorId(String detectorId) { this.detectorId = detectorId; } /** ** The unique ID of the GuardDuty detector associated to the coverage statistics. *
* * @return The unique ID of the GuardDuty detector associated to the coverage statistics. */ public String getDetectorId() { return this.detectorId; } /** ** The unique ID of the GuardDuty detector associated to the coverage statistics. *
* * @param detectorId * The unique ID of the GuardDuty detector associated to the coverage statistics. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCoverageStatisticsRequest withDetectorId(String detectorId) { setDetectorId(detectorId); return this; } /** ** Represents the criteria used to filter the coverage statistics *
* * @param filterCriteria * Represents the criteria used to filter the coverage statistics */ public void setFilterCriteria(CoverageFilterCriteria filterCriteria) { this.filterCriteria = filterCriteria; } /** ** Represents the criteria used to filter the coverage statistics *
* * @return Represents the criteria used to filter the coverage statistics */ public CoverageFilterCriteria getFilterCriteria() { return this.filterCriteria; } /** ** Represents the criteria used to filter the coverage statistics *
* * @param filterCriteria * Represents the criteria used to filter the coverage statistics * @return Returns a reference to this object so that method calls can be chained together. */ public GetCoverageStatisticsRequest withFilterCriteria(CoverageFilterCriteria filterCriteria) { setFilterCriteria(filterCriteria); return this; } /** ** Represents the statistics type used to aggregate the coverage details. *
* * @return Represents the statistics type used to aggregate the coverage details. * @see CoverageStatisticsType */ public java.util.List* Represents the statistics type used to aggregate the coverage details. *
* * @param statisticsType * Represents the statistics type used to aggregate the coverage details. * @see CoverageStatisticsType */ public void setStatisticsType(java.util.Collection* Represents the statistics type used to aggregate the coverage details. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStatisticsType(java.util.Collection)} or {@link #withStatisticsType(java.util.Collection)} if you want * to override the existing values. *
* * @param statisticsType * Represents the statistics type used to aggregate the coverage details. * @return Returns a reference to this object so that method calls can be chained together. * @see CoverageStatisticsType */ public GetCoverageStatisticsRequest withStatisticsType(String... statisticsType) { if (this.statisticsType == null) { setStatisticsType(new java.util.ArrayList* Represents the statistics type used to aggregate the coverage details. *
* * @param statisticsType * Represents the statistics type used to aggregate the coverage details. * @return Returns a reference to this object so that method calls can be chained together. * @see CoverageStatisticsType */ public GetCoverageStatisticsRequest withStatisticsType(java.util.Collection* Represents the statistics type used to aggregate the coverage details. *
* * @param statisticsType * Represents the statistics type used to aggregate the coverage details. * @return Returns a reference to this object so that method calls can be chained together. * @see CoverageStatisticsType */ public GetCoverageStatisticsRequest withStatisticsType(CoverageStatisticsType... statisticsType) { java.util.ArrayList