@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Diagnostics extends Object implements Serializable, Cloneable, StructuredPojo
Diagnostic information about executable scripts that are part of a deployment.
| Constructor and Description | 
|---|
| Diagnostics() | 
| Modifier and Type | Method and Description | 
|---|---|
| Diagnostics | clone() | 
| boolean | equals(Object obj) | 
| String | getErrorCode()
 The associated error code: | 
| String | getLogTail()
 The last portion of the diagnostic log. | 
| String | getMessage()
 The message associated with the error. | 
| String | getScriptName()
 The name of the script. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setErrorCode(LifecycleErrorCode errorCode)
 The associated error code: | 
| void | setErrorCode(String errorCode)
 The associated error code: | 
| void | setLogTail(String logTail)
 The last portion of the diagnostic log. | 
| void | setMessage(String message)
 The message associated with the error. | 
| void | setScriptName(String scriptName)
 The name of the script. | 
| String | toString()Returns a string representation of this object; useful for testing and debugging. | 
| Diagnostics | withErrorCode(LifecycleErrorCode errorCode)
 The associated error code: | 
| Diagnostics | withErrorCode(String errorCode)
 The associated error code: | 
| Diagnostics | withLogTail(String logTail)
 The last portion of the diagnostic log. | 
| Diagnostics | withMessage(String message)
 The message associated with the error. | 
| Diagnostics | withScriptName(String scriptName)
 The name of the script. | 
public void setErrorCode(String 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.
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.
LifecycleErrorCodepublic String getErrorCode()
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.
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.
LifecycleErrorCodepublic Diagnostics withErrorCode(String 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.
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.
LifecycleErrorCodepublic void setErrorCode(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.
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.
LifecycleErrorCodepublic Diagnostics withErrorCode(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.
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.
LifecycleErrorCodepublic void setScriptName(String scriptName)
The name of the script.
scriptName - The name of the script.public String getScriptName()
The name of the script.
public Diagnostics withScriptName(String scriptName)
The name of the script.
scriptName - The name of the script.public void setMessage(String message)
The message associated with the error.
message - The message associated with the error.public String getMessage()
The message associated with the error.
public Diagnostics withMessage(String message)
The message associated with the error.
message - The message associated with the error.public void setLogTail(String logTail)
The last portion of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
logTail - The last portion of the diagnostic log.
        If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
public String getLogTail()
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 withLogTail(String logTail)
The last portion of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
logTail - The last portion of the diagnostic log.
        If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
public String toString()
toString in class ObjectObject.toString()public Diagnostics clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.