Class Diagnostics

java.lang.Object
com.amazonaws.services.codedeploy.model.Diagnostics
All Implemented Interfaces:
Serializable, Cloneable

public class Diagnostics extends Object implements Serializable, Cloneable

Diagnostic information about executable scripts that are part of a deployment.

See Also:
  • Constructor Details

    • Diagnostics

      public Diagnostics()
  • Method Details

    • setErrorCode

      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.
      Parameters:
      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.
      See Also:
    • getErrorCode

      public 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.
      Returns:
      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.
      See Also:
    • withErrorCode

      public 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.
      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setErrorCode

      public 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.
      Parameters:
      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.
      See Also:
    • withErrorCode

      public 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.
      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setScriptName

      public void setScriptName(String scriptName)

      The name of the script.

      Parameters:
      scriptName - The name of the script.
    • getScriptName

      public String getScriptName()

      The name of the script.

      Returns:
      The name of the script.
    • withScriptName

      public Diagnostics withScriptName(String scriptName)

      The name of the script.

      Parameters:
      scriptName - The name of the script.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMessage

      public void setMessage(String message)

      The message associated with the error.

      Parameters:
      message - The message associated with the error.
    • getMessage

      public String getMessage()

      The message associated with the error.

      Returns:
      The message associated with the error.
    • withMessage

      public Diagnostics withMessage(String message)

      The message associated with the error.

      Parameters:
      message - The message associated with the error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLogTail

      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.

      Parameters:
      logTail - The last portion of the diagnostic log.

      If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.

    • getLogTail

      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.

      Returns:
      The last portion of the diagnostic log.

      If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.

    • withLogTail

      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.

      Parameters:
      logTail - The last portion of the diagnostic log.

      If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic log.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Diagnostics clone()
      Overrides:
      clone in class Object