Class ProjectArtifacts
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ProjectArtifacts.Builder,ProjectArtifacts>
Information about the build output artifacts for the build project.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringAn identifier for this artifact definition.final BucketOwnerAccessReturns the value of the BucketOwnerAccess property for this object.final StringReturns the value of the BucketOwnerAccess property for this object.static ProjectArtifacts.Builderbuilder()final BooleanSet to true if you do not want your output artifacts encrypted.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringlocation()Information about the build output artifact location:final Stringname()Along withpathandnamespaceType, the pattern that CodeBuild uses to name and store the output artifact:final ArtifactNamespaceAlong withpathandname, the pattern that CodeBuild uses to determine the name and location to store the output artifact:final StringAlong withpathandname, the pattern that CodeBuild uses to determine the name and location to store the output artifact:final BooleanIf this flag is set, a name specified in the buildspec file overrides the artifact name.final ArtifactPackagingThe type of build output artifact to create:final StringThe type of build output artifact to create:final Stringpath()Along withnamespaceTypeandname, the pattern that CodeBuild uses to name and store the output artifact:static Class<? extends ProjectArtifacts.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final ArtifactsTypetype()The type of build output artifact.final StringThe type of build output artifact.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
type
The type of build output artifact. Valid values include:
-
CODEPIPELINE: The build project has build output generated through CodePipeline.The
CODEPIPELINEtype is not supported forsecondaryArtifacts. -
NO_ARTIFACTS: The build project does not produce any build output. -
S3: The build project stores build output in Amazon S3.
If the service returns an enum value that is not available in the current SDK version,
typewill returnArtifactsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of build output artifact. Valid values include:
-
CODEPIPELINE: The build project has build output generated through CodePipeline.The
CODEPIPELINEtype is not supported forsecondaryArtifacts. -
NO_ARTIFACTS: The build project does not produce any build output. -
S3: The build project stores build output in Amazon S3.
-
- See Also:
-
-
typeAsString
The type of build output artifact. Valid values include:
-
CODEPIPELINE: The build project has build output generated through CodePipeline.The
CODEPIPELINEtype is not supported forsecondaryArtifacts. -
NO_ARTIFACTS: The build project does not produce any build output. -
S3: The build project stores build output in Amazon S3.
If the service returns an enum value that is not available in the current SDK version,
typewill returnArtifactsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of build output artifact. Valid values include:
-
CODEPIPELINE: The build project has build output generated through CodePipeline.The
CODEPIPELINEtype is not supported forsecondaryArtifacts. -
NO_ARTIFACTS: The build project does not produce any build output. -
S3: The build project stores build output in Amazon S3.
-
- See Also:
-
-
location
Information about the build output artifact location:
-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output locations instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, this is the name of the output bucket.
- Returns:
- Information about the build output artifact location:
-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output locations instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, this is the name of the output bucket.
-
-
-
path
Along with
namespaceTypeandname, the pattern that CodeBuild uses to name and store the output artifact:-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, this is the path to the output artifact. Ifpathis not specified,pathis not used.
For example, if
pathis set toMyArtifacts,namespaceTypeis set toNONE, andnameis set toMyArtifact.zip, the output artifact is stored in the output bucket atMyArtifacts/MyArtifact.zip.- Returns:
- Along with
namespaceTypeandname, the pattern that CodeBuild uses to name and store the output artifact:-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, this is the path to the output artifact. Ifpathis not specified,pathis not used.
For example, if
pathis set toMyArtifacts,namespaceTypeis set toNONE, andnameis set toMyArtifact.zip, the output artifact is stored in the output bucket atMyArtifacts/MyArtifact.zip. -
-
-
namespaceType
Along with
pathandname, the pattern that CodeBuild uses to determine the name and location to store the output artifact:-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, 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 ifnamespaceTypeis not specified.
-
For example, if
pathis set toMyArtifacts,namespaceTypeis set toBUILD_ID, andnameis set toMyArtifact.zip, the output artifact is stored inMyArtifacts/<build-ID>/MyArtifact.zip.If the service returns an enum value that is not available in the current SDK version,
namespaceTypewill returnArtifactNamespace.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnamespaceTypeAsString().- Returns:
- Along with
pathandname, the pattern that CodeBuild uses to determine the name and location to store the output artifact:-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, 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 ifnamespaceTypeis not specified.
-
For example, if
pathis set toMyArtifacts,namespaceTypeis set toBUILD_ID, andnameis set toMyArtifact.zip, the output artifact is stored inMyArtifacts/<build-ID>/MyArtifact.zip. -
- See Also:
-
-
namespaceTypeAsString
Along with
pathandname, the pattern that CodeBuild uses to determine the name and location to store the output artifact:-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, 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 ifnamespaceTypeis not specified.
-
For example, if
pathis set toMyArtifacts,namespaceTypeis set toBUILD_ID, andnameis set toMyArtifact.zip, the output artifact is stored inMyArtifacts/<build-ID>/MyArtifact.zip.If the service returns an enum value that is not available in the current SDK version,
namespaceTypewill returnArtifactNamespace.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnamespaceTypeAsString().- Returns:
- Along with
pathandname, the pattern that CodeBuild uses to determine the name and location to store the output artifact:-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, 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 ifnamespaceTypeis not specified.
-
For example, if
pathis set toMyArtifacts,namespaceTypeis set toBUILD_ID, andnameis set toMyArtifact.zip, the output artifact is stored inMyArtifacts/<build-ID>/MyArtifact.zip. -
- See Also:
-
-
name
Along with
pathandnamespaceType, the pattern that CodeBuild uses to name and store the output artifact:-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, 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
pathis set toMyArtifacts,namespaceTypeis set toBUILD_ID, andnameis set toMyArtifact.zip, then the output artifact is stored inMyArtifacts/<build-ID>/MyArtifact.zip. -
If
pathis empty,namespaceTypeis set toNONE, andnameis set to "/", the output artifact is stored in the root of the output bucket. -
If
pathis set toMyArtifacts,namespaceTypeis set toBUILD_ID, andnameis set to "/", the output artifact is stored inMyArtifacts/<build-ID>.
- Returns:
- Along with
pathandnamespaceType, the pattern that CodeBuild uses to name and store the output artifact:-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, 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
pathis set toMyArtifacts,namespaceTypeis set toBUILD_ID, andnameis set toMyArtifact.zip, then the output artifact is stored inMyArtifacts/<build-ID>/MyArtifact.zip. -
If
pathis empty,namespaceTypeis set toNONE, andnameis set to "/", the output artifact is stored in the root of the output bucket. -
If
pathis set toMyArtifacts,namespaceTypeis set toBUILD_ID, andnameis set to "/", the output artifact is stored inMyArtifacts/<build-ID>.
-
-
-
packaging
The type of build output artifact to create:
-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output artifacts instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, valid values include:-
NONE: CodeBuild creates in the output bucket a folder that contains the build output. This is the default ifpackagingis not specified. -
ZIP: CodeBuild creates in the output bucket a ZIP file that contains the build output.
-
If the service returns an enum value that is not available in the current SDK version,
packagingwill returnArtifactPackaging.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompackagingAsString().- Returns:
- The type of build output artifact to create:
-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output artifacts instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, valid values include:-
NONE: CodeBuild creates in the output bucket a folder that contains the build output. This is the default ifpackagingis not specified. -
ZIP: CodeBuild creates in the output bucket a ZIP file that contains the build output.
-
-
- See Also:
-
-
packagingAsString
The type of build output artifact to create:
-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output artifacts instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, valid values include:-
NONE: CodeBuild creates in the output bucket a folder that contains the build output. This is the default ifpackagingis not specified. -
ZIP: CodeBuild creates in the output bucket a ZIP file that contains the build output.
-
If the service returns an enum value that is not available in the current SDK version,
packagingwill returnArtifactPackaging.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompackagingAsString().- Returns:
- The type of build output artifact to create:
-
If
typeis set toCODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output artifacts instead of CodeBuild. -
If
typeis set toNO_ARTIFACTS, this value is ignored if specified, because no build output is produced. -
If
typeis set toS3, valid values include:-
NONE: CodeBuild creates in the output bucket a folder that contains the build output. This is the default ifpackagingis not specified. -
ZIP: CodeBuild creates in the output bucket a ZIP file that contains the build output.
-
-
- See Also:
-
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
artifactIdentifier
An identifier for this artifact definition.
- Returns:
- An identifier for this artifact definition.
-
bucketOwnerAccess
Returns the value of the BucketOwnerAccess property for this object.If the service returns an enum value that is not available in the current SDK version,
bucketOwnerAccesswill returnBucketOwnerAccess.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombucketOwnerAccessAsString().- Returns:
- The value of the BucketOwnerAccess property for this object.
- See Also:
-
bucketOwnerAccessAsString
Returns the value of the BucketOwnerAccess property for this object.If the service returns an enum value that is not available in the current SDK version,
bucketOwnerAccesswill returnBucketOwnerAccess.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frombucketOwnerAccessAsString().- Returns:
- The value of the BucketOwnerAccess property for this object.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ProjectArtifacts.Builder,ProjectArtifacts> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-