/* * 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.elasticbeanstalk.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Settings for an AWS CodeBuild build. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BuildConfiguration implements Serializable, Cloneable { /** *

* The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact in the * S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label-artifact * -name.zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip. *

*/ private String artifactName; /** *

* The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to * interact with dependent AWS services on behalf of the AWS account. *

*/ private String codeBuildServiceRole; /** *

* Information about the compute resources the build project will use. *

* */ private String computeType; /** *

* The ID of the Docker image to use for this build project. *

*/ private String image; /** *

* How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that * does not get marked as completed. The default is 60 minutes. *

*/ private Integer timeoutInMinutes; /** *

* The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact in the * S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label-artifact * -name.zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip. *

* * @param artifactName * The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact * in the S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label< * /i>-artifact-name.zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 * location S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip. */ public void setArtifactName(String artifactName) { this.artifactName = artifactName; } /** *

* The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact in the * S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label-artifact * -name.zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip. *

* * @return The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact * in the S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label * -artifact-name.zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 * location S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip. */ public String getArtifactName() { return this.artifactName; } /** *

* The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact in the * S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label-artifact * -name.zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip. *

* * @param artifactName * The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact * in the S3 location * S3-bucket/resources/application-name/codebuild/codebuild-version-label< * /i>-artifact-name.zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 * location S3-bucket/resources/application-name/codebuild/codebuild-version-label.zip. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildConfiguration withArtifactName(String artifactName) { setArtifactName(artifactName); return this; } /** *

* The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to * interact with dependent AWS services on behalf of the AWS account. *

* * @param codeBuildServiceRole * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS account. */ public void setCodeBuildServiceRole(String codeBuildServiceRole) { this.codeBuildServiceRole = codeBuildServiceRole; } /** *

* The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to * interact with dependent AWS services on behalf of the AWS account. *

* * @return The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS account. */ public String getCodeBuildServiceRole() { return this.codeBuildServiceRole; } /** *

* The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to * interact with dependent AWS services on behalf of the AWS account. *

* * @param codeBuildServiceRole * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public BuildConfiguration withCodeBuildServiceRole(String codeBuildServiceRole) { setCodeBuildServiceRole(codeBuildServiceRole); return this; } /** *

* Information about the compute resources the build project will use. *

* * * @param computeType * Information about the compute resources the build project will use.

*