/* * 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; /** *
* Information about the build output artifacts for the build project. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProjectArtifacts implements Serializable, Cloneable, StructuredPojo { /** ** The type of build output artifact. Valid values include: *
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* Information about the build output artifact location: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output locations instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the name of the output bucket.
*
* Along with namespaceType
and name
, the pattern that CodeBuild uses to name and store
* the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the path to the output artifact. If path
is
* not specified, path
is not used.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* NONE
, and name
is set to MyArtifact.zip
, the output artifact is stored in
* the output bucket at MyArtifacts/MyArtifact.zip
.
*
* Along with path
and name
, the pattern that CodeBuild uses to determine the name and
* location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is stored
* in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
* Along with path
and namespaceType
, the pattern that CodeBuild uses to name and store
* the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the name of the output artifact object. If you set the
* name to be a forward slash ("/"), the artifact is stored in the root of the output bucket.
*
* For example: *
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, then the output artifact is
* stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
* If path
is empty, namespaceType
is set to NONE
, and name
is
* set to "/
", the output artifact is stored in the root of the output bucket.
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to "/
", the output artifact is stored in
* MyArtifacts/<build-ID>
.
*
* The type of build output artifact to create: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is the
* default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a * buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a * date and time to your artifact name so that it is always unique. *
*/ private Boolean overrideArtifactName; /** ** Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type * is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown. *
*/ private Boolean encryptionDisabled; /** ** An identifier for this artifact definition. *
*/ private String artifactIdentifier; private String bucketOwnerAccess; /** ** The type of build output artifact. Valid values include: *
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* The type of build output artifact. Valid values include: *
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* The type of build output artifact. Valid values include: *
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* The type of build output artifact. Valid values include: *
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* The type of build output artifact. Valid values include: *
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* CODEPIPELINE
: The build project has build output generated through CodePipeline.
*
* The CODEPIPELINE
type is not supported for secondaryArtifacts
.
*
* NO_ARTIFACTS
: The build project does not produce any build output.
*
* S3
: The build project stores build output in Amazon S3.
*
* Information about the build output artifact location: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output locations instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the name of the output bucket.
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output locations instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the name of the output bucket.
*
* Information about the build output artifact location: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output locations instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the name of the output bucket.
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output locations instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the name of the output bucket.
*
* Information about the build output artifact location: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output locations instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the name of the output bucket.
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output locations instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the name of the output bucket.
*
* Along with namespaceType
and name
, the pattern that CodeBuild uses to name and store
* the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the path to the output artifact. If path
is
* not specified, path
is not used.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* NONE
, and name
is set to MyArtifact.zip
, the output artifact is stored in
* the output bucket at MyArtifacts/MyArtifact.zip
.
*
namespaceType
and name
, the pattern that CodeBuild uses to name and
* store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the path to the output artifact. If
* path
is not specified, path
is not used.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* NONE
, and name
is set to MyArtifact.zip
, the output artifact is
* stored in the output bucket at MyArtifacts/MyArtifact.zip
.
*/
public void setPath(String path) {
this.path = path;
}
/**
*
* Along with namespaceType
and name
, the pattern that CodeBuild uses to name and store
* the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the path to the output artifact. If path
is
* not specified, path
is not used.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* NONE
, and name
is set to MyArtifact.zip
, the output artifact is stored in
* the output bucket at MyArtifacts/MyArtifact.zip
.
*
namespaceType
and name
, the pattern that CodeBuild uses to name and
* store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the path to the output artifact. If
* path
is not specified, path
is not used.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set
* to NONE
, and name
is set to MyArtifact.zip
, the output artifact is
* stored in the output bucket at MyArtifacts/MyArtifact.zip
.
*/
public String getPath() {
return this.path;
}
/**
*
* Along with namespaceType
and name
, the pattern that CodeBuild uses to name and store
* the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the path to the output artifact. If path
is
* not specified, path
is not used.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* NONE
, and name
is set to MyArtifact.zip
, the output artifact is stored in
* the output bucket at MyArtifacts/MyArtifact.zip
.
*
namespaceType
and name
, the pattern that CodeBuild uses to name and
* store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the path to the output artifact. If
* path
is not specified, path
is not used.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* NONE
, and name
is set to MyArtifact.zip
, the output artifact is
* stored in the output bucket at MyArtifacts/MyArtifact.zip
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProjectArtifacts withPath(String path) {
setPath(path);
return this;
}
/**
*
* Along with path
and name
, the pattern that CodeBuild uses to determine the name and
* location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is stored
* in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
path
and name
, the pattern that CodeBuild uses to determine the name
* and location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is
* stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
* @see ArtifactNamespace
*/
public void setNamespaceType(String namespaceType) {
this.namespaceType = namespaceType;
}
/**
*
* Along with path
and name
, the pattern that CodeBuild uses to determine the name and
* location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is stored
* in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
path
and name
, the pattern that CodeBuild uses to determine the name
* and location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set
* to BUILD_ID
, and name
is set to MyArtifact.zip
, the output
* artifact is stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
* @see ArtifactNamespace
*/
public String getNamespaceType() {
return this.namespaceType;
}
/**
*
* Along with path
and name
, the pattern that CodeBuild uses to determine the name and
* location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is stored
* in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
path
and name
, the pattern that CodeBuild uses to determine the name
* and location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is
* stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ArtifactNamespace
*/
public ProjectArtifacts withNamespaceType(String namespaceType) {
setNamespaceType(namespaceType);
return this;
}
/**
*
* Along with path
and name
, the pattern that CodeBuild uses to determine the name and
* location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is stored
* in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
path
and name
, the pattern that CodeBuild uses to determine the name
* and location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is
* stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
* @see ArtifactNamespace
*/
public void setNamespaceType(ArtifactNamespace namespaceType) {
withNamespaceType(namespaceType);
}
/**
*
* Along with path
and name
, the pattern that CodeBuild uses to determine the name and
* location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is stored
* in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
path
and name
, the pattern that CodeBuild uses to determine the name
* and location to store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* BUILD_ID
: Include the build ID in the location of the build output artifact.
*
* NONE
: Do not include the build ID. This is the default if namespaceType
is not
* specified.
*
* For example, if path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, the output artifact is
* stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ArtifactNamespace
*/
public ProjectArtifacts withNamespaceType(ArtifactNamespace namespaceType) {
this.namespaceType = namespaceType.toString();
return this;
}
/**
*
* Along with path
and namespaceType
, the pattern that CodeBuild uses to name and store
* the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the name of the output artifact object. If you set the
* name to be a forward slash ("/"), the artifact is stored in the root of the output bucket.
*
* For example: *
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, then the output artifact is
* stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
* If path
is empty, namespaceType
is set to NONE
, and name
is
* set to "/
", the output artifact is stored in the root of the output bucket.
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to "/
", the output artifact is stored in
* MyArtifacts/<build-ID>
.
*
path
and namespaceType
, the pattern that CodeBuild uses to name and
* store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the name of the output artifact object. If you set
* the name to be a forward slash ("/"), the artifact is stored in the root of the output bucket.
*
* For example: *
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, then the output
* artifact is stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
* If path
is empty, namespaceType
is set to NONE
, and
* name
is set to "/
", the output artifact is stored in the root of the output
* bucket.
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to "/
", the output artifact is stored in
* MyArtifacts/<build-ID>
.
*
* Along with path
and namespaceType
, the pattern that CodeBuild uses to name and store
* the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the name of the output artifact object. If you set the
* name to be a forward slash ("/"), the artifact is stored in the root of the output bucket.
*
* For example: *
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, then the output artifact is
* stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
* If path
is empty, namespaceType
is set to NONE
, and name
is
* set to "/
", the output artifact is stored in the root of the output bucket.
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to "/
", the output artifact is stored in
* MyArtifacts/<build-ID>
.
*
path
and namespaceType
, the pattern that CodeBuild uses to name and
* store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the name of the output artifact object. If you
* set the name to be a forward slash ("/"), the artifact is stored in the root of the output bucket.
*
* For example: *
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, then the output
* artifact is stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
* If path
is empty, namespaceType
is set to NONE
, and
* name
is set to "/
", the output artifact is stored in the root of the output
* bucket.
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to "/
", the output artifact is stored in
* MyArtifacts/<build-ID>
.
*
* Along with path
and namespaceType
, the pattern that CodeBuild uses to name and store
* the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, this is the name of the output artifact object. If you set the
* name to be a forward slash ("/"), the artifact is stored in the root of the output bucket.
*
* For example: *
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, then the output artifact is
* stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
* If path
is empty, namespaceType
is set to NONE
, and name
is
* set to "/
", the output artifact is stored in the root of the output bucket.
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to "/
", the output artifact is stored in
* MyArtifacts/<build-ID>
.
*
path
and namespaceType
, the pattern that CodeBuild uses to name and
* store the output artifact:
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output names instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, this is the name of the output artifact object. If you set
* the name to be a forward slash ("/"), the artifact is stored in the root of the output bucket.
*
* For example: *
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to MyArtifact.zip
, then the output
* artifact is stored in MyArtifacts/<build-ID>/MyArtifact.zip
.
*
* If path
is empty, namespaceType
is set to NONE
, and
* name
is set to "/
", the output artifact is stored in the root of the output
* bucket.
*
* If path
is set to MyArtifacts
, namespaceType
is set to
* BUILD_ID
, and name
is set to "/
", the output artifact is stored in
* MyArtifacts/<build-ID>
.
*
* The type of build output artifact to create: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is the
* default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is
* the default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* The type of build output artifact to create: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is the
* default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This
* is the default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* The type of build output artifact to create: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is the
* default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is
* the default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* The type of build output artifact to create: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is the
* default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is
* the default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* The type of build output artifact to create: *
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified. This is
* because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no build
* output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is the
* default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* If type
is set to CODEPIPELINE
, CodePipeline ignores this value if specified.
* This is because CodePipeline manages its build output artifacts instead of CodeBuild.
*
* If type
is set to NO_ARTIFACTS
, this value is ignored if specified, because no
* build output is produced.
*
* If type
is set to S3
, valid values include:
*
* NONE
: CodeBuild creates in the output bucket a folder that contains the build output. This is
* the default if packaging
is not specified.
*
* ZIP
: CodeBuild creates in the output bucket a ZIP file that contains the build output.
*
* If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a * buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a * date and time to your artifact name so that it is always unique. *
* * @param overrideArtifactName * If this flag is set, a name specified in the buildspec file overrides the artifact name. The name * specified in a buildspec file is calculated at build time and uses the Shell Command Language. For * example, you can append a date and time to your artifact name so that it is always unique. */ public void setOverrideArtifactName(Boolean overrideArtifactName) { this.overrideArtifactName = overrideArtifactName; } /** ** If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a * buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a * date and time to your artifact name so that it is always unique. *
* * @return If this flag is set, a name specified in the buildspec file overrides the artifact name. The name * specified in a buildspec file is calculated at build time and uses the Shell Command Language. For * example, you can append a date and time to your artifact name so that it is always unique. */ public Boolean getOverrideArtifactName() { return this.overrideArtifactName; } /** ** If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a * buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a * date and time to your artifact name so that it is always unique. *
* * @param overrideArtifactName * If this flag is set, a name specified in the buildspec file overrides the artifact name. The name * specified in a buildspec file is calculated at build time and uses the Shell Command Language. For * example, you can append a date and time to your artifact name so that it is always unique. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectArtifacts withOverrideArtifactName(Boolean overrideArtifactName) { setOverrideArtifactName(overrideArtifactName); return this; } /** ** If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a * buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a * date and time to your artifact name so that it is always unique. *
* * @return If this flag is set, a name specified in the buildspec file overrides the artifact name. The name * specified in a buildspec file is calculated at build time and uses the Shell Command Language. For * example, you can append a date and time to your artifact name so that it is always unique. */ public Boolean isOverrideArtifactName() { return this.overrideArtifactName; } /** ** Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type * is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown. *
* * @param encryptionDisabled * Set to true if you do not want your output artifacts encrypted. This option is valid only if your * artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException is * thrown. */ public void setEncryptionDisabled(Boolean encryptionDisabled) { this.encryptionDisabled = encryptionDisabled; } /** ** Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type * is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown. *
* * @return Set to true if you do not want your output artifacts encrypted. This option is valid only if your * artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException is * thrown. */ public Boolean getEncryptionDisabled() { return this.encryptionDisabled; } /** ** Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type * is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown. *
* * @param encryptionDisabled * Set to true if you do not want your output artifacts encrypted. This option is valid only if your * artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException is * thrown. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectArtifacts withEncryptionDisabled(Boolean encryptionDisabled) { setEncryptionDisabled(encryptionDisabled); return this; } /** ** Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type * is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown. *
* * @return Set to true if you do not want your output artifacts encrypted. This option is valid only if your * artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException is * thrown. */ public Boolean isEncryptionDisabled() { return this.encryptionDisabled; } /** ** An identifier for this artifact definition. *
* * @param artifactIdentifier * An identifier for this artifact definition. */ public void setArtifactIdentifier(String artifactIdentifier) { this.artifactIdentifier = artifactIdentifier; } /** ** An identifier for this artifact definition. *
* * @return An identifier for this artifact definition. */ public String getArtifactIdentifier() { return this.artifactIdentifier; } /** ** An identifier for this artifact definition. *
* * @param artifactIdentifier * An identifier for this artifact definition. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectArtifacts withArtifactIdentifier(String artifactIdentifier) { setArtifactIdentifier(artifactIdentifier); return this; } /** * @param bucketOwnerAccess * @see BucketOwnerAccess */ public void setBucketOwnerAccess(String bucketOwnerAccess) { this.bucketOwnerAccess = bucketOwnerAccess; } /** * @return * @see BucketOwnerAccess */ public String getBucketOwnerAccess() { return this.bucketOwnerAccess; } /** * @param bucketOwnerAccess * @return Returns a reference to this object so that method calls can be chained together. * @see BucketOwnerAccess */ public ProjectArtifacts withBucketOwnerAccess(String bucketOwnerAccess) { setBucketOwnerAccess(bucketOwnerAccess); return this; } /** * @param bucketOwnerAccess * @see BucketOwnerAccess */ public void setBucketOwnerAccess(BucketOwnerAccess bucketOwnerAccess) { withBucketOwnerAccess(bucketOwnerAccess); } /** * @param bucketOwnerAccess * @return Returns a reference to this object so that method calls can be chained together. * @see BucketOwnerAccess */ public ProjectArtifacts withBucketOwnerAccess(BucketOwnerAccess bucketOwnerAccess) { this.bucketOwnerAccess = bucketOwnerAccess.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getLocation() != null) sb.append("Location: ").append(getLocation()).append(","); if (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getNamespaceType() != null) sb.append("NamespaceType: ").append(getNamespaceType()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getPackaging() != null) sb.append("Packaging: ").append(getPackaging()).append(","); if (getOverrideArtifactName() != null) sb.append("OverrideArtifactName: ").append(getOverrideArtifactName()).append(","); if (getEncryptionDisabled() != null) sb.append("EncryptionDisabled: ").append(getEncryptionDisabled()).append(","); if (getArtifactIdentifier() != null) sb.append("ArtifactIdentifier: ").append(getArtifactIdentifier()).append(","); if (getBucketOwnerAccess() != null) sb.append("BucketOwnerAccess: ").append(getBucketOwnerAccess()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProjectArtifacts == false) return false; ProjectArtifacts other = (ProjectArtifacts) obj; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getLocation() == null ^ this.getLocation() == null) return false; if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false) return false; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getNamespaceType() == null ^ this.getNamespaceType() == null) return false; if (other.getNamespaceType() != null && other.getNamespaceType().equals(this.getNamespaceType()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getPackaging() == null ^ this.getPackaging() == null) return false; if (other.getPackaging() != null && other.getPackaging().equals(this.getPackaging()) == false) return false; if (other.getOverrideArtifactName() == null ^ this.getOverrideArtifactName() == null) return false; if (other.getOverrideArtifactName() != null && other.getOverrideArtifactName().equals(this.getOverrideArtifactName()) == false) return false; if (other.getEncryptionDisabled() == null ^ this.getEncryptionDisabled() == null) return false; if (other.getEncryptionDisabled() != null && other.getEncryptionDisabled().equals(this.getEncryptionDisabled()) == false) return false; if (other.getArtifactIdentifier() == null ^ this.getArtifactIdentifier() == null) return false; if (other.getArtifactIdentifier() != null && other.getArtifactIdentifier().equals(this.getArtifactIdentifier()) == false) return false; if (other.getBucketOwnerAccess() == null ^ this.getBucketOwnerAccess() == null) return false; if (other.getBucketOwnerAccess() != null && other.getBucketOwnerAccess().equals(this.getBucketOwnerAccess()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getNamespaceType() == null) ? 0 : getNamespaceType().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getPackaging() == null) ? 0 : getPackaging().hashCode()); hashCode = prime * hashCode + ((getOverrideArtifactName() == null) ? 0 : getOverrideArtifactName().hashCode()); hashCode = prime * hashCode + ((getEncryptionDisabled() == null) ? 0 : getEncryptionDisabled().hashCode()); hashCode = prime * hashCode + ((getArtifactIdentifier() == null) ? 0 : getArtifactIdentifier().hashCode()); hashCode = prime * hashCode + ((getBucketOwnerAccess() == null) ? 0 : getBucketOwnerAccess().hashCode()); return hashCode; } @Override public ProjectArtifacts clone() { try { return (ProjectArtifacts) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.codebuild.model.transform.ProjectArtifactsMarshaller.getInstance().marshall(this, protocolMarshaller); } }