/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTDeviceAdvisor { namespace Model { class GetSuiteRunResult { public: AWS_IOTDEVICEADVISOR_API GetSuiteRunResult(); AWS_IOTDEVICEADVISOR_API GetSuiteRunResult(const Aws::AmazonWebServiceResult& result); AWS_IOTDEVICEADVISOR_API GetSuiteRunResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Suite definition ID for the test suite run.

*/ inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } /** *

Suite definition ID for the test suite run.

*/ inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionId = value; } /** *

Suite definition ID for the test suite run.

*/ inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionId = std::move(value); } /** *

Suite definition ID for the test suite run.

*/ inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionId.assign(value); } /** *

Suite definition ID for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} /** *

Suite definition ID for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} /** *

Suite definition ID for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} /** *

Suite definition version for the test suite run.

*/ inline const Aws::String& GetSuiteDefinitionVersion() const{ return m_suiteDefinitionVersion; } /** *

Suite definition version for the test suite run.

*/ inline void SetSuiteDefinitionVersion(const Aws::String& value) { m_suiteDefinitionVersion = value; } /** *

Suite definition version for the test suite run.

*/ inline void SetSuiteDefinitionVersion(Aws::String&& value) { m_suiteDefinitionVersion = std::move(value); } /** *

Suite definition version for the test suite run.

*/ inline void SetSuiteDefinitionVersion(const char* value) { m_suiteDefinitionVersion.assign(value); } /** *

Suite definition version for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteDefinitionVersion(const Aws::String& value) { SetSuiteDefinitionVersion(value); return *this;} /** *

Suite definition version for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteDefinitionVersion(Aws::String&& value) { SetSuiteDefinitionVersion(std::move(value)); return *this;} /** *

Suite definition version for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteDefinitionVersion(const char* value) { SetSuiteDefinitionVersion(value); return *this;} /** *

Suite run ID for the test suite run.

*/ inline const Aws::String& GetSuiteRunId() const{ return m_suiteRunId; } /** *

Suite run ID for the test suite run.

*/ inline void SetSuiteRunId(const Aws::String& value) { m_suiteRunId = value; } /** *

Suite run ID for the test suite run.

*/ inline void SetSuiteRunId(Aws::String&& value) { m_suiteRunId = std::move(value); } /** *

Suite run ID for the test suite run.

*/ inline void SetSuiteRunId(const char* value) { m_suiteRunId.assign(value); } /** *

Suite run ID for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteRunId(const Aws::String& value) { SetSuiteRunId(value); return *this;} /** *

Suite run ID for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteRunId(Aws::String&& value) { SetSuiteRunId(std::move(value)); return *this;} /** *

Suite run ID for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteRunId(const char* value) { SetSuiteRunId(value); return *this;} /** *

The ARN of the suite run.

*/ inline const Aws::String& GetSuiteRunArn() const{ return m_suiteRunArn; } /** *

The ARN of the suite run.

*/ inline void SetSuiteRunArn(const Aws::String& value) { m_suiteRunArn = value; } /** *

The ARN of the suite run.

*/ inline void SetSuiteRunArn(Aws::String&& value) { m_suiteRunArn = std::move(value); } /** *

The ARN of the suite run.

*/ inline void SetSuiteRunArn(const char* value) { m_suiteRunArn.assign(value); } /** *

The ARN of the suite run.

*/ inline GetSuiteRunResult& WithSuiteRunArn(const Aws::String& value) { SetSuiteRunArn(value); return *this;} /** *

The ARN of the suite run.

*/ inline GetSuiteRunResult& WithSuiteRunArn(Aws::String&& value) { SetSuiteRunArn(std::move(value)); return *this;} /** *

The ARN of the suite run.

*/ inline GetSuiteRunResult& WithSuiteRunArn(const char* value) { SetSuiteRunArn(value); return *this;} /** *

Suite run configuration for the test suite run.

*/ inline const SuiteRunConfiguration& GetSuiteRunConfiguration() const{ return m_suiteRunConfiguration; } /** *

Suite run configuration for the test suite run.

*/ inline void SetSuiteRunConfiguration(const SuiteRunConfiguration& value) { m_suiteRunConfiguration = value; } /** *

Suite run configuration for the test suite run.

*/ inline void SetSuiteRunConfiguration(SuiteRunConfiguration&& value) { m_suiteRunConfiguration = std::move(value); } /** *

Suite run configuration for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteRunConfiguration(const SuiteRunConfiguration& value) { SetSuiteRunConfiguration(value); return *this;} /** *

Suite run configuration for the test suite run.

*/ inline GetSuiteRunResult& WithSuiteRunConfiguration(SuiteRunConfiguration&& value) { SetSuiteRunConfiguration(std::move(value)); return *this;} /** *

Test results for the test suite run.

*/ inline const TestResult& GetTestResult() const{ return m_testResult; } /** *

Test results for the test suite run.

*/ inline void SetTestResult(const TestResult& value) { m_testResult = value; } /** *

Test results for the test suite run.

*/ inline void SetTestResult(TestResult&& value) { m_testResult = std::move(value); } /** *

Test results for the test suite run.

*/ inline GetSuiteRunResult& WithTestResult(const TestResult& value) { SetTestResult(value); return *this;} /** *

Test results for the test suite run.

*/ inline GetSuiteRunResult& WithTestResult(TestResult&& value) { SetTestResult(std::move(value)); return *this;} /** *

Date (in Unix epoch time) when the test suite run started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

Date (in Unix epoch time) when the test suite run started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** *

Date (in Unix epoch time) when the test suite run started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** *

Date (in Unix epoch time) when the test suite run started.

*/ inline GetSuiteRunResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

