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

com.amazonaws.services.apptest.model.GetTestRunStepResult 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

The 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;

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

    /**
     * 

* The step name of the test run step. *

*/ private String stepName; /** *

* The test run ID of the test run step. *

*/ private String testRunId; /** *

* The test case ID of the test run step. *

*/ private String testCaseId; /** *

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

*/ private Integer testCaseVersion; /** *

* The test suite ID of the test run step. *

*/ private String testSuiteId; /** *

* The test suite version of the test run step. *

*/ private Integer testSuiteVersion; /** *

* The before steps of the test run step. *

*/ private Boolean beforeStep; /** *

* The after steps of the test run step. *

*/ private Boolean afterStep; /** *

* The status of the test run step. *

*/ private String status; /** *

* The status reason of the test run step. *

*/ private String statusReason; /** *

* The run start time of the test run step. *

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

* The run end time of the test run step. *

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

* The step run summary of the test run step. *

*/ private StepRunSummary stepRunSummary; /** *

* The step name of the test run step. *

* * @param stepName * The step name of the test run step. */ public void setStepName(String stepName) { this.stepName = stepName; } /** *

* The step name of the test run step. *

* * @return The step name of the test run step. */ public String getStepName() { return this.stepName; } /** *

* The step name of the test run step. *

* * @param stepName * The step name of the test run step. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTestRunStepResult withStepName(String stepName) { setStepName(stepName); return this; } /** *

* The test run ID of the test run step. *

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

* The test run ID of the test run step. *

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

* The test run ID of the test run step. *

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

* The test case ID of the test run step. *

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

* The test case ID of the test run step. *

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

* The test case ID of the test run step. *

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

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

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

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

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

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

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

* The test suite ID of the test run step. *

* * @param testSuiteId * The test suite ID of the test run step. */ public void setTestSuiteId(String testSuiteId) { this.testSuiteId = testSuiteId; } /** *

* The test suite ID of the test run step. *

* * @return The test suite ID of the test run step. */ public String getTestSuiteId() { return this.testSuiteId; } /** *

* The test suite ID of the test run step. *

* * @param testSuiteId * The test suite ID of the test run step. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTestRunStepResult withTestSuiteId(String testSuiteId) { setTestSuiteId(testSuiteId); return this; } /** *

* The test suite version of the test run step. *

* * @param testSuiteVersion * The test suite version of the test run step. */ public void setTestSuiteVersion(Integer testSuiteVersion) { this.testSuiteVersion = testSuiteVersion; } /** *

* The test suite version of the test run step. *

* * @return The test suite version of the test run step. */ public Integer getTestSuiteVersion() { return this.testSuiteVersion; } /** *

* The test suite version of the test run step. *

* * @param testSuiteVersion * The test suite version of the test run step. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTestRunStepResult withTestSuiteVersion(Integer testSuiteVersion) { setTestSuiteVersion(testSuiteVersion); return this; } /** *

* The before steps of the test run step. *

* * @param beforeStep * The before steps of the test run step. */ public void setBeforeStep(Boolean beforeStep) { this.beforeStep = beforeStep; } /** *

* The before steps of the test run step. *

* * @return The before steps of the test run step. */ public Boolean getBeforeStep() { return this.beforeStep; } /** *

* The before steps of the test run step. *

* * @param beforeStep * The before steps of the test run step. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTestRunStepResult withBeforeStep(Boolean beforeStep) { setBeforeStep(beforeStep); return this; } /** *

* The before steps of the test run step. *

* * @return The before steps of the test run step. */ public Boolean isBeforeStep() { return this.beforeStep; } /** *

* The after steps of the test run step. *

* * @param afterStep * The after steps of the test run step. */ public void setAfterStep(Boolean afterStep) { this.afterStep = afterStep; } /** *

* The after steps of the test run step. *

* * @return The after steps of the test run step. */ public Boolean getAfterStep() { return this.afterStep; } /** *

* The after steps of the test run step. *

* * @param afterStep * The after steps of the test run step. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTestRunStepResult withAfterStep(Boolean afterStep) { setAfterStep(afterStep); return this; } /** *

* The after steps of the test run step. *

* * @return The after steps of the test run step. */ public Boolean isAfterStep() { return this.afterStep; } /** *

* The status of the test run step. *

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

* The status of the test run step. *

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

* The status of the test run step. *

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

* The status of the test run step. *

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

* The status reason of the test run step. *

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

* The status reason of the test run step. *

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

* The status reason of the test run step. *

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

* The run start time of the test run step. *

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

* The run start time of the test run step. *

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

* The run start time of the test run step. *

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

* The run end time of the test run step. *

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

* The run end time of the test run step. *

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

* The run end time of the test run step. *

* * @param runEndTime * The run end time of the test run step. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTestRunStepResult withRunEndTime(java.util.Date runEndTime) { setRunEndTime(runEndTime); return this; } /** *

* The step run summary of the test run step. *

* * @param stepRunSummary * The step run summary of the test run step. */ public void setStepRunSummary(StepRunSummary stepRunSummary) { this.stepRunSummary = stepRunSummary; } /** *

* The step run summary of the test run step. *

* * @return The step run summary of the test run step. */ public StepRunSummary getStepRunSummary() { return this.stepRunSummary; } /** *

* The step run summary of the test run step. *

* * @param stepRunSummary * The step run summary of the test run step. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTestRunStepResult withStepRunSummary(StepRunSummary stepRunSummary) { setStepRunSummary(stepRunSummary); 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 (getStepName() != null) sb.append("StepName: ").append(getStepName()).append(","); if (getTestRunId() != null) sb.append("TestRunId: ").append(getTestRunId()).append(","); if (getTestCaseId() != null) sb.append("TestCaseId: ").append(getTestCaseId()).append(","); if (getTestCaseVersion() != null) sb.append("TestCaseVersion: ").append(getTestCaseVersion()).append(","); if (getTestSuiteId() != null) sb.append("TestSuiteId: ").append(getTestSuiteId()).append(","); if (getTestSuiteVersion() != null) sb.append("TestSuiteVersion: ").append(getTestSuiteVersion()).append(","); if (getBeforeStep() != null) sb.append("BeforeStep: ").append(getBeforeStep()).append(","); if (getAfterStep() != null) sb.append("AfterStep: ").append(getAfterStep()).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()).append(","); if (getStepRunSummary() != null) sb.append("StepRunSummary: ").append(getStepRunSummary()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTestRunStepResult == false) return false; GetTestRunStepResult other = (GetTestRunStepResult) obj; if (other.getStepName() == null ^ this.getStepName() == null) return false; if (other.getStepName() != null && other.getStepName().equals(this.getStepName()) == 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.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.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.getBeforeStep() == null ^ this.getBeforeStep() == null) return false; if (other.getBeforeStep() != null && other.getBeforeStep().equals(this.getBeforeStep()) == false) return false; if (other.getAfterStep() == null ^ this.getAfterStep() == null) return false; if (other.getAfterStep() != null && other.getAfterStep().equals(this.getAfterStep()) == 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; if (other.getStepRunSummary() == null ^ this.getStepRunSummary() == null) return false; if (other.getStepRunSummary() != null && other.getStepRunSummary().equals(this.getStepRunSummary()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStepName() == null) ? 0 : getStepName().hashCode()); hashCode = prime * hashCode + ((getTestRunId() == null) ? 0 : getTestRunId().hashCode()); hashCode = prime * hashCode + ((getTestCaseId() == null) ? 0 : getTestCaseId().hashCode()); hashCode = prime * hashCode + ((getTestCaseVersion() == null) ? 0 : getTestCaseVersion().hashCode()); hashCode = prime * hashCode + ((getTestSuiteId() == null) ? 0 : getTestSuiteId().hashCode()); hashCode = prime * hashCode + ((getTestSuiteVersion() == null) ? 0 : getTestSuiteVersion().hashCode()); hashCode = prime * hashCode + ((getBeforeStep() == null) ? 0 : getBeforeStep().hashCode()); hashCode = prime * hashCode + ((getAfterStep() == null) ? 0 : getAfterStep().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()); hashCode = prime * hashCode + ((getStepRunSummary() == null) ? 0 : getStepRunSummary().hashCode()); return hashCode; } @Override public GetTestRunStepResult clone() { try { return (GetTestRunStepResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy