@Generated(value="software.amazon.awssdk:codegen") public final class Diagnostics extends Object implements StructuredPojo, ToCopyableBuilder<Diagnostics.Builder,Diagnostics>
Diagnostic information about executable scripts that are part of a deployment.
Modifier and Type | Class and Description |
---|---|
static interface |
Diagnostics.Builder |
Modifier and Type | Method and Description |
---|---|
static Diagnostics.Builder |
builder() |
boolean |
equals(Object obj) |
LifecycleErrorCode |
errorCode()
The associated error code:
|
String |
errorCodeAsString()
The associated error code:
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
logTail()
The last portion of the diagnostic log.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
message()
The message associated with the error.
|
String |
scriptName()
The name of the script.
|
static Class<? extends Diagnostics.Builder> |
serializableBuilderClass() |
Diagnostics.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public LifecycleErrorCode errorCode()
The associated error code:
Success: The specified script ran.
ScriptMissing: The specified script was not found in the specified location.
ScriptNotExecutable: The specified script is not a recognized executable file type.
ScriptTimedOut: The specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown reason.
If the service returns an enum value that is not available in the current SDK version, errorCode
will
return LifecycleErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
errorCodeAsString()
.
Success: The specified script ran.
ScriptMissing: The specified script was not found in the specified location.
ScriptNotExecutable: The specified script is not a recognized executable file type.
ScriptTimedOut: The specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown reason.
LifecycleErrorCode
public String errorCodeAsString()
The associated error code:
Success: The specified script ran.
ScriptMissing: The specified script was not found in the specified location.
ScriptNotExecutable: The specified script is not a recognized executable file type.
ScriptTimedOut: The specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown reason.
If the service returns an enum value that is not available in the current SDK version, errorCode
will
return LifecycleErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
errorCodeAsString()
.
Success: The specified script ran.
ScriptMissing: The specified script was not found in the specified location.
ScriptNotExecutable: The specified script is not a recognized executable file type.
ScriptTimedOut: The specified script did not finish running in the specified time period.
ScriptFailed: The specified script failed to run as expected.
UnknownError: The specified script did not run for an unknown reason.
LifecycleErrorCode
public String scriptName()
The name of the script.
public String message()
The message associated with the error.
public String logTail()
The last portion of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
public Diagnostics.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Diagnostics.Builder,Diagnostics>
public static Diagnostics.Builder builder()
public static Class<? extends Diagnostics.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.