Date (in Unix epoch time) when the test suite run started.

*/ inline GetSuiteRunResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

Date (in Unix epoch time) when the test suite run ended.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

Date (in Unix epoch time) when the test suite run ended.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; } /** *

Date (in Unix epoch time) when the test suite run ended.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); } /** *

Date (in Unix epoch time) when the test suite run ended.

*/ inline GetSuiteRunResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

Date (in Unix epoch time) when the test suite run ended.

*/ inline GetSuiteRunResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

Status for the test suite run.

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

Status for the test suite run.

*/ inline void SetStatus(const SuiteRunStatus& value) { m_status = value; } /** *

Status for the test suite run.

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

Status for the test suite run.

*/ inline GetSuiteRunResult& WithStatus(const SuiteRunStatus& value) { SetStatus(value); return *this;} /** *

Status for the test suite run.

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

Error reason for any test suite run failure.

*/ inline const Aws::String& GetErrorReason() const{ return m_errorReason; } /** *

Error reason for any test suite run failure.

*/ inline void SetErrorReason(const Aws::String& value) { m_errorReason = value; } /** *

Error reason for any test suite run failure.

*/ inline void SetErrorReason(Aws::String&& value) { m_errorReason = std::move(value); } /** *

Error reason for any test suite run failure.

*/ inline void SetErrorReason(const char* value) { m_errorReason.assign(value); } /** *

Error reason for any test suite run failure.

*/ inline GetSuiteRunResult& WithErrorReason(const Aws::String& value) { SetErrorReason(value); return *this;} /** *

Error reason for any test suite run failure.

*/ inline GetSuiteRunResult& WithErrorReason(Aws::String&& value) { SetErrorReason(std::move(value)); return *this;} /** *

Error reason for any test suite run failure.

*/ inline GetSuiteRunResult& WithErrorReason(const char* value) { SetErrorReason(value); return *this;} /** *

The tags attached to the suite run.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags attached to the suite run.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The tags attached to the suite run.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags attached to the suite run.

*/ inline GetSuiteRunResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSuiteRunResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSuiteRunResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSuiteRunResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_suiteDefinitionId; Aws::String m_suiteDefinitionVersion; Aws::String m_suiteRunId; Aws::String m_suiteRunArn; SuiteRunConfiguration m_suiteRunConfiguration; TestResult m_testResult; Aws::Utils::DateTime m_startTime; Aws::Utils::DateTime m_endTime; SuiteRunStatus m_status; Aws::String m_errorReason; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace IoTDeviceAdvisor } // namespace Aws