/* * 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 summary information about a batch build group. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BuildSummary implements Serializable, Cloneable, StructuredPojo { /** ** The batch build ARN. *
*/ private String arn; /** ** When the build was started, expressed in Unix time format. *
*/ private java.util.Date requestedOn; /** ** The status of the build group. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
*
* A ResolvedArtifact
object that represents the primary build artifacts for the build group.
*
* An array of ResolvedArtifact
objects that represents the secondary build artifacts for the build
* group.
*
* The batch build ARN. *
* * @param arn * The batch build ARN. */ public void setArn(String arn) { this.arn = arn; } /** ** The batch build ARN. *
* * @return The batch build ARN. */ public String getArn() { return this.arn; } /** ** The batch build ARN. *
* * @param arn * The batch build ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildSummary withArn(String arn) { setArn(arn); return this; } /** ** When the build was started, expressed in Unix time format. *
* * @param requestedOn * When the build was started, expressed in Unix time format. */ public void setRequestedOn(java.util.Date requestedOn) { this.requestedOn = requestedOn; } /** ** When the build was started, expressed in Unix time format. *
* * @return When the build was started, expressed in Unix time format. */ public java.util.Date getRequestedOn() { return this.requestedOn; } /** ** When the build was started, expressed in Unix time format. *
* * @param requestedOn * When the build was started, expressed in Unix time format. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildSummary withRequestedOn(java.util.Date requestedOn) { setRequestedOn(requestedOn); return this; } /** ** The status of the build group. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
** The status of the build group. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
** The status of the build group. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
** The status of the build group. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
** The build group failed. *
** The build group faulted. *
** The build group is still in progress. *
** The build group stopped. *
** The build group succeeded. *
** The build group timed out. *
*
* A ResolvedArtifact
object that represents the primary build artifacts for the build group.
*
ResolvedArtifact
object that represents the primary build artifacts for the build group.
*/
public void setPrimaryArtifact(ResolvedArtifact primaryArtifact) {
this.primaryArtifact = primaryArtifact;
}
/**
*
* A ResolvedArtifact
object that represents the primary build artifacts for the build group.
*
ResolvedArtifact
object that represents the primary build artifacts for the build group.
*/
public ResolvedArtifact getPrimaryArtifact() {
return this.primaryArtifact;
}
/**
*
* A ResolvedArtifact
object that represents the primary build artifacts for the build group.
*
ResolvedArtifact
object that represents the primary build artifacts for the build group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BuildSummary withPrimaryArtifact(ResolvedArtifact primaryArtifact) {
setPrimaryArtifact(primaryArtifact);
return this;
}
/**
*
* An array of ResolvedArtifact
objects that represents the secondary build artifacts for the build
* group.
*
ResolvedArtifact
objects that represents the secondary build artifacts for the
* build group.
*/
public java.util.List
* An array of ResolvedArtifact
objects that represents the secondary build artifacts for the build
* group.
*
ResolvedArtifact
objects that represents the secondary build artifacts for the
* build group.
*/
public void setSecondaryArtifacts(java.util.Collection
* An array of ResolvedArtifact
objects that represents the secondary build artifacts for the build
* group.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecondaryArtifacts(java.util.Collection)} or {@link #withSecondaryArtifacts(java.util.Collection)} if * you want to override the existing values. *
* * @param secondaryArtifacts * An array ofResolvedArtifact
objects that represents the secondary build artifacts for the
* build group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BuildSummary withSecondaryArtifacts(ResolvedArtifact... secondaryArtifacts) {
if (this.secondaryArtifacts == null) {
setSecondaryArtifacts(new java.util.ArrayList
* An array of ResolvedArtifact
objects that represents the secondary build artifacts for the build
* group.
*
ResolvedArtifact
objects that represents the secondary build artifacts for the
* build group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BuildSummary withSecondaryArtifacts(java.util.Collection