Struct aws_sdk_iotdeviceadvisor::model::test_case_scenario::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TestCaseScenario
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn test_case_scenario_id(self, input: impl Into<String>) -> Self
pub fn test_case_scenario_id(self, input: impl Into<String>) -> Self
Provides test case scenario ID.
sourcepub fn set_test_case_scenario_id(self, input: Option<String>) -> Self
pub fn set_test_case_scenario_id(self, input: Option<String>) -> Self
Provides test case scenario ID.
sourcepub fn test_case_scenario_type(self, input: TestCaseScenarioType) -> Self
pub fn test_case_scenario_type(self, input: TestCaseScenarioType) -> Self
Provides test case scenario type. Type is one of the following:
-
Advanced
-
Basic
sourcepub fn set_test_case_scenario_type(
self,
input: Option<TestCaseScenarioType>
) -> Self
pub fn set_test_case_scenario_type(
self,
input: Option<TestCaseScenarioType>
) -> Self
Provides test case scenario type. Type is one of the following:
-
Advanced
-
Basic
sourcepub fn status(self, input: TestCaseScenarioStatus) -> Self
pub fn status(self, input: TestCaseScenarioStatus) -> Self
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.
sourcepub fn set_status(self, input: Option<TestCaseScenarioStatus>) -> Self
pub fn set_status(self, input: Option<TestCaseScenarioStatus>) -> Self
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.
sourcepub fn failure(self, input: impl Into<String>) -> Self
pub fn failure(self, input: impl Into<String>) -> Self
Provides test case scenario failure result.
sourcepub fn set_failure(self, input: Option<String>) -> Self
pub fn set_failure(self, input: Option<String>) -> Self
Provides test case scenario failure result.
sourcepub fn system_message(self, input: impl Into<String>) -> Self
pub fn system_message(self, input: impl Into<String>) -> Self
sourcepub fn set_system_message(self, input: Option<String>) -> Self
pub fn set_system_message(self, input: Option<String>) -> Self
sourcepub fn build(self) -> TestCaseScenario
pub fn build(self) -> TestCaseScenario
Consumes the builder and constructs a TestCaseScenario
.