/* * 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 configuration information about a batch build project. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProjectBuildBatchConfig implements Serializable, Cloneable, StructuredPojo { /** ** Specifies the service role ARN for the batch build project. *
*/ private String serviceRole; /** ** Specifies if the build artifacts for the batch build should be combined into a single artifact location. *
*/ private Boolean combineArtifacts; /** *
* A BatchRestrictions
object that specifies the restrictions for the batch build.
*
* Specifies the maximum amount of time, in minutes, that the batch build must be completed in. *
*/ private Integer timeoutInMins; /** ** Specifies how build status reports are sent to the source provider for the batch build. This property is only * used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is * configured to report build statuses to the source provider. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
** Specifies the service role ARN for the batch build project. *
* * @param serviceRole * Specifies the service role ARN for the batch build project. */ public void setServiceRole(String serviceRole) { this.serviceRole = serviceRole; } /** ** Specifies the service role ARN for the batch build project. *
* * @return Specifies the service role ARN for the batch build project. */ public String getServiceRole() { return this.serviceRole; } /** ** Specifies the service role ARN for the batch build project. *
* * @param serviceRole * Specifies the service role ARN for the batch build project. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectBuildBatchConfig withServiceRole(String serviceRole) { setServiceRole(serviceRole); return this; } /** ** Specifies if the build artifacts for the batch build should be combined into a single artifact location. *
* * @param combineArtifacts * Specifies if the build artifacts for the batch build should be combined into a single artifact location. */ public void setCombineArtifacts(Boolean combineArtifacts) { this.combineArtifacts = combineArtifacts; } /** ** Specifies if the build artifacts for the batch build should be combined into a single artifact location. *
* * @return Specifies if the build artifacts for the batch build should be combined into a single artifact location. */ public Boolean getCombineArtifacts() { return this.combineArtifacts; } /** ** Specifies if the build artifacts for the batch build should be combined into a single artifact location. *
* * @param combineArtifacts * Specifies if the build artifacts for the batch build should be combined into a single artifact location. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectBuildBatchConfig withCombineArtifacts(Boolean combineArtifacts) { setCombineArtifacts(combineArtifacts); return this; } /** ** Specifies if the build artifacts for the batch build should be combined into a single artifact location. *
* * @return Specifies if the build artifacts for the batch build should be combined into a single artifact location. */ public Boolean isCombineArtifacts() { return this.combineArtifacts; } /** *
* A BatchRestrictions
object that specifies the restrictions for the batch build.
*
BatchRestrictions
object that specifies the restrictions for the batch build.
*/
public void setRestrictions(BatchRestrictions restrictions) {
this.restrictions = restrictions;
}
/**
*
* A BatchRestrictions
object that specifies the restrictions for the batch build.
*
BatchRestrictions
object that specifies the restrictions for the batch build.
*/
public BatchRestrictions getRestrictions() {
return this.restrictions;
}
/**
*
* A BatchRestrictions
object that specifies the restrictions for the batch build.
*
BatchRestrictions
object that specifies the restrictions for the batch build.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProjectBuildBatchConfig withRestrictions(BatchRestrictions restrictions) {
setRestrictions(restrictions);
return this;
}
/**
* * Specifies the maximum amount of time, in minutes, that the batch build must be completed in. *
* * @param timeoutInMins * Specifies the maximum amount of time, in minutes, that the batch build must be completed in. */ public void setTimeoutInMins(Integer timeoutInMins) { this.timeoutInMins = timeoutInMins; } /** ** Specifies the maximum amount of time, in minutes, that the batch build must be completed in. *
* * @return Specifies the maximum amount of time, in minutes, that the batch build must be completed in. */ public Integer getTimeoutInMins() { return this.timeoutInMins; } /** ** Specifies the maximum amount of time, in minutes, that the batch build must be completed in. *
* * @param timeoutInMins * Specifies the maximum amount of time, in minutes, that the batch build must be completed in. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectBuildBatchConfig withTimeoutInMins(Integer timeoutInMins) { setTimeoutInMins(timeoutInMins); return this; } /** ** Specifies how build status reports are sent to the source provider for the batch build. This property is only * used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is * configured to report build statuses to the source provider. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
** Specifies how build status reports are sent to the source provider for the batch build. This property is only * used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is * configured to report build statuses to the source provider. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
** Specifies how build status reports are sent to the source provider for the batch build. This property is only * used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is * configured to report build statuses to the source provider. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
** Specifies how build status reports are sent to the source provider for the batch build. This property is only * used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is * configured to report build statuses to the source provider. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
** (Default) Aggregate all of the build statuses into a single status report. *
** Send a separate status report for each individual build. *
*