All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codebuild.model.ProjectArtifacts Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Code Build module holds the client classes that are used for communicating with AWS Code Build.

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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. *

    *
  • *
*/ private String type; /** *

* 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. *

    *
  • *
*/ private String location; /** *

* 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. *

*/ private String path; /** *

* 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. *

*/ private String namespaceType; /** *

* 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>. *

    *
  • *
*/ private String name; /** *

* 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. *

      *
    • *
    *
  • *
*/ private String packaging; /** *

* 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. *

    *
  • *
* * @param type * 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. *

    *
  • * @see ArtifactsType */ public void setType(String type) { this.type = type; } /** *

    * 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. *

      *
    • *
    * * @return 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. *

      *
    • * @see ArtifactsType */ public String getType() { return this.type; } /** *

      * 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. *

        *
      • *
      * * @param type * 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. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ArtifactsType */ public ProjectArtifacts withType(String type) { setType(type); return this; } /** *

        * 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. *

          *
        • *
        * * @param type * 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. *

          *
        • * @see ArtifactsType */ public void setType(ArtifactsType type) { withType(type); } /** *

          * 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. *

            *
          • *
          * * @param type * 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. *

            *
          • * @return Returns a reference to this object so that method calls can be chained together. * @see ArtifactsType */ public ProjectArtifacts withType(ArtifactsType type) { this.type = type.toString(); return this; } /** *

            * 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. *

              *
            • *
            * * @param location * 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. *

              *
            • */ public void setLocation(String location) { this.location = location; } /** *

              * 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. *

                *
              • *
              * * @return 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. *

                *
              • */ public String getLocation() { return this.location; } /** *

                * 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. *

                  *
                • *
                * * @param location * 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. *

                  *
                • * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectArtifacts withLocation(String location) { setLocation(location); return this; } /** *

                  * 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. *

                  * * @param 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. */ 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. *

                  * * @return 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. */ 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. *

                  * * @param 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. * @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. *

                  * * @param 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. * @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. *

                  * * @return 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. * @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. *

                  * * @param 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. * @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. *

                  * * @param 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. * @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. *

                  * * @param 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. * @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>. *

                    *
                  • *
                  * * @param name * 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>. *

                    *
                  • */ public void setName(String name) { this.name = name; } /** *

                    * 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>. *

                      *
                    • *
                    * * @return 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>. *

                      *
                    • */ public String getName() { return this.name; } /** *

                      * 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>. *

                        *
                      • *
                      * * @param name * 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>. *

                        *
                      • * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectArtifacts withName(String name) { setName(name); return this; } /** *

                        * 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. *

                            *
                          • *
                          *
                        • *
                        * * @param packaging * 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. *

                            *
                          • *
                          *
                        • * @see ArtifactPackaging */ public void setPackaging(String packaging) { this.packaging = packaging; } /** *

                          * 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. *

                              *
                            • *
                            *
                          • *
                          * * @return 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. *

                              *
                            • *
                            *
                          • * @see ArtifactPackaging */ public String getPackaging() { return this.packaging; } /** *

                            * 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. *

                                *
                              • *
                              *
                            • *
                            * * @param packaging * 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. *

                                *
                              • *
                              *
                            • * @return Returns a reference to this object so that method calls can be chained together. * @see ArtifactPackaging */ public ProjectArtifacts withPackaging(String packaging) { setPackaging(packaging); return this; } /** *

                              * 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. *

                                  *
                                • *
                                *
                              • *
                              * * @param packaging * 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. *

                                  *
                                • *
                                *
                              • * @see ArtifactPackaging */ public void setPackaging(ArtifactPackaging packaging) { withPackaging(packaging); } /** *

                                * 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. *

                                    *
                                  • *
                                  *
                                • *
                                * * @param packaging * 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. *

                                    *
                                  • *
                                  *
                                • * @return Returns a reference to this object so that method calls can be chained together. * @see ArtifactPackaging */ public ProjectArtifacts withPackaging(ArtifactPackaging packaging) { this.packaging = packaging.toString(); 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. *

                                  * * @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); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy