All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.apptest.model.TestCaseRunSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Mainframe Modernization Application Testing module holds the client classes that are used for communicating with AWS Mainframe Modernization Application Testing Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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 the test case run summary. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TestCaseRunSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The test case id of the test case run summary. *

*/ private String testCaseId; /** *

* The test case version of the test case run summary. *

*/ private Integer testCaseVersion; /** *

* The test run id of the test case run summary. *

*/ private String testRunId; /** *

* The status of the test case run summary. *

*/ private String status; /** *

* The status reason of the test case run summary. *

*/ private String statusReason; /** *

* The run start time of the test case run summary. *

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

* The run end time of the test case run summary. *

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

* The test case id of the test case run summary. *

* * @param testCaseId * The test case id of the test case run summary. */ public void setTestCaseId(String testCaseId) { this.testCaseId = testCaseId; } /** *

* The test case id of the test case run summary. *

* * @return The test case id of the test case run summary. */ public String getTestCaseId() { return this.testCaseId; } /** *

* The test case id of the test case run summary. *

* * @param testCaseId * The test case id of the test case run summary. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRunSummary withTestCaseId(String testCaseId) { setTestCaseId(testCaseId); return this; } /** *

* The test case version of the test case run summary. *

* * @param testCaseVersion * The test case version of the test case run summary. */ public void setTestCaseVersion(Integer testCaseVersion) { this.testCaseVersion = testCaseVersion; } /** *

* The test case version of the test case run summary. *

* * @return The test case version of the test case run summary. */ public Integer getTestCaseVersion() { return this.testCaseVersion; } /** *

* The test case version of the test case run summary. *

* * @param testCaseVersion * The test case version of the test case run summary. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRunSummary withTestCaseVersion(Integer testCaseVersion) { setTestCaseVersion(testCaseVersion); return this; } /** *

* The test run id of the test case run summary. *

* * @param testRunId * The test run id of the test case run summary. */ public void setTestRunId(String testRunId) { this.testRunId = testRunId; } /** *

* The test run id of the test case run summary. *

* * @return The test run id of the test case run summary. */ public String getTestRunId() { return this.testRunId; } /** *

* The test run id of the test case run summary. *

* * @param testRunId * The test run id of the test case run summary. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRunSummary withTestRunId(String testRunId) { setTestRunId(testRunId); return this; } /** *

* The status of the test case run summary. *

* * @param status * The status of the test case run summary. * @see TestCaseRunStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the test case run summary. *

* * @return The status of the test case run summary. * @see TestCaseRunStatus */ public String getStatus() { return this.status; } /** *

* The status of the test case run summary. *

* * @param status * The status of the test case run summary. * @return Returns a reference to this object so that method calls can be chained together. * @see TestCaseRunStatus */ public TestCaseRunSummary withStatus(String status) { setStatus(status); return this; } /** *

* The status of the test case run summary. *

* * @param status * The status of the test case run summary. * @return Returns a reference to this object so that method calls can be chained together. * @see TestCaseRunStatus */ public TestCaseRunSummary withStatus(TestCaseRunStatus status) { this.status = status.toString(); return this; } /** *

* The status reason of the test case run summary. *

* * @param statusReason * The status reason of the test case run summary. */ public void setStatusReason(String statusReason) { this.statusReason = statusReason; } /** *

* The status reason of the test case run summary. *

* * @return The status reason of the test case run summary. */ public String getStatusReason() { return this.statusReason; } /** *

* The status reason of the test case run summary. *

* * @param statusReason * The status reason of the test case run summary. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRunSummary withStatusReason(String statusReason) { setStatusReason(statusReason); return this; } /** *

* The run start time of the test case run summary. *

* * @param runStartTime * The run start time of the test case run summary. */ public void setRunStartTime(java.util.Date runStartTime) { this.runStartTime = runStartTime; } /** *

* The run start time of the test case run summary. *

* * @return The run start time of the test case run summary. */ public java.util.Date getRunStartTime() { return this.runStartTime; } /** *

* The run start time of the test case run summary. *

* * @param runStartTime * The run start time of the test case run summary. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRunSummary withRunStartTime(java.util.Date runStartTime) { setRunStartTime(runStartTime); return this; } /** *

* The run end time of the test case run summary. *

* * @param runEndTime * The run end time of the test case run summary. */ public void setRunEndTime(java.util.Date runEndTime) { this.runEndTime = runEndTime; } /** *

* The run end time of the test case run summary. *

* * @return The run end time of the test case run summary. */ public java.util.Date getRunEndTime() { return this.runEndTime; } /** *

* The run end time of the test case run summary. *

* * @param runEndTime * The run end time of the test case run summary. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRunSummary 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 (getTestCaseId() != null) sb.append("TestCaseId: ").append(getTestCaseId()).append(","); if (getTestCaseVersion() != null) sb.append("TestCaseVersion: ").append(getTestCaseVersion()).append(","); if (getTestRunId() != null) sb.append("TestRunId: ").append(getTestRunId()).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 TestCaseRunSummary == false) return false; TestCaseRunSummary other = (TestCaseRunSummary) obj; if (other.getTestCaseId() == null ^ this.getTestCaseId() == null) return false; if (other.getTestCaseId() != null && other.getTestCaseId().equals(this.getTestCaseId()) == false) return false; if (other.getTestCaseVersion() == null ^ this.getTestCaseVersion() == null) return false; if (other.getTestCaseVersion() != null && other.getTestCaseVersion().equals(this.getTestCaseVersion()) == false) return false; if (other.getTestRunId() == null ^ this.getTestRunId() == null) return false; if (other.getTestRunId() != null && other.getTestRunId().equals(this.getTestRunId()) == 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 + ((getTestCaseId() == null) ? 0 : getTestCaseId().hashCode()); hashCode = prime * hashCode + ((getTestCaseVersion() == null) ? 0 : getTestCaseVersion().hashCode()); hashCode = prime * hashCode + ((getTestRunId() == null) ? 0 : getTestRunId().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 TestCaseRunSummary clone() { try { return (TestCaseRunSummary) 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.TestCaseRunSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy