/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTDeviceAdvisor { namespace Model { /** *

Provides test case scenario.

See Also:

AWS * API Reference

*/ class TestCaseScenario { public: AWS_IOTDEVICEADVISOR_API TestCaseScenario(); AWS_IOTDEVICEADVISOR_API TestCaseScenario(Aws::Utils::Json::JsonView jsonValue); AWS_IOTDEVICEADVISOR_API TestCaseScenario& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTDEVICEADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Provides test case scenario ID.

*/ inline const Aws::String& GetTestCaseScenarioId() const{ return m_testCaseScenarioId; } /** *

Provides test case scenario ID.

*/ inline bool TestCaseScenarioIdHasBeenSet() const { return m_testCaseScenarioIdHasBeenSet; } /** *

Provides test case scenario ID.

*/ inline void SetTestCaseScenarioId(const Aws::String& value) { m_testCaseScenarioIdHasBeenSet = true; m_testCaseScenarioId = value; } /** *

Provides test case scenario ID.

*/ inline void SetTestCaseScenarioId(Aws::String&& value) { m_testCaseScenarioIdHasBeenSet = true; m_testCaseScenarioId = std::move(value); } /** *

Provides test case scenario ID.

*/ inline void SetTestCaseScenarioId(const char* value) { m_testCaseScenarioIdHasBeenSet = true; m_testCaseScenarioId.assign(value); } /** *

Provides test case scenario ID.

*/ inline TestCaseScenario& WithTestCaseScenarioId(const Aws::String& value) { SetTestCaseScenarioId(value); return *this;} /** *

Provides test case scenario ID.

*/ inline TestCaseScenario& WithTestCaseScenarioId(Aws::String&& value) { SetTestCaseScenarioId(std::move(value)); return *this;} /** *

Provides test case scenario ID.

*/ inline TestCaseScenario& WithTestCaseScenarioId(const char* value) { SetTestCaseScenarioId(value); return *this;} /** *

Provides test case scenario type. Type is one of the following:

  • *

    Advanced

  • Basic

*/ inline const TestCaseScenarioType& GetTestCaseScenarioType() const{ return m_testCaseScenarioType; } /** *

Provides test case scenario type. Type is one of the following:

  • *

    Advanced

  • Basic

*/ inline bool TestCaseScenarioTypeHasBeenSet() const { return m_testCaseScenarioTypeHasBeenSet; } /** *

Provides test case scenario type. Type is one of the following:

  • *

    Advanced

  • Basic

*/ inline void SetTestCaseScenarioType(const TestCaseScenarioType& value) { m_testCaseScenarioTypeHasBeenSet = true; m_testCaseScenarioType = value; } /** *

Provides test case scenario type. Type is one of the following:

  • *

    Advanced

  • Basic

*/ inline void SetTestCaseScenarioType(TestCaseScenarioType&& value) { m_testCaseScenarioTypeHasBeenSet = true; m_testCaseScenarioType = std::move(value); } /** *

Provides test case scenario type. Type is one of the following:

  • *

    Advanced

  • Basic

*/ inline TestCaseScenario& WithTestCaseScenarioType(const TestCaseScenarioType& value) { SetTestCaseScenarioType(value); return *this;} /** *

Provides test case scenario type. Type is one of the following:

  • *

    Advanced

  • Basic

*/ inline TestCaseScenario& WithTestCaseScenarioType(TestCaseScenarioType&& value) { SetTestCaseScenarioType(std::move(value)); return *this;} /** *

Provides the test case scenario 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.

*/ inline const TestCaseScenarioStatus& GetStatus() const{ return m_status; } /** *

Provides the test case scenario 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.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Provides the test case scenario 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.

*/ inline void SetStatus(const TestCaseScenarioStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Provides the test case scenario 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.

*/ inline void SetStatus(TestCaseScenarioStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Provides the test case scenario 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.

*/ inline TestCaseScenario& WithStatus(const TestCaseScenarioStatus& value) { SetStatus(value); return *this;} /** *

Provides the test case scenario 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.

*/ inline TestCaseScenario& WithStatus(TestCaseScenarioStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Provides test case scenario failure result.

*/ inline const Aws::String& GetFailure() const{ return m_failure; } /** *

Provides test case scenario failure result.

*/ inline bool FailureHasBeenSet() const { return m_failureHasBeenSet; } /** *

Provides test case scenario failure result.

*/ inline void SetFailure(const Aws::String& value) { m_failureHasBeenSet = true; m_failure = value; } /** *

Provides test case scenario failure result.

*/ inline void SetFailure(Aws::String&& value) { m_failureHasBeenSet = true; m_failure = std::move(value); } /** *

Provides test case scenario failure result.

*/ inline void SetFailure(const char* value) { m_failureHasBeenSet = true; m_failure.assign(value); } /** *

Provides test case scenario failure result.

*/ inline TestCaseScenario& WithFailure(const Aws::String& value) { SetFailure(value); return *this;} /** *

Provides test case scenario failure result.

*/ inline TestCaseScenario& WithFailure(Aws::String&& value) { SetFailure(std::move(value)); return *this;} /** *

Provides test case scenario failure result.

*/ inline TestCaseScenario& WithFailure(const char* value) { SetFailure(value); return *this;} /** *

Provides test case scenario system messages if any.

*/ inline const Aws::String& GetSystemMessage() const{ return m_systemMessage; } /** *

Provides test case scenario system messages if any.

*/ inline bool SystemMessageHasBeenSet() const { return m_systemMessageHasBeenSet; } /** *

Provides test case scenario system messages if any.

*/ inline void SetSystemMessage(const Aws::String& value) { m_systemMessageHasBeenSet = true; m_systemMessage = value; } /** *

Provides test case scenario system messages if any.

*/ inline void SetSystemMessage(Aws::String&& value) { m_systemMessageHasBeenSet = true; m_systemMessage = std::move(value); } /** *

Provides test case scenario system messages if any.

*/ inline void SetSystemMessage(const char* value) { m_systemMessageHasBeenSet = true; m_systemMessage.assign(value); } /** *

Provides test case scenario system messages if any.

*/ inline TestCaseScenario& WithSystemMessage(const Aws::String& value) { SetSystemMessage(value); return *this;} /** *

Provides test case scenario system messages if any.

*/ inline TestCaseScenario& WithSystemMessage(Aws::String&& value) { SetSystemMessage(std::move(value)); return *this;} /** *

Provides test case scenario system messages if any.

*/ inline TestCaseScenario& WithSystemMessage(const char* value) { SetSystemMessage(value); return *this;} private: Aws::String m_testCaseScenarioId; bool m_testCaseScenarioIdHasBeenSet = false; TestCaseScenarioType m_testCaseScenarioType; bool m_testCaseScenarioTypeHasBeenSet = false; TestCaseScenarioStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_failure; bool m_failureHasBeenSet = false; Aws::String m_systemMessage; bool m_systemMessageHasBeenSet = false; }; } // namespace Model } // namespace IoTDeviceAdvisor } // namespace Aws