1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetCoverageStatistics`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`detector_id(impl Into<String>)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the GuardDuty detector associated to the coverage statistics.</p><br>
    ///   - [`filter_criteria(CoverageFilterCriteria)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::filter_criteria) / [`set_filter_criteria(Option<CoverageFilterCriteria>)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::set_filter_criteria):<br>required: **false**<br><p>Represents the criteria used to filter the coverage statistics</p><br>
    ///   - [`statistics_type(CoverageStatisticsType)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::statistics_type) / [`set_statistics_type(Option<Vec::<CoverageStatisticsType>>)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::set_statistics_type):<br>required: **true**<br><p>Represents the statistics type used to aggregate the coverage details.</p><br>
    /// - On success, responds with [`GetCoverageStatisticsOutput`](crate::operation::get_coverage_statistics::GetCoverageStatisticsOutput) with field(s):
    ///   - [`coverage_statistics(Option<CoverageStatistics>)`](crate::operation::get_coverage_statistics::GetCoverageStatisticsOutput::coverage_statistics): <p>Represents the count aggregated by the <code>statusCode</code> and <code>resourceType</code>.</p>
    /// - On failure, responds with [`SdkError<GetCoverageStatisticsError>`](crate::operation::get_coverage_statistics::GetCoverageStatisticsError)
    pub fn get_coverage_statistics(&self) -> crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder {
        crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::new(self.handle.clone())
    }
}