Class ProjectArtifacts
- java.lang.Object
-
- software.amazon.awssdk.services.codebuild.model.ProjectArtifacts
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ProjectArtifacts.Builder,ProjectArtifacts>
@Generated("software.amazon.awssdk:codegen") public final class ProjectArtifacts extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ProjectArtifacts.Builder,ProjectArtifacts>
Information about the build output artifacts for the build project.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProjectArtifacts.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringartifactIdentifier()An identifier for this artifact definition.BucketOwnerAccessbucketOwnerAccess()Returns the value of the BucketOwnerAccess property for this object.StringbucketOwnerAccessAsString()Returns the value of the BucketOwnerAccess property for this object.static ProjectArtifacts.Builderbuilder()BooleanencryptionDisabled()Set to true if you do not want your output artifacts encrypted.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringlocation()Information about the build output artifact location:Stringname()Along withpathandnamespaceType, the pattern that CodeBuild uses to name and store the output artifact:ArtifactNamespacenamespaceType()Along withpathandname, the pattern that CodeBuild uses to determine the name and location to store the output artifact:StringnamespaceTypeAsString()Along withpathandname, the pattern that CodeBuild uses to determine the name and location to store the output artifact:BooleanoverrideArtifactName()If this flag is set, a name specified in the buildspec file overrides the artifact name.ArtifactPackagingpackaging()The type of build output artifact to create:StringpackagingAsString()The type of build output artifact to create:Stringpath()Along withnamespaceTypeandname, the pattern that CodeBuild uses to name and store the output artifact:List<SdkField<?>>sdkFields()static Class<? extends ProjectArtifacts.Builder>serializableBuilderClass()ProjectArtifacts.BuildertoBuilder()StringtoString()Returns a string representation of this object.ArtifactsTypetype()The type of build output artifact.StringtypeAsString()The type of build output artifact.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final ArtifactsType 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:
ArtifactsType
-
-
typeAsString
public final String 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:
ArtifactsType
-
-
location
public final String 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
public final String 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
public final ArtifactNamespace 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:
ArtifactNamespace
-
-
namespaceTypeAsString
public final String 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:
ArtifactNamespace
-
-
name
public final String 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
public final ArtifactPackaging 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:
ArtifactPackaging
-
-
packagingAsString
public final String 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:
ArtifactPackaging
-
-
overrideArtifactName
public final Boolean 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
public final Boolean 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
public final String artifactIdentifier()
An identifier for this artifact definition.
- Returns:
- An identifier for this artifact definition.
-
bucketOwnerAccess
public final BucketOwnerAccess 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:
BucketOwnerAccess
-
bucketOwnerAccessAsString
public final String 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:
BucketOwnerAccess
-
toBuilder
public ProjectArtifacts.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ProjectArtifacts.Builder,ProjectArtifacts>
-
builder
public static ProjectArtifacts.Builder builder()
-
serializableBuilderClass
public static Class<? extends ProjectArtifacts.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
-