
com.amazonaws.services.codebuild.model.GetReportGroupTrendRequest Maven / Gradle / Ivy
/*
* Copyright 2017-2022 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.codebuild.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 GetReportGroupTrendRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ARN of the report group that contains the reports to analyze.
*
*/
private String reportGroupArn;
/**
*
* The number of reports to analyze. This operation always retrieves the most recent reports.
*
*
* If this parameter is omitted, the most recent 100 reports are analyzed.
*
*/
private Integer numOfReports;
/**
*
* The test report value to accumulate. This must be one of the following values:
*
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
*
*/
private String trendField;
/**
*
* The ARN of the report group that contains the reports to analyze.
*
*
* @param reportGroupArn
* The ARN of the report group that contains the reports to analyze.
*/
public void setReportGroupArn(String reportGroupArn) {
this.reportGroupArn = reportGroupArn;
}
/**
*
* The ARN of the report group that contains the reports to analyze.
*
*
* @return The ARN of the report group that contains the reports to analyze.
*/
public String getReportGroupArn() {
return this.reportGroupArn;
}
/**
*
* The ARN of the report group that contains the reports to analyze.
*
*
* @param reportGroupArn
* The ARN of the report group that contains the reports to analyze.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetReportGroupTrendRequest withReportGroupArn(String reportGroupArn) {
setReportGroupArn(reportGroupArn);
return this;
}
/**
*
* The number of reports to analyze. This operation always retrieves the most recent reports.
*
*
* If this parameter is omitted, the most recent 100 reports are analyzed.
*
*
* @param numOfReports
* The number of reports to analyze. This operation always retrieves the most recent reports.
*
* If this parameter is omitted, the most recent 100 reports are analyzed.
*/
public void setNumOfReports(Integer numOfReports) {
this.numOfReports = numOfReports;
}
/**
*
* The number of reports to analyze. This operation always retrieves the most recent reports.
*
*
* If this parameter is omitted, the most recent 100 reports are analyzed.
*
*
* @return The number of reports to analyze. This operation always retrieves the most recent reports.
*
* If this parameter is omitted, the most recent 100 reports are analyzed.
*/
public Integer getNumOfReports() {
return this.numOfReports;
}
/**
*
* The number of reports to analyze. This operation always retrieves the most recent reports.
*
*
* If this parameter is omitted, the most recent 100 reports are analyzed.
*
*
* @param numOfReports
* The number of reports to analyze. This operation always retrieves the most recent reports.
*
* If this parameter is omitted, the most recent 100 reports are analyzed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetReportGroupTrendRequest withNumOfReports(Integer numOfReports) {
setNumOfReports(numOfReports);
return this;
}
/**
*
* The test report value to accumulate. This must be one of the following values:
*
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
*
*
* @param trendField
* The test report value to accumulate. This must be one of the following values:
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
* @see ReportGroupTrendFieldType
*/
public void setTrendField(String trendField) {
this.trendField = trendField;
}
/**
*
* The test report value to accumulate. This must be one of the following values:
*
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
*
*
* @return The test report value to accumulate. This must be one of the following values:
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
* @see ReportGroupTrendFieldType
*/
public String getTrendField() {
return this.trendField;
}
/**
*
* The test report value to accumulate. This must be one of the following values:
*
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
*
*
* @param trendField
* The test report value to accumulate. This must be one of the following values:
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ReportGroupTrendFieldType
*/
public GetReportGroupTrendRequest withTrendField(String trendField) {
setTrendField(trendField);
return this;
}
/**
*
* The test report value to accumulate. This must be one of the following values:
*
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
*
*
* @param trendField
* The test report value to accumulate. This must be one of the following values:
*
* - Test reports:
* -
*
* - DURATION
* -
*
* Accumulate the test run times for the specified reports.
*
*
* - PASS_RATE
* -
*
* Accumulate the percentage of tests that passed for the specified test reports.
*
*
* - TOTAL
* -
*
* Accumulate the total number of tests for the specified test reports.
*
*
*
*
*
*
* - Code coverage reports:
* -
*
* - BRANCH_COVERAGE
* -
*
* Accumulate the branch coverage percentages for the specified test reports.
*
*
* - BRANCHES_COVERED
* -
*
* Accumulate the branches covered values for the specified test reports.
*
*
* - BRANCHES_MISSED
* -
*
* Accumulate the branches missed values for the specified test reports.
*
*
* - LINE_COVERAGE
* -
*
* Accumulate the line coverage percentages for the specified test reports.
*
*
* - LINES_COVERED
* -
*
* Accumulate the lines covered values for the specified test reports.
*
*
* - LINES_MISSED
* -
*
* Accumulate the lines not covered values for the specified test reports.
*
*
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see ReportGroupTrendFieldType
*/
public GetReportGroupTrendRequest withTrendField(ReportGroupTrendFieldType trendField) {
this.trendField = trendField.toString();
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getReportGroupArn() != null)
sb.append("ReportGroupArn: ").append(getReportGroupArn()).append(",");
if (getNumOfReports() != null)
sb.append("NumOfReports: ").append(getNumOfReports()).append(",");
if (getTrendField() != null)
sb.append("TrendField: ").append(getTrendField());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetReportGroupTrendRequest == false)
return false;
GetReportGroupTrendRequest other = (GetReportGroupTrendRequest) obj;
if (other.getReportGroupArn() == null ^ this.getReportGroupArn() == null)
return false;
if (other.getReportGroupArn() != null && other.getReportGroupArn().equals(this.getReportGroupArn()) == false)
return false;
if (other.getNumOfReports() == null ^ this.getNumOfReports() == null)
return false;
if (other.getNumOfReports() != null && other.getNumOfReports().equals(this.getNumOfReports()) == false)
return false;
if (other.getTrendField() == null ^ this.getTrendField() == null)
return false;
if (other.getTrendField() != null && other.getTrendField().equals(this.getTrendField()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getReportGroupArn() == null) ? 0 : getReportGroupArn().hashCode());
hashCode = prime * hashCode + ((getNumOfReports() == null) ? 0 : getNumOfReports().hashCode());
hashCode = prime * hashCode + ((getTrendField() == null) ? 0 : getTrendField().hashCode());
return hashCode;
}
@Override
public GetReportGroupTrendRequest clone() {
return (GetReportGroupTrendRequest) super.clone();
}
}