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

com.amazonaws.services.codebuild.model.S3ReportExportConfig 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 S3 bucket where the raw data of a report are exported. *

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

* The name of the S3 bucket where the raw data of a report are exported. *

*/ private String bucket; /** *

* The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data to be * exported to an Amazon S3 bucket that is owned by an account other than the account running the build. *

*/ private String bucketOwner; /** *

* The path to the exported report's raw data results. *

*/ private String path; /** *

* The type of build output artifact to create. Valid values include: *

*
    *
  • *

    * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging is not * specified. *

    *
  • *
  • *

    * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

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

* The encryption key for the report's encrypted raw data. *

*/ private String encryptionKey; /** *

* A boolean value that specifies if the results of a report are encrypted. *

*/ private Boolean encryptionDisabled; /** *

* The name of the S3 bucket where the raw data of a report are exported. *

* * @param bucket * The name of the S3 bucket where the raw data of a report are exported. */ public void setBucket(String bucket) { this.bucket = bucket; } /** *

* The name of the S3 bucket where the raw data of a report are exported. *

* * @return The name of the S3 bucket where the raw data of a report are exported. */ public String getBucket() { return this.bucket; } /** *

* The name of the S3 bucket where the raw data of a report are exported. *

* * @param bucket * The name of the S3 bucket where the raw data of a report are exported. * @return Returns a reference to this object so that method calls can be chained together. */ public S3ReportExportConfig withBucket(String bucket) { setBucket(bucket); return this; } /** *

* The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data to be * exported to an Amazon S3 bucket that is owned by an account other than the account running the build. *

* * @param bucketOwner * The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data * to be exported to an Amazon S3 bucket that is owned by an account other than the account running the * build. */ public void setBucketOwner(String bucketOwner) { this.bucketOwner = bucketOwner; } /** *

* The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data to be * exported to an Amazon S3 bucket that is owned by an account other than the account running the build. *

* * @return The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data * to be exported to an Amazon S3 bucket that is owned by an account other than the account running the * build. */ public String getBucketOwner() { return this.bucketOwner; } /** *

* The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data to be * exported to an Amazon S3 bucket that is owned by an account other than the account running the build. *

* * @param bucketOwner * The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data * to be exported to an Amazon S3 bucket that is owned by an account other than the account running the * build. * @return Returns a reference to this object so that method calls can be chained together. */ public S3ReportExportConfig withBucketOwner(String bucketOwner) { setBucketOwner(bucketOwner); return this; } /** *

* The path to the exported report's raw data results. *

* * @param path * The path to the exported report's raw data results. */ public void setPath(String path) { this.path = path; } /** *

* The path to the exported report's raw data results. *

* * @return The path to the exported report's raw data results. */ public String getPath() { return this.path; } /** *

* The path to the exported report's raw data results. *

* * @param path * The path to the exported report's raw data results. * @return Returns a reference to this object so that method calls can be chained together. */ public S3ReportExportConfig withPath(String path) { setPath(path); return this; } /** *

* The type of build output artifact to create. Valid values include: *

*
    *
  • *

    * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging is not * specified. *

    *
  • *
  • *

    * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

    *
  • *
* * @param packaging * The type of build output artifact to create. Valid values include:

*
    *
  • *

    * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging * is not specified. *

    *
  • *
  • *

    * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

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

    * The type of build output artifact to create. Valid values include: *

    *
      *
    • *

      * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging is not * specified. *

      *
    • *
    • *

      * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

      *
    • *
    * * @return The type of build output artifact to create. Valid values include:

    *
      *
    • *

      * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging * is not specified. *

      *
    • *
    • *

      * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

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

      * The type of build output artifact to create. Valid values include: *

      *
        *
      • *

        * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging is not * specified. *

        *
      • *
      • *

        * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

        *
      • *
      * * @param packaging * The type of build output artifact to create. Valid values include:

      *
        *
      • *

        * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging * is not specified. *

        *
      • *
      • *

        * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

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

        * The type of build output artifact to create. Valid values include: *

        *
          *
        • *

          * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging is not * specified. *

          *
        • *
        • *

          * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

          *
        • *
        * * @param packaging * The type of build output artifact to create. Valid values include:

        *
          *
        • *

          * NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging * is not specified. *

          *
        • *
        • *

          * ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see ReportPackagingType */ public S3ReportExportConfig withPackaging(ReportPackagingType packaging) { this.packaging = packaging.toString(); return this; } /** *

          * The encryption key for the report's encrypted raw data. *

          * * @param encryptionKey * The encryption key for the report's encrypted raw data. */ public void setEncryptionKey(String encryptionKey) { this.encryptionKey = encryptionKey; } /** *

          * The encryption key for the report's encrypted raw data. *

          * * @return The encryption key for the report's encrypted raw data. */ public String getEncryptionKey() { return this.encryptionKey; } /** *

          * The encryption key for the report's encrypted raw data. *

          * * @param encryptionKey * The encryption key for the report's encrypted raw data. * @return Returns a reference to this object so that method calls can be chained together. */ public S3ReportExportConfig withEncryptionKey(String encryptionKey) { setEncryptionKey(encryptionKey); return this; } /** *

          * A boolean value that specifies if the results of a report are encrypted. *

          * * @param encryptionDisabled * A boolean value that specifies if the results of a report are encrypted. */ public void setEncryptionDisabled(Boolean encryptionDisabled) { this.encryptionDisabled = encryptionDisabled; } /** *

          * A boolean value that specifies if the results of a report are encrypted. *

          * * @return A boolean value that specifies if the results of a report are encrypted. */ public Boolean getEncryptionDisabled() { return this.encryptionDisabled; } /** *

          * A boolean value that specifies if the results of a report are encrypted. *

          * * @param encryptionDisabled * A boolean value that specifies if the results of a report are encrypted. * @return Returns a reference to this object so that method calls can be chained together. */ public S3ReportExportConfig withEncryptionDisabled(Boolean encryptionDisabled) { setEncryptionDisabled(encryptionDisabled); return this; } /** *

          * A boolean value that specifies if the results of a report are encrypted. *

          * * @return A boolean value that specifies if the results of a report are encrypted. */ public Boolean isEncryptionDisabled() { return this.encryptionDisabled; } /** * 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 (getBucket() != null) sb.append("Bucket: ").append(getBucket()).append(","); if (getBucketOwner() != null) sb.append("BucketOwner: ").append(getBucketOwner()).append(","); if (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getPackaging() != null) sb.append("Packaging: ").append(getPackaging()).append(","); if (getEncryptionKey() != null) sb.append("EncryptionKey: ").append(getEncryptionKey()).append(","); if (getEncryptionDisabled() != null) sb.append("EncryptionDisabled: ").append(getEncryptionDisabled()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof S3ReportExportConfig == false) return false; S3ReportExportConfig other = (S3ReportExportConfig) obj; if (other.getBucket() == null ^ this.getBucket() == null) return false; if (other.getBucket() != null && other.getBucket().equals(this.getBucket()) == false) return false; if (other.getBucketOwner() == null ^ this.getBucketOwner() == null) return false; if (other.getBucketOwner() != null && other.getBucketOwner().equals(this.getBucketOwner()) == 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.getPackaging() == null ^ this.getPackaging() == null) return false; if (other.getPackaging() != null && other.getPackaging().equals(this.getPackaging()) == false) return false; if (other.getEncryptionKey() == null ^ this.getEncryptionKey() == null) return false; if (other.getEncryptionKey() != null && other.getEncryptionKey().equals(this.getEncryptionKey()) == false) return false; if (other.getEncryptionDisabled() == null ^ this.getEncryptionDisabled() == null) return false; if (other.getEncryptionDisabled() != null && other.getEncryptionDisabled().equals(this.getEncryptionDisabled()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBucket() == null) ? 0 : getBucket().hashCode()); hashCode = prime * hashCode + ((getBucketOwner() == null) ? 0 : getBucketOwner().hashCode()); hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getPackaging() == null) ? 0 : getPackaging().hashCode()); hashCode = prime * hashCode + ((getEncryptionKey() == null) ? 0 : getEncryptionKey().hashCode()); hashCode = prime * hashCode + ((getEncryptionDisabled() == null) ? 0 : getEncryptionDisabled().hashCode()); return hashCode; } @Override public S3ReportExportConfig clone() { try { return (S3ReportExportConfig) 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.S3ReportExportConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy