com.amazonaws.services.apptest.model.TestRunSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-apptest Show documentation
/*
* Copyright 2019-2024 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.apptest.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Specifies a test run summary.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class TestRunSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The test run ID of the test run summary.
*
*/
private String testRunId;
/**
*
* The test run ARN of the test run summary.
*
*/
private String testRunArn;
/**
*
* The test suite ID of the test run summary.
*
*/
private String testSuiteId;
/**
*
* The test suite version of the test run summary.
*
*/
private Integer testSuiteVersion;
/**
*
* The test configuration ID of the test run summary.
*
*/
private String testConfigurationId;
/**
*
* The test configuration version of the test run summary.
*
*/
private Integer testConfigurationVersion;
/**
*
* The status of the test run summary.
*
*/
private String status;
/**
*
* The status reason of the test run summary.
*
*/
private String statusReason;
/**
*
* The run start time of the test run summary.
*
*/
private java.util.Date runStartTime;
/**
*
* The run end time of the test run summary.
*
*/
private java.util.Date runEndTime;
/**
*
* The test run ID of the test run summary.
*
*
* @param testRunId
* The test run ID of the test run summary.
*/
public void setTestRunId(String testRunId) {
this.testRunId = testRunId;
}
/**
*
* The test run ID of the test run summary.
*
*
* @return The test run ID of the test run summary.
*/
public String getTestRunId() {
return this.testRunId;
}
/**
*
* The test run ID of the test run summary.
*
*
* @param testRunId
* The test run ID of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withTestRunId(String testRunId) {
setTestRunId(testRunId);
return this;
}
/**
*
* The test run ARN of the test run summary.
*
*
* @param testRunArn
* The test run ARN of the test run summary.
*/
public void setTestRunArn(String testRunArn) {
this.testRunArn = testRunArn;
}
/**
*
* The test run ARN of the test run summary.
*
*
* @return The test run ARN of the test run summary.
*/
public String getTestRunArn() {
return this.testRunArn;
}
/**
*
* The test run ARN of the test run summary.
*
*
* @param testRunArn
* The test run ARN of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withTestRunArn(String testRunArn) {
setTestRunArn(testRunArn);
return this;
}
/**
*
* The test suite ID of the test run summary.
*
*
* @param testSuiteId
* The test suite ID of the test run summary.
*/
public void setTestSuiteId(String testSuiteId) {
this.testSuiteId = testSuiteId;
}
/**
*
* The test suite ID of the test run summary.
*
*
* @return The test suite ID of the test run summary.
*/
public String getTestSuiteId() {
return this.testSuiteId;
}
/**
*
* The test suite ID of the test run summary.
*
*
* @param testSuiteId
* The test suite ID of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withTestSuiteId(String testSuiteId) {
setTestSuiteId(testSuiteId);
return this;
}
/**
*
* The test suite version of the test run summary.
*
*
* @param testSuiteVersion
* The test suite version of the test run summary.
*/
public void setTestSuiteVersion(Integer testSuiteVersion) {
this.testSuiteVersion = testSuiteVersion;
}
/**
*
* The test suite version of the test run summary.
*
*
* @return The test suite version of the test run summary.
*/
public Integer getTestSuiteVersion() {
return this.testSuiteVersion;
}
/**
*
* The test suite version of the test run summary.
*
*
* @param testSuiteVersion
* The test suite version of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withTestSuiteVersion(Integer testSuiteVersion) {
setTestSuiteVersion(testSuiteVersion);
return this;
}
/**
*
* The test configuration ID of the test run summary.
*
*
* @param testConfigurationId
* The test configuration ID of the test run summary.
*/
public void setTestConfigurationId(String testConfigurationId) {
this.testConfigurationId = testConfigurationId;
}
/**
*
* The test configuration ID of the test run summary.
*
*
* @return The test configuration ID of the test run summary.
*/
public String getTestConfigurationId() {
return this.testConfigurationId;
}
/**
*
* The test configuration ID of the test run summary.
*
*
* @param testConfigurationId
* The test configuration ID of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withTestConfigurationId(String testConfigurationId) {
setTestConfigurationId(testConfigurationId);
return this;
}
/**
*
* The test configuration version of the test run summary.
*
*
* @param testConfigurationVersion
* The test configuration version of the test run summary.
*/
public void setTestConfigurationVersion(Integer testConfigurationVersion) {
this.testConfigurationVersion = testConfigurationVersion;
}
/**
*
* The test configuration version of the test run summary.
*
*
* @return The test configuration version of the test run summary.
*/
public Integer getTestConfigurationVersion() {
return this.testConfigurationVersion;
}
/**
*
* The test configuration version of the test run summary.
*
*
* @param testConfigurationVersion
* The test configuration version of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withTestConfigurationVersion(Integer testConfigurationVersion) {
setTestConfigurationVersion(testConfigurationVersion);
return this;
}
/**
*
* The status of the test run summary.
*
*
* @param status
* The status of the test run summary.
* @see TestRunStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the test run summary.
*
*
* @return The status of the test run summary.
* @see TestRunStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the test run summary.
*
*
* @param status
* The status of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TestRunStatus
*/
public TestRunSummary withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the test run summary.
*
*
* @param status
* The status of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TestRunStatus
*/
public TestRunSummary withStatus(TestRunStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The status reason of the test run summary.
*
*
* @param statusReason
* The status reason of the test run summary.
*/
public void setStatusReason(String statusReason) {
this.statusReason = statusReason;
}
/**
*
* The status reason of the test run summary.
*
*
* @return The status reason of the test run summary.
*/
public String getStatusReason() {
return this.statusReason;
}
/**
*
* The status reason of the test run summary.
*
*
* @param statusReason
* The status reason of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withStatusReason(String statusReason) {
setStatusReason(statusReason);
return this;
}
/**
*
* The run start time of the test run summary.
*
*
* @param runStartTime
* The run start time of the test run summary.
*/
public void setRunStartTime(java.util.Date runStartTime) {
this.runStartTime = runStartTime;
}
/**
*
* The run start time of the test run summary.
*
*
* @return The run start time of the test run summary.
*/
public java.util.Date getRunStartTime() {
return this.runStartTime;
}
/**
*
* The run start time of the test run summary.
*
*
* @param runStartTime
* The run start time of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withRunStartTime(java.util.Date runStartTime) {
setRunStartTime(runStartTime);
return this;
}
/**
*
* The run end time of the test run summary.
*
*
* @param runEndTime
* The run end time of the test run summary.
*/
public void setRunEndTime(java.util.Date runEndTime) {
this.runEndTime = runEndTime;
}
/**
*
* The run end time of the test run summary.
*
*
* @return The run end time of the test run summary.
*/
public java.util.Date getRunEndTime() {
return this.runEndTime;
}
/**
*
* The run end time of the test run summary.
*
*
* @param runEndTime
* The run end time of the test run summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestRunSummary withRunEndTime(java.util.Date runEndTime) {
setRunEndTime(runEndTime);
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 (getTestRunId() != null)
sb.append("TestRunId: ").append(getTestRunId()).append(",");
if (getTestRunArn() != null)
sb.append("TestRunArn: ").append(getTestRunArn()).append(",");
if (getTestSuiteId() != null)
sb.append("TestSuiteId: ").append(getTestSuiteId()).append(",");
if (getTestSuiteVersion() != null)
sb.append("TestSuiteVersion: ").append(getTestSuiteVersion()).append(",");
if (getTestConfigurationId() != null)
sb.append("TestConfigurationId: ").append(getTestConfigurationId()).append(",");
if (getTestConfigurationVersion() != null)
sb.append("TestConfigurationVersion: ").append(getTestConfigurationVersion()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusReason() != null)
sb.append("StatusReason: ").append(getStatusReason()).append(",");
if (getRunStartTime() != null)
sb.append("RunStartTime: ").append(getRunStartTime()).append(",");
if (getRunEndTime() != null)
sb.append("RunEndTime: ").append(getRunEndTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof TestRunSummary == false)
return false;
TestRunSummary other = (TestRunSummary) obj;
if (other.getTestRunId() == null ^ this.getTestRunId() == null)
return false;
if (other.getTestRunId() != null && other.getTestRunId().equals(this.getTestRunId()) == false)
return false;
if (other.getTestRunArn() == null ^ this.getTestRunArn() == null)
return false;
if (other.getTestRunArn() != null && other.getTestRunArn().equals(this.getTestRunArn()) == false)
return false;
if (other.getTestSuiteId() == null ^ this.getTestSuiteId() == null)
return false;
if (other.getTestSuiteId() != null && other.getTestSuiteId().equals(this.getTestSuiteId()) == false)
return false;
if (other.getTestSuiteVersion() == null ^ this.getTestSuiteVersion() == null)
return false;
if (other.getTestSuiteVersion() != null && other.getTestSuiteVersion().equals(this.getTestSuiteVersion()) == false)
return false;
if (other.getTestConfigurationId() == null ^ this.getTestConfigurationId() == null)
return false;
if (other.getTestConfigurationId() != null && other.getTestConfigurationId().equals(this.getTestConfigurationId()) == false)
return false;
if (other.getTestConfigurationVersion() == null ^ this.getTestConfigurationVersion() == null)
return false;
if (other.getTestConfigurationVersion() != null && other.getTestConfigurationVersion().equals(this.getTestConfigurationVersion()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getStatusReason() == null ^ this.getStatusReason() == null)
return false;
if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false)
return false;
if (other.getRunStartTime() == null ^ this.getRunStartTime() == null)
return false;
if (other.getRunStartTime() != null && other.getRunStartTime().equals(this.getRunStartTime()) == false)
return false;
if (other.getRunEndTime() == null ^ this.getRunEndTime() == null)
return false;
if (other.getRunEndTime() != null && other.getRunEndTime().equals(this.getRunEndTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getTestRunId() == null) ? 0 : getTestRunId().hashCode());
hashCode = prime * hashCode + ((getTestRunArn() == null) ? 0 : getTestRunArn().hashCode());
hashCode = prime * hashCode + ((getTestSuiteId() == null) ? 0 : getTestSuiteId().hashCode());
hashCode = prime * hashCode + ((getTestSuiteVersion() == null) ? 0 : getTestSuiteVersion().hashCode());
hashCode = prime * hashCode + ((getTestConfigurationId() == null) ? 0 : getTestConfigurationId().hashCode());
hashCode = prime * hashCode + ((getTestConfigurationVersion() == null) ? 0 : getTestConfigurationVersion().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode());
hashCode = prime * hashCode + ((getRunStartTime() == null) ? 0 : getRunStartTime().hashCode());
hashCode = prime * hashCode + ((getRunEndTime() == null) ? 0 : getRunEndTime().hashCode());
return hashCode;
}
@Override
public TestRunSummary clone() {
try {
return (TestRunSummary) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.apptest.model.transform.TestRunSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}