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

Information about a test case created using a framework such as NUnit or * Cucumber. A test case might be a unit test or a configuration test. *

See Also:

AWS * API Reference

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

The ARN of the report to which the test case belongs.

*/ inline const Aws::String& GetReportArn() const{ return m_reportArn; } /** *

The ARN of the report to which the test case belongs.

*/ inline bool ReportArnHasBeenSet() const { return m_reportArnHasBeenSet; } /** *

The ARN of the report to which the test case belongs.

*/ inline void SetReportArn(const Aws::String& value) { m_reportArnHasBeenSet = true; m_reportArn = value; } /** *

The ARN of the report to which the test case belongs.

*/ inline void SetReportArn(Aws::String&& value) { m_reportArnHasBeenSet = true; m_reportArn = std::move(value); } /** *

The ARN of the report to which the test case belongs.

*/ inline void SetReportArn(const char* value) { m_reportArnHasBeenSet = true; m_reportArn.assign(value); } /** *

The ARN of the report to which the test case belongs.

*/ inline TestCase& WithReportArn(const Aws::String& value) { SetReportArn(value); return *this;} /** *

The ARN of the report to which the test case belongs.

*/ inline TestCase& WithReportArn(Aws::String&& value) { SetReportArn(std::move(value)); return *this;} /** *

The ARN of the report to which the test case belongs.

*/ inline TestCase& WithReportArn(const char* value) { SetReportArn(value); return *this;} /** *

The path to the raw data file that contains the test result.

*/ inline const Aws::String& GetTestRawDataPath() const{ return m_testRawDataPath; } /** *

The path to the raw data file that contains the test result.

*/ inline bool TestRawDataPathHasBeenSet() const { return m_testRawDataPathHasBeenSet; } /** *

The path to the raw data file that contains the test result.

*/ inline void SetTestRawDataPath(const Aws::String& value) { m_testRawDataPathHasBeenSet = true; m_testRawDataPath = value; } /** *

The path to the raw data file that contains the test result.

*/ inline void SetTestRawDataPath(Aws::String&& value) { m_testRawDataPathHasBeenSet = true; m_testRawDataPath = std::move(value); } /** *

The path to the raw data file that contains the test result.

*/ inline void SetTestRawDataPath(const char* value) { m_testRawDataPathHasBeenSet = true; m_testRawDataPath.assign(value); } /** *

The path to the raw data file that contains the test result.

*/ inline TestCase& WithTestRawDataPath(const Aws::String& value) { SetTestRawDataPath(value); return *this;} /** *

The path to the raw data file that contains the test result.

*/ inline TestCase& WithTestRawDataPath(Aws::String&& value) { SetTestRawDataPath(std::move(value)); return *this;} /** *

The path to the raw data file that contains the test result.

*/ inline TestCase& WithTestRawDataPath(const char* value) { SetTestRawDataPath(value); return *this;} /** *

A string that is applied to a series of related test cases. CodeBuild * generates the prefix. The prefix depends on the framework used to generate the * tests.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

A string that is applied to a series of related test cases. CodeBuild * generates the prefix. The prefix depends on the framework used to generate the * tests.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

A string that is applied to a series of related test cases. CodeBuild * generates the prefix. The prefix depends on the framework used to generate the * tests.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

A string that is applied to a series of related test cases. CodeBuild * generates the prefix. The prefix depends on the framework used to generate the * tests.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

A string that is applied to a series of related test cases. CodeBuild * generates the prefix. The prefix depends on the framework used to generate the * tests.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

A string that is applied to a series of related test cases. CodeBuild * generates the prefix. The prefix depends on the framework used to generate the * tests.

*/ inline TestCase& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

A string that is applied to a series of related test cases. CodeBuild * generates the prefix. The prefix depends on the framework used to generate the * tests.

*/ inline TestCase& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

A string that is applied to a series of related test cases. CodeBuild * generates the prefix. The prefix depends on the framework used to generate the * tests.

*/ inline TestCase& WithPrefix(const char* value) { SetPrefix(value); return *this;} /** *

The name of the test case.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the test case.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the test case.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the test case.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the test case.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the test case.

*/ inline TestCase& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the test case.

*/ inline TestCase& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the test case.

*/ inline TestCase& WithName(const char* value) { SetName(value); return *this;} /** *

The status returned by the test case after it was run. Valid statuses are * SUCCEEDED, FAILED, ERROR, * SKIPPED, and UNKNOWN.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status returned by the test case after it was run. Valid statuses are * SUCCEEDED, FAILED, ERROR, * SKIPPED, and UNKNOWN.

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

The status returned by the test case after it was run. Valid statuses are * SUCCEEDED, FAILED, ERROR, * SKIPPED, and UNKNOWN.

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

The status returned by the test case after it was run. Valid statuses are * SUCCEEDED, FAILED, ERROR, * SKIPPED, and UNKNOWN.

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

The status returned by the test case after it was run. Valid statuses are * SUCCEEDED, FAILED, ERROR, * SKIPPED, and UNKNOWN.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status returned by the test case after it was run. Valid statuses are * SUCCEEDED, FAILED, ERROR, * SKIPPED, and UNKNOWN.

*/ inline TestCase& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status returned by the test case after it was run. Valid statuses are * SUCCEEDED, FAILED, ERROR, * SKIPPED, and UNKNOWN.

*/ inline TestCase& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status returned by the test case after it was run. Valid statuses are * SUCCEEDED, FAILED, ERROR, * SKIPPED, and UNKNOWN.

*/ inline TestCase& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The number of nanoseconds it took to run this test case.

*/ inline long long GetDurationInNanoSeconds() const{ return m_durationInNanoSeconds; } /** *

The number of nanoseconds it took to run this test case.

*/ inline bool DurationInNanoSecondsHasBeenSet() const { return m_durationInNanoSecondsHasBeenSet; } /** *

The number of nanoseconds it took to run this test case.

*/ inline void SetDurationInNanoSeconds(long long value) { m_durationInNanoSecondsHasBeenSet = true; m_durationInNanoSeconds = value; } /** *

The number of nanoseconds it took to run this test case.

*/ inline TestCase& WithDurationInNanoSeconds(long long value) { SetDurationInNanoSeconds(value); return *this;} /** *

A message associated with a test case. For example, an error message or * stack trace.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A message associated with a test case. For example, an error message or * stack trace.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A message associated with a test case. For example, an error message or * stack trace.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A message associated with a test case. For example, an error message or * stack trace.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A message associated with a test case. For example, an error message or * stack trace.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A message associated with a test case. For example, an error message or * stack trace.

*/ inline TestCase& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A message associated with a test case. For example, an error message or * stack trace.

*/ inline TestCase& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A message associated with a test case. For example, an error message or * stack trace.

*/ inline TestCase& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The date and time a test case expires. A test case expires 30 days after it * is created. An expired test case is not available to view in CodeBuild.

*/ inline const Aws::Utils::DateTime& GetExpired() const{ return m_expired; } /** *

The date and time a test case expires. A test case expires 30 days after it * is created. An expired test case is not available to view in CodeBuild.

*/ inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; } /** *

The date and time a test case expires. A test case expires 30 days after it * is created. An expired test case is not available to view in CodeBuild.

*/ inline void SetExpired(const Aws::Utils::DateTime& value) { m_expiredHasBeenSet = true; m_expired = value; } /** *

The date and time a test case expires. A test case expires 30 days after it * is created. An expired test case is not available to view in CodeBuild.

*/ inline void SetExpired(Aws::Utils::DateTime&& value) { m_expiredHasBeenSet = true; m_expired = std::move(value); } /** *

The date and time a test case expires. A test case expires 30 days after it * is created. An expired test case is not available to view in CodeBuild.

*/ inline TestCase& WithExpired(const Aws::Utils::DateTime& value) { SetExpired(value); return *this;} /** *

The date and time a test case expires. A test case expires 30 days after it * is created. An expired test case is not available to view in CodeBuild.

*/ inline TestCase& WithExpired(Aws::Utils::DateTime&& value) { SetExpired(std::move(value)); return *this;} private: Aws::String m_reportArn; bool m_reportArnHasBeenSet = false; Aws::String m_testRawDataPath; bool m_testRawDataPathHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; long long m_durationInNanoSeconds; bool m_durationInNanoSecondsHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Utils::DateTime m_expired; bool m_expiredHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws