/* * 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.codebuild.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about a stage for a batch build. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BuildBatchPhase implements Serializable, Cloneable, StructuredPojo { /** ** The name of the batch build phase. Valid values include: *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** The current status of the batch build phase. Valid values include: *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** When the batch build phase started, expressed in Unix time format. *
*/ private java.util.Date startTime; /** ** When the batch build phase ended, expressed in Unix time format. *
*/ private java.util.Date endTime; /** ** How long, in seconds, between the starting and ending times of the batch build's phase. *
*/ private Long durationInSeconds; /** ** Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. *
*/ private java.util.List* The name of the batch build phase. Valid values include: *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** The name of the batch build phase. Valid values include: *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** The name of the batch build phase. Valid values include: *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** The name of the batch build phase. Valid values include: *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** Build output artifacts are being combined and uploaded to the output location. *
** The batch build specification is being downloaded. *
** One or more of the builds failed. *
** The batch build is in progress. *
** The batch build was stopped. *
** The btach build has been submitted. *
** The batch build succeeded. *
** The current status of the batch build phase. Valid values include: *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** The current status of the batch build phase. Valid values include: *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** The current status of the batch build phase. Valid values include: *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** The current status of the batch build phase. Valid values include: *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** The build phase failed. *
** The build phase faulted. *
** The build phase is still in progress. *
** The build phase stopped. *
** The build phase succeeded. *
** The build phase timed out. *
** When the batch build phase started, expressed in Unix time format. *
* * @param startTime * When the batch build phase started, expressed in Unix time format. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** When the batch build phase started, expressed in Unix time format. *
* * @return When the batch build phase started, expressed in Unix time format. */ public java.util.Date getStartTime() { return this.startTime; } /** ** When the batch build phase started, expressed in Unix time format. *
* * @param startTime * When the batch build phase started, expressed in Unix time format. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildBatchPhase withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** When the batch build phase ended, expressed in Unix time format. *
* * @param endTime * When the batch build phase ended, expressed in Unix time format. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** When the batch build phase ended, expressed in Unix time format. *
* * @return When the batch build phase ended, expressed in Unix time format. */ public java.util.Date getEndTime() { return this.endTime; } /** ** When the batch build phase ended, expressed in Unix time format. *
* * @param endTime * When the batch build phase ended, expressed in Unix time format. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildBatchPhase withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** ** How long, in seconds, between the starting and ending times of the batch build's phase. *
* * @param durationInSeconds * How long, in seconds, between the starting and ending times of the batch build's phase. */ public void setDurationInSeconds(Long durationInSeconds) { this.durationInSeconds = durationInSeconds; } /** ** How long, in seconds, between the starting and ending times of the batch build's phase. *
* * @return How long, in seconds, between the starting and ending times of the batch build's phase. */ public Long getDurationInSeconds() { return this.durationInSeconds; } /** ** How long, in seconds, between the starting and ending times of the batch build's phase. *
* * @param durationInSeconds * How long, in seconds, between the starting and ending times of the batch build's phase. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildBatchPhase withDurationInSeconds(Long durationInSeconds) { setDurationInSeconds(durationInSeconds); return this; } /** ** Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. *
* * @return Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. */ public java.util.List* Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. *
* * @param contexts * Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. */ public void setContexts(java.util.Collection* Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContexts(java.util.Collection)} or {@link #withContexts(java.util.Collection)} if you want to override * the existing values. *
* * @param contexts * Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildBatchPhase withContexts(PhaseContext... contexts) { if (this.contexts == null) { setContexts(new java.util.ArrayList* Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. *
* * @param contexts * Additional information about the batch build phase. Especially to help troubleshoot a failed batch build. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildBatchPhase withContexts(java.util.Collection