/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codedeploy.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a deployment lifecycle event. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LifecycleEvent implements Serializable, Cloneable, StructuredPojo { /** *
* The deployment lifecycle event name, such as ApplicationStop
, BeforeInstall
,
* AfterInstall
, ApplicationStart
, or ValidateService
.
*
* Diagnostic information about the deployment lifecycle event. *
*/ private Diagnostics diagnostics; /** ** A timestamp that indicates when the deployment lifecycle event started. *
*/ private java.util.Date startTime; /** ** A timestamp that indicates when the deployment lifecycle event ended. *
*/ private java.util.Date endTime; /** ** 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. *
*
* The deployment lifecycle event name, such as ApplicationStop
, BeforeInstall
,
* AfterInstall
, ApplicationStart
, or ValidateService
.
*
ApplicationStop
, BeforeInstall
,
* AfterInstall
, ApplicationStart
, or ValidateService
.
*/
public void setLifecycleEventName(String lifecycleEventName) {
this.lifecycleEventName = lifecycleEventName;
}
/**
*
* The deployment lifecycle event name, such as ApplicationStop
, BeforeInstall
,
* AfterInstall
, ApplicationStart
, or ValidateService
.
*
ApplicationStop
, BeforeInstall
,
* AfterInstall
, ApplicationStart
, or ValidateService
.
*/
public String getLifecycleEventName() {
return this.lifecycleEventName;
}
/**
*
* The deployment lifecycle event name, such as ApplicationStop
, BeforeInstall
,
* AfterInstall
, ApplicationStart
, or ValidateService
.
*
ApplicationStop
, BeforeInstall
,
* AfterInstall
, ApplicationStart
, or ValidateService
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LifecycleEvent withLifecycleEventName(String lifecycleEventName) {
setLifecycleEventName(lifecycleEventName);
return this;
}
/**
* * Diagnostic information about the deployment lifecycle event. *
* * @param diagnostics * Diagnostic information about the deployment lifecycle event. */ public void setDiagnostics(Diagnostics diagnostics) { this.diagnostics = diagnostics; } /** ** Diagnostic information about the deployment lifecycle event. *
* * @return Diagnostic information about the deployment lifecycle event. */ public Diagnostics getDiagnostics() { return this.diagnostics; } /** ** Diagnostic information about the deployment lifecycle event. *
* * @param diagnostics * Diagnostic information about the deployment lifecycle event. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecycleEvent withDiagnostics(Diagnostics diagnostics) { setDiagnostics(diagnostics); return this; } /** ** A timestamp that indicates when the deployment lifecycle event started. *
* * @param startTime * A timestamp that indicates when the deployment lifecycle event started. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** A timestamp that indicates when the deployment lifecycle event started. *
* * @return A timestamp that indicates when the deployment lifecycle event started. */ public java.util.Date getStartTime() { return this.startTime; } /** ** A timestamp that indicates when the deployment lifecycle event started. *
* * @param startTime * A timestamp that indicates when the deployment lifecycle event started. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecycleEvent withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** A timestamp that indicates when the deployment lifecycle event ended. *
* * @param endTime * A timestamp that indicates when the deployment lifecycle event ended. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** A timestamp that indicates when the deployment lifecycle event ended. *
* * @return A timestamp that indicates when the deployment lifecycle event ended. */ public java.util.Date getEndTime() { return this.endTime; } /** ** A timestamp that indicates when the deployment lifecycle event ended. *
* * @param endTime * A timestamp that indicates when the deployment lifecycle event ended. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecycleEvent withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** ** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
** 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. *
*