/* * 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 batch build build group. Build groups are used to combine builds that can run in * parallel, while still being able to set dependencies on other build groups. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BuildGroup implements Serializable, Cloneable, StructuredPojo { /** ** Contains the identifier of the build group. *
*/ private String identifier; /** ** An array of strings that contain the identifiers of the build groups that this build group depends on. *
*/ private java.util.List* Specifies if failures in this build group can be ignored. *
*/ private Boolean ignoreFailure; /** *
* A BuildSummary
object that contains a summary of the current build group.
*
* An array of BuildSummary
objects that contain summaries of previous build groups.
*
* Contains the identifier of the build group. *
* * @param identifier * Contains the identifier of the build group. */ public void setIdentifier(String identifier) { this.identifier = identifier; } /** ** Contains the identifier of the build group. *
* * @return Contains the identifier of the build group. */ public String getIdentifier() { return this.identifier; } /** ** Contains the identifier of the build group. *
* * @param identifier * Contains the identifier of the build group. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildGroup withIdentifier(String identifier) { setIdentifier(identifier); return this; } /** ** An array of strings that contain the identifiers of the build groups that this build group depends on. *
* * @return An array of strings that contain the identifiers of the build groups that this build group depends on. */ public java.util.List* An array of strings that contain the identifiers of the build groups that this build group depends on. *
* * @param dependsOn * An array of strings that contain the identifiers of the build groups that this build group depends on. */ public void setDependsOn(java.util.Collection* An array of strings that contain the identifiers of the build groups that this build group depends on. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDependsOn(java.util.Collection)} or {@link #withDependsOn(java.util.Collection)} if you want to * override the existing values. *
* * @param dependsOn * An array of strings that contain the identifiers of the build groups that this build group depends on. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildGroup withDependsOn(String... dependsOn) { if (this.dependsOn == null) { setDependsOn(new java.util.ArrayList* An array of strings that contain the identifiers of the build groups that this build group depends on. *
* * @param dependsOn * An array of strings that contain the identifiers of the build groups that this build group depends on. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildGroup withDependsOn(java.util.Collection* Specifies if failures in this build group can be ignored. *
* * @param ignoreFailure * Specifies if failures in this build group can be ignored. */ public void setIgnoreFailure(Boolean ignoreFailure) { this.ignoreFailure = ignoreFailure; } /** ** Specifies if failures in this build group can be ignored. *
* * @return Specifies if failures in this build group can be ignored. */ public Boolean getIgnoreFailure() { return this.ignoreFailure; } /** ** Specifies if failures in this build group can be ignored. *
* * @param ignoreFailure * Specifies if failures in this build group can be ignored. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildGroup withIgnoreFailure(Boolean ignoreFailure) { setIgnoreFailure(ignoreFailure); return this; } /** ** Specifies if failures in this build group can be ignored. *
* * @return Specifies if failures in this build group can be ignored. */ public Boolean isIgnoreFailure() { return this.ignoreFailure; } /** *
* A BuildSummary
object that contains a summary of the current build group.
*
BuildSummary
object that contains a summary of the current build group.
*/
public void setCurrentBuildSummary(BuildSummary currentBuildSummary) {
this.currentBuildSummary = currentBuildSummary;
}
/**
*
* A BuildSummary
object that contains a summary of the current build group.
*
BuildSummary
object that contains a summary of the current build group.
*/
public BuildSummary getCurrentBuildSummary() {
return this.currentBuildSummary;
}
/**
*
* A BuildSummary
object that contains a summary of the current build group.
*
BuildSummary
object that contains a summary of the current build group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BuildGroup withCurrentBuildSummary(BuildSummary currentBuildSummary) {
setCurrentBuildSummary(currentBuildSummary);
return this;
}
/**
*
* An array of BuildSummary
objects that contain summaries of previous build groups.
*
BuildSummary
objects that contain summaries of previous build groups.
*/
public java.util.List
* An array of BuildSummary
objects that contain summaries of previous build groups.
*
BuildSummary
objects that contain summaries of previous build groups.
*/
public void setPriorBuildSummaryList(java.util.Collection
* An array of BuildSummary
objects that contain summaries of previous build groups.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPriorBuildSummaryList(java.util.Collection)} or * {@link #withPriorBuildSummaryList(java.util.Collection)} if you want to override the existing values. *
* * @param priorBuildSummaryList * An array ofBuildSummary
objects that contain summaries of previous build groups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BuildGroup withPriorBuildSummaryList(BuildSummary... priorBuildSummaryList) {
if (this.priorBuildSummaryList == null) {
setPriorBuildSummaryList(new java.util.ArrayList
* An array of BuildSummary
objects that contain summaries of previous build groups.
*
BuildSummary
objects that contain summaries of previous build groups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BuildGroup withPriorBuildSummaryList(java.util.Collection