@Generated(value="software.amazon.awssdk:codegen") public final class Problem extends Object implements StructuredPojo, ToCopyableBuilder<Problem.Builder,Problem>
Represents a specific warning or failure.
Modifier and Type | Class and Description |
---|---|
static interface |
Problem.Builder |
Modifier and Type | Method and Description |
---|---|
static Problem.Builder |
builder() |
Device |
device()
Information about the associated device.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ProblemDetail |
job()
Information about the associated job.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
message()
A message about the problem's result.
|
ExecutionResult |
result()
The problem's result.
|
String |
resultAsString()
The problem's result.
|
ProblemDetail |
run()
Information about the associated run.
|
static Class<? extends Problem.Builder> |
serializableBuilderClass() |
ProblemDetail |
suite()
Information about the associated suite.
|
ProblemDetail |
test()
Information about the associated test.
|
Problem.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public ProblemDetail run()
Information about the associated run.
public ProblemDetail job()
Information about the associated job.
public ProblemDetail suite()
Information about the associated suite.
public ProblemDetail test()
Information about the associated test.
public Device device()
Information about the associated device.
public ExecutionResult result()
The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
If the service returns an enum value that is not available in the current SDK version, result
will
return ExecutionResult.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resultAsString()
.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
ExecutionResult
public String resultAsString()
The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
If the service returns an enum value that is not available in the current SDK version, result
will
return ExecutionResult.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resultAsString()
.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
ExecutionResult
public String message()
A message about the problem's result.
public Problem.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Problem.Builder,Problem>
public static Problem.Builder builder()
public static Class<? extends Problem.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.