/* * 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.cloudwatch.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 GetInsightRuleReportRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the rule that you want to see data from. *

*/ private String ruleName; /** *

* The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. *

*/ private java.util.Date startTime; /** *

* The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. *

*/ private java.util.Date endTime; /** *

* The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results. *

*/ private Integer period; /** *

* The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the default * of 10 is used. *

*/ private Integer maxContributorCount; /** *

* Specifies which metrics to use for aggregation of contributor values for the report. You can specify one or more * of the following metrics: *

* */ private com.amazonaws.internal.SdkInternalList metrics; /** *

* Determines what statistic to use to rank the contributors. Valid values are SUM and MAXIMUM. *

*/ private String orderBy; /** *

* The name of the rule that you want to see data from. *

* * @param ruleName * The name of the rule that you want to see data from. */ public void setRuleName(String ruleName) { this.ruleName = ruleName; } /** *

* The name of the rule that you want to see data from. *

* * @return The name of the rule that you want to see data from. */ public String getRuleName() { return this.ruleName; } /** *

* The name of the rule that you want to see data from. *

* * @param ruleName * The name of the rule that you want to see data from. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightRuleReportRequest withRuleName(String ruleName) { setRuleName(ruleName); return this; } /** *

* The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. *

* * @param startTime * The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. *

* * @return The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. *

* * @param startTime * The start time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightRuleReportRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. *

* * @param endTime * The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. *

* * @return The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. *

* * @param endTime * The end time of the data to use in the report. When used in a raw HTTP Query API, it is formatted as * yyyy-MM-dd'T'HH:mm:ss. For example, 2019-07-01T23:59:59. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightRuleReportRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results. *

* * @param period * The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results. */ public void setPeriod(Integer period) { this.period = period; } /** *

* The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results. *

* * @return The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results. */ public Integer getPeriod() { return this.period; } /** *

* The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results. *

* * @param period * The period, in seconds, to use for the statistics in the InsightRuleMetricDatapoint results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightRuleReportRequest withPeriod(Integer period) { setPeriod(period); return this; } /** *

* The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the default * of 10 is used. *

* * @param maxContributorCount * The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the * default of 10 is used. */ public void setMaxContributorCount(Integer maxContributorCount) { this.maxContributorCount = maxContributorCount; } /** *

* The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the default * of 10 is used. *

* * @return The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the * default of 10 is used. */ public Integer getMaxContributorCount() { return this.maxContributorCount; } /** *

* The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the default * of 10 is used. *

* * @param maxContributorCount * The maximum number of contributors to include in the report. The range is 1 to 100. If you omit this, the * default of 10 is used. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInsightRuleReportRequest withMaxContributorCount(Integer maxContributorCount) { setMaxContributorCount(maxContributorCount); return this; } /** *

* Specifies which metrics to use for aggregation of contributor values for the report. You can specify one or more * of the following metrics: *

* * * @return Specifies which metrics to use for aggregation of contributor values for the report. You can specify one * or more of the following metrics:

*