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

com.amazonaws.services.iotdeviceadvisor.model.TestCaseRun Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT Core Device Advisor module holds the client classes that are used for communicating with AWS IoT Core Device Advisor Service

There is a newer version: 1.12.780
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.iotdeviceadvisor.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Provides the test case run. *

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

* Provides the test case run ID. *

*/ private String testCaseRunId; /** *

* Provides the test case run definition ID. *

*/ private String testCaseDefinitionId; /** *

* Provides the test case run definition name. *

*/ private String testCaseDefinitionName; /** *

* Provides the test case run status. Status is one of the following: *

*
    *
  • *

    * PASS: Test passed. *

    *
  • *
  • *

    * FAIL: Test failed. *

    *
  • *
  • *

    * PENDING: Test has not started running but is scheduled. *

    *
  • *
  • *

    * RUNNING: Test is running. *

    *
  • *
  • *

    * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run. *

    *
  • *
  • *

    * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

    *
  • *
  • *

    * PASS_WITH_WARNINGS: Test passed with warnings. *

    *
  • *
  • *

    * ERORR: Test faced an error when running due to an internal issue. *

    *
  • *
*/ private String status; /** *

* Provides test case run start time. *

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

* Provides test case run end time. *

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

* Provides test case run log URL. *

*/ private String logUrl; /** *

* Provides test case run warnings. *

*/ private String warnings; /** *

* Provides test case run failure result. *

*/ private String failure; /** *

* Provides the test scenarios for the test case run. *

*/ private java.util.List testScenarios; /** *

* Provides the test case run ID. *

* * @param testCaseRunId * Provides the test case run ID. */ public void setTestCaseRunId(String testCaseRunId) { this.testCaseRunId = testCaseRunId; } /** *

* Provides the test case run ID. *

* * @return Provides the test case run ID. */ public String getTestCaseRunId() { return this.testCaseRunId; } /** *

* Provides the test case run ID. *

* * @param testCaseRunId * Provides the test case run ID. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withTestCaseRunId(String testCaseRunId) { setTestCaseRunId(testCaseRunId); return this; } /** *

* Provides the test case run definition ID. *

* * @param testCaseDefinitionId * Provides the test case run definition ID. */ public void setTestCaseDefinitionId(String testCaseDefinitionId) { this.testCaseDefinitionId = testCaseDefinitionId; } /** *

* Provides the test case run definition ID. *

* * @return Provides the test case run definition ID. */ public String getTestCaseDefinitionId() { return this.testCaseDefinitionId; } /** *

* Provides the test case run definition ID. *

* * @param testCaseDefinitionId * Provides the test case run definition ID. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withTestCaseDefinitionId(String testCaseDefinitionId) { setTestCaseDefinitionId(testCaseDefinitionId); return this; } /** *

* Provides the test case run definition name. *

* * @param testCaseDefinitionName * Provides the test case run definition name. */ public void setTestCaseDefinitionName(String testCaseDefinitionName) { this.testCaseDefinitionName = testCaseDefinitionName; } /** *

* Provides the test case run definition name. *

* * @return Provides the test case run definition name. */ public String getTestCaseDefinitionName() { return this.testCaseDefinitionName; } /** *

* Provides the test case run definition name. *

* * @param testCaseDefinitionName * Provides the test case run definition name. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withTestCaseDefinitionName(String testCaseDefinitionName) { setTestCaseDefinitionName(testCaseDefinitionName); return this; } /** *

* Provides the test case run status. Status is one of the following: *

*
    *
  • *

    * PASS: Test passed. *

    *
  • *
  • *

    * FAIL: Test failed. *

    *
  • *
  • *

    * PENDING: Test has not started running but is scheduled. *

    *
  • *
  • *

    * RUNNING: Test is running. *

    *
  • *
  • *

    * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run. *

    *
  • *
  • *

    * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

    *
  • *
  • *

    * PASS_WITH_WARNINGS: Test passed with warnings. *

    *
  • *
  • *

    * ERORR: Test faced an error when running due to an internal issue. *

    *
  • *
* * @param status * Provides the test case run status. Status is one of the following:

*
    *
  • *

    * PASS: Test passed. *

    *
  • *
  • *

    * FAIL: Test failed. *

    *
  • *
  • *

    * PENDING: Test has not started running but is scheduled. *

    *
  • *
  • *

    * RUNNING: Test is running. *

    *
  • *
  • *

    * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite * run. *

    *
  • *
  • *

    * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

    *
  • *
  • *

    * PASS_WITH_WARNINGS: Test passed with warnings. *

    *
  • *
  • *

    * ERORR: Test faced an error when running due to an internal issue. *

    *
  • * @see Status */ public void setStatus(String status) { this.status = status; } /** *

    * Provides the test case run status. Status is one of the following: *

    *
      *
    • *

      * PASS: Test passed. *

      *
    • *
    • *

      * FAIL: Test failed. *

      *
    • *
    • *

      * PENDING: Test has not started running but is scheduled. *

      *
    • *
    • *

      * RUNNING: Test is running. *

      *
    • *
    • *

      * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run. *

      *
    • *
    • *

      * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

      *
    • *
    • *

      * PASS_WITH_WARNINGS: Test passed with warnings. *

      *
    • *
    • *

      * ERORR: Test faced an error when running due to an internal issue. *

      *
    • *
    * * @return Provides the test case run status. Status is one of the following:

    *
      *
    • *

      * PASS: Test passed. *

      *
    • *
    • *

      * FAIL: Test failed. *

      *
    • *
    • *

      * PENDING: Test has not started running but is scheduled. *

      *
    • *
    • *

      * RUNNING: Test is running. *

      *
    • *
    • *

      * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a * suite run. *

      *
    • *
    • *

      * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

      *
    • *
    • *

      * PASS_WITH_WARNINGS: Test passed with warnings. *

      *
    • *
    • *

      * ERORR: Test faced an error when running due to an internal issue. *

      *
    • * @see Status */ public String getStatus() { return this.status; } /** *

      * Provides the test case run status. Status is one of the following: *

      *
        *
      • *

        * PASS: Test passed. *

        *
      • *
      • *

        * FAIL: Test failed. *

        *
      • *
      • *

        * PENDING: Test has not started running but is scheduled. *

        *
      • *
      • *

        * RUNNING: Test is running. *

        *
      • *
      • *

        * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run. *

        *
      • *
      • *

        * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

        *
      • *
      • *

        * PASS_WITH_WARNINGS: Test passed with warnings. *

        *
      • *
      • *

        * ERORR: Test faced an error when running due to an internal issue. *

        *
      • *
      * * @param status * Provides the test case run status. Status is one of the following:

      *
        *
      • *

        * PASS: Test passed. *

        *
      • *
      • *

        * FAIL: Test failed. *

        *
      • *
      • *

        * PENDING: Test has not started running but is scheduled. *

        *
      • *
      • *

        * RUNNING: Test is running. *

        *
      • *
      • *

        * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite * run. *

        *
      • *
      • *

        * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

        *
      • *
      • *

        * PASS_WITH_WARNINGS: Test passed with warnings. *

        *
      • *
      • *

        * ERORR: Test faced an error when running due to an internal issue. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public TestCaseRun withStatus(String status) { setStatus(status); return this; } /** *

        * Provides the test case run status. Status is one of the following: *

        *
          *
        • *

          * PASS: Test passed. *

          *
        • *
        • *

          * FAIL: Test failed. *

          *
        • *
        • *

          * PENDING: Test has not started running but is scheduled. *

          *
        • *
        • *

          * RUNNING: Test is running. *

          *
        • *
        • *

          * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run. *

          *
        • *
        • *

          * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

          *
        • *
        • *

          * PASS_WITH_WARNINGS: Test passed with warnings. *

          *
        • *
        • *

          * ERORR: Test faced an error when running due to an internal issue. *

          *
        • *
        * * @param status * Provides the test case run status. Status is one of the following:

        *
          *
        • *

          * PASS: Test passed. *

          *
        • *
        • *

          * FAIL: Test failed. *

          *
        • *
        • *

          * PENDING: Test has not started running but is scheduled. *

          *
        • *
        • *

          * RUNNING: Test is running. *

          *
        • *
        • *

          * STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite * run. *

          *
        • *
        • *

          * STOPPED Test is stopped. You will see this status only if you stop a suite run. *

          *
        • *
        • *

          * PASS_WITH_WARNINGS: Test passed with warnings. *

          *
        • *
        • *

          * ERORR: Test faced an error when running due to an internal issue. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public TestCaseRun withStatus(Status status) { this.status = status.toString(); return this; } /** *

          * Provides test case run start time. *

          * * @param startTime * Provides test case run start time. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

          * Provides test case run start time. *

          * * @return Provides test case run start time. */ public java.util.Date getStartTime() { return this.startTime; } /** *

          * Provides test case run start time. *

          * * @param startTime * Provides test case run start time. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

          * Provides test case run end time. *

          * * @param endTime * Provides test case run end time. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

          * Provides test case run end time. *

          * * @return Provides test case run end time. */ public java.util.Date getEndTime() { return this.endTime; } /** *

          * Provides test case run end time. *

          * * @param endTime * Provides test case run end time. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

          * Provides test case run log URL. *

          * * @param logUrl * Provides test case run log URL. */ public void setLogUrl(String logUrl) { this.logUrl = logUrl; } /** *

          * Provides test case run log URL. *

          * * @return Provides test case run log URL. */ public String getLogUrl() { return this.logUrl; } /** *

          * Provides test case run log URL. *

          * * @param logUrl * Provides test case run log URL. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withLogUrl(String logUrl) { setLogUrl(logUrl); return this; } /** *

          * Provides test case run warnings. *

          * * @param warnings * Provides test case run warnings. */ public void setWarnings(String warnings) { this.warnings = warnings; } /** *

          * Provides test case run warnings. *

          * * @return Provides test case run warnings. */ public String getWarnings() { return this.warnings; } /** *

          * Provides test case run warnings. *

          * * @param warnings * Provides test case run warnings. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withWarnings(String warnings) { setWarnings(warnings); return this; } /** *

          * Provides test case run failure result. *

          * * @param failure * Provides test case run failure result. */ public void setFailure(String failure) { this.failure = failure; } /** *

          * Provides test case run failure result. *

          * * @return Provides test case run failure result. */ public String getFailure() { return this.failure; } /** *

          * Provides test case run failure result. *

          * * @param failure * Provides test case run failure result. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withFailure(String failure) { setFailure(failure); return this; } /** *

          * Provides the test scenarios for the test case run. *

          * * @return Provides the test scenarios for the test case run. */ public java.util.List getTestScenarios() { return testScenarios; } /** *

          * Provides the test scenarios for the test case run. *

          * * @param testScenarios * Provides the test scenarios for the test case run. */ public void setTestScenarios(java.util.Collection testScenarios) { if (testScenarios == null) { this.testScenarios = null; return; } this.testScenarios = new java.util.ArrayList(testScenarios); } /** *

          * Provides the test scenarios for the test case run. *

          *

          * NOTE: This method appends the values to the existing list (if any). Use * {@link #setTestScenarios(java.util.Collection)} or {@link #withTestScenarios(java.util.Collection)} if you want * to override the existing values. *

          * * @param testScenarios * Provides the test scenarios for the test case run. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withTestScenarios(TestCaseScenario... testScenarios) { if (this.testScenarios == null) { setTestScenarios(new java.util.ArrayList(testScenarios.length)); } for (TestCaseScenario ele : testScenarios) { this.testScenarios.add(ele); } return this; } /** *

          * Provides the test scenarios for the test case run. *

          * * @param testScenarios * Provides the test scenarios for the test case run. * @return Returns a reference to this object so that method calls can be chained together. */ public TestCaseRun withTestScenarios(java.util.Collection testScenarios) { setTestScenarios(testScenarios); 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 (getTestCaseRunId() != null) sb.append("TestCaseRunId: ").append(getTestCaseRunId()).append(","); if (getTestCaseDefinitionId() != null) sb.append("TestCaseDefinitionId: ").append(getTestCaseDefinitionId()).append(","); if (getTestCaseDefinitionName() != null) sb.append("TestCaseDefinitionName: ").append(getTestCaseDefinitionName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getLogUrl() != null) sb.append("LogUrl: ").append(getLogUrl()).append(","); if (getWarnings() != null) sb.append("Warnings: ").append(getWarnings()).append(","); if (getFailure() != null) sb.append("Failure: ").append(getFailure()).append(","); if (getTestScenarios() != null) sb.append("TestScenarios: ").append(getTestScenarios()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TestCaseRun == false) return false; TestCaseRun other = (TestCaseRun) obj; if (other.getTestCaseRunId() == null ^ this.getTestCaseRunId() == null) return false; if (other.getTestCaseRunId() != null && other.getTestCaseRunId().equals(this.getTestCaseRunId()) == false) return false; if (other.getTestCaseDefinitionId() == null ^ this.getTestCaseDefinitionId() == null) return false; if (other.getTestCaseDefinitionId() != null && other.getTestCaseDefinitionId().equals(this.getTestCaseDefinitionId()) == false) return false; if (other.getTestCaseDefinitionName() == null ^ this.getTestCaseDefinitionName() == null) return false; if (other.getTestCaseDefinitionName() != null && other.getTestCaseDefinitionName().equals(this.getTestCaseDefinitionName()) == 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.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getLogUrl() == null ^ this.getLogUrl() == null) return false; if (other.getLogUrl() != null && other.getLogUrl().equals(this.getLogUrl()) == false) return false; if (other.getWarnings() == null ^ this.getWarnings() == null) return false; if (other.getWarnings() != null && other.getWarnings().equals(this.getWarnings()) == false) return false; if (other.getFailure() == null ^ this.getFailure() == null) return false; if (other.getFailure() != null && other.getFailure().equals(this.getFailure()) == false) return false; if (other.getTestScenarios() == null ^ this.getTestScenarios() == null) return false; if (other.getTestScenarios() != null && other.getTestScenarios().equals(this.getTestScenarios()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTestCaseRunId() == null) ? 0 : getTestCaseRunId().hashCode()); hashCode = prime * hashCode + ((getTestCaseDefinitionId() == null) ? 0 : getTestCaseDefinitionId().hashCode()); hashCode = prime * hashCode + ((getTestCaseDefinitionName() == null) ? 0 : getTestCaseDefinitionName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getLogUrl() == null) ? 0 : getLogUrl().hashCode()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); hashCode = prime * hashCode + ((getFailure() == null) ? 0 : getFailure().hashCode()); hashCode = prime * hashCode + ((getTestScenarios() == null) ? 0 : getTestScenarios().hashCode()); return hashCode; } @Override public TestCaseRun clone() { try { return (TestCaseRun) 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.iotdeviceadvisor.model.transform.TestCaseRunMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy