Class LifecycleEvent
- java.lang.Object
-
- com.amazonaws.services.codedeploy.model.LifecycleEvent
-
- All Implemented Interfaces:
Serializable,Cloneable
public class LifecycleEvent extends Object implements Serializable, Cloneable
Information about a deployment lifecycle event.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LifecycleEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LifecycleEventclone()booleanequals(Object obj)DiagnosticsgetDiagnostics()Diagnostic information about the deployment lifecycle event.DategetEndTime()A timestamp indicating when the deployment lifecycle event ended.StringgetLifecycleEventName()The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.DategetStartTime()A timestamp indicating when the deployment lifecycle event started.StringgetStatus()The deployment lifecycle event status:inthashCode()voidsetDiagnostics(Diagnostics diagnostics)Diagnostic information about the deployment lifecycle event.voidsetEndTime(Date endTime)A timestamp indicating when the deployment lifecycle event ended.voidsetLifecycleEventName(String lifecycleEventName)The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.voidsetStartTime(Date startTime)A timestamp indicating when the deployment lifecycle event started.voidsetStatus(LifecycleEventStatus status)The deployment lifecycle event status:voidsetStatus(String status)The deployment lifecycle event status:StringtoString()Returns a string representation of this object; useful for testing and debugging.LifecycleEventwithDiagnostics(Diagnostics diagnostics)Diagnostic information about the deployment lifecycle event.LifecycleEventwithEndTime(Date endTime)A timestamp indicating when the deployment lifecycle event ended.LifecycleEventwithLifecycleEventName(String lifecycleEventName)The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.LifecycleEventwithStartTime(Date startTime)A timestamp indicating when the deployment lifecycle event started.LifecycleEventwithStatus(LifecycleEventStatus status)The deployment lifecycle event status:LifecycleEventwithStatus(String status)The deployment lifecycle event status:
-
-
-
Method Detail
-
setLifecycleEventName
public void setLifecycleEventName(String lifecycleEventName)
The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.
- Parameters:
lifecycleEventName- The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.
-
getLifecycleEventName
public String getLifecycleEventName()
The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.
- Returns:
- The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.
-
withLifecycleEventName
public LifecycleEvent withLifecycleEventName(String lifecycleEventName)
The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.
- Parameters:
lifecycleEventName- The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, AfterInstall, ApplicationStart, or ValidateService.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDiagnostics
public void setDiagnostics(Diagnostics diagnostics)
Diagnostic information about the deployment lifecycle event.
- Parameters:
diagnostics- Diagnostic information about the deployment lifecycle event.
-
getDiagnostics
public Diagnostics getDiagnostics()
Diagnostic information about the deployment lifecycle event.
- Returns:
- Diagnostic information about the deployment lifecycle event.
-
withDiagnostics
public LifecycleEvent withDiagnostics(Diagnostics diagnostics)
Diagnostic information about the deployment lifecycle event.
- Parameters:
diagnostics- Diagnostic information about the deployment lifecycle event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartTime
public void setStartTime(Date startTime)
A timestamp indicating when the deployment lifecycle event started.
- Parameters:
startTime- A timestamp indicating when the deployment lifecycle event started.
-
getStartTime
public Date getStartTime()
A timestamp indicating when the deployment lifecycle event started.
- Returns:
- A timestamp indicating when the deployment lifecycle event started.
-
withStartTime
public LifecycleEvent withStartTime(Date startTime)
A timestamp indicating when the deployment lifecycle event started.
- Parameters:
startTime- A timestamp indicating when the deployment lifecycle event started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndTime
public void setEndTime(Date endTime)
A timestamp indicating when the deployment lifecycle event ended.
- Parameters:
endTime- A timestamp indicating when the deployment lifecycle event ended.
-
getEndTime
public Date getEndTime()
A timestamp indicating when the deployment lifecycle event ended.
- Returns:
- A timestamp indicating when the deployment lifecycle event ended.
-
withEndTime
public LifecycleEvent withEndTime(Date endTime)
A timestamp indicating when the deployment lifecycle event ended.
- Parameters:
endTime- A timestamp indicating when the deployment lifecycle event ended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The deployment lifecycle event status:
- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- Parameters:
status- The deployment lifecycle event status:- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- See Also:
LifecycleEventStatus
-
getStatus
public String getStatus()
The deployment lifecycle event status:
- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- Returns:
- The deployment lifecycle event status:
- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- See Also:
LifecycleEventStatus
-
withStatus
public LifecycleEvent withStatus(String status)
The deployment lifecycle event status:
- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- Parameters:
status- The deployment lifecycle event status:- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LifecycleEventStatus
-
setStatus
public void setStatus(LifecycleEventStatus status)
The deployment lifecycle event status:
- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- Parameters:
status- The deployment lifecycle event status:- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- See Also:
LifecycleEventStatus
-
withStatus
public LifecycleEvent withStatus(LifecycleEventStatus status)
The deployment lifecycle event status:
- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- Parameters:
status- The deployment lifecycle event status:- Pending: The deployment lifecycle event is pending.
- InProgress: The deployment lifecycle event is in progress.
- Succeeded: The deployment lifecycle event ran successfully.
- Failed: The deployment lifecycle event has failed.
- Skipped: The deployment lifecycle event has been skipped.
- Unknown: The deployment lifecycle event is unknown.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LifecycleEventStatus
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LifecycleEvent clone()
-
-