public class Diagnostics
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Diagnostic information about executable scripts that are part of a deployment.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorCode
The associated error code:
|
private java.lang.String |
logTail
The last portion of the diagnostic log.
|
private java.lang.String |
message
The message associated with the error.
|
private java.lang.String |
scriptName
The name of the script.
|
Constructor and Description |
---|
Diagnostics() |
Modifier and Type | Method and Description |
---|---|
Diagnostics |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getErrorCode()
The associated error code:
|
java.lang.String |
getLogTail()
The last portion of the diagnostic log.
|
java.lang.String |
getMessage()
The message associated with the error.
|
java.lang.String |
getScriptName()
The name of the script.
|
int |
hashCode() |
void |
setErrorCode(LifecycleErrorCode errorCode)
The associated error code:
|
void |
setErrorCode(java.lang.String errorCode)
The associated error code:
|
void |
setLogTail(java.lang.String logTail)
The last portion of the diagnostic log.
|
void |
setMessage(java.lang.String message)
The message associated with the error.
|
void |
setScriptName(java.lang.String scriptName)
The name of the script.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Diagnostics |
withErrorCode(LifecycleErrorCode errorCode)
The associated error code:
|
Diagnostics |
withErrorCode(java.lang.String errorCode)
The associated error code:
|
Diagnostics |
withLogTail(java.lang.String logTail)
The last portion of the diagnostic log.
|
Diagnostics |
withMessage(java.lang.String message)
The message associated with the error.
|
Diagnostics |
withScriptName(java.lang.String scriptName)
The name of the script.
|
private java.lang.String errorCode
The associated error code:
private java.lang.String scriptName
The name of the script.
private java.lang.String message
The message associated with the error.
private java.lang.String logTail
The last portion of the diagnostic log.
If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.
public void setErrorCode(java.lang.String errorCode)
The associated error code:
errorCode
- The associated error code:
LifecycleErrorCode
public java.lang.String getErrorCode()
The associated error code:
LifecycleErrorCode
public Diagnostics withErrorCode(java.lang.String errorCode)
The associated error code:
errorCode
- The associated error code:
LifecycleErrorCode
public void setErrorCode(LifecycleErrorCode errorCode)
The associated error code:
errorCode
- The associated error code:
LifecycleErrorCode
public Diagnostics withErrorCode(LifecycleErrorCode errorCode)
The associated error code:
errorCode
- The associated error code:
LifecycleErrorCode
public void setScriptName(java.lang.String scriptName)
The name of the script.
scriptName
- The name of the script.public java.lang.String getScriptName()
The name of the script.
public Diagnostics withScriptName(java.lang.String scriptName)
The name of the script.
scriptName
- The name of the script.public void setMessage(java.lang.String message)
The message associated with the error.
message
- The message associated with the error.public java.lang.String getMessage()
The message associated with the error.
public Diagnostics withMessage(java.lang.String message)
The message associated with the error.
message
- The message associated with the error.public void setLogTail(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Diagnostics clone()
clone
in class java.lang.Object