/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.backup.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information from your report plan about where to deliver your reports, specifically your Amazon S3 bucket * name, S3 key prefix, and the formats of your reports. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReportDeliveryChannel implements Serializable, Cloneable, StructuredPojo { /** ** The unique name of the S3 bucket that receives your reports. *
*/ private String s3BucketName; /** *
* The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the
* following path: s3://your-bucket-name/prefix
/Backup/us-west-2/year/month/day/report-name. If not
* specified, there is no prefix.
*
* A list of the format of your reports: CSV
, JSON
, or both. If not specified, the default
* format is CSV
.
*
* The unique name of the S3 bucket that receives your reports. *
* * @param s3BucketName * The unique name of the S3 bucket that receives your reports. */ public void setS3BucketName(String s3BucketName) { this.s3BucketName = s3BucketName; } /** ** The unique name of the S3 bucket that receives your reports. *
* * @return The unique name of the S3 bucket that receives your reports. */ public String getS3BucketName() { return this.s3BucketName; } /** ** The unique name of the S3 bucket that receives your reports. *
* * @param s3BucketName * The unique name of the S3 bucket that receives your reports. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDeliveryChannel withS3BucketName(String s3BucketName) { setS3BucketName(s3BucketName); return this; } /** *
* The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the
* following path: s3://your-bucket-name/prefix
/Backup/us-west-2/year/month/day/report-name. If not
* specified, there is no prefix.
*
prefix
/Backup/us-west-2/year/month/day/report-name.
* If not specified, there is no prefix.
*/
public void setS3KeyPrefix(String s3KeyPrefix) {
this.s3KeyPrefix = s3KeyPrefix;
}
/**
*
* The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the
* following path: s3://your-bucket-name/prefix
/Backup/us-west-2/year/month/day/report-name. If not
* specified, there is no prefix.
*
prefix
* /Backup/us-west-2/year/month/day/report-name. If not specified, there is no prefix.
*/
public String getS3KeyPrefix() {
return this.s3KeyPrefix;
}
/**
*
* The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The prefix is this part of the
* following path: s3://your-bucket-name/prefix
/Backup/us-west-2/year/month/day/report-name. If not
* specified, there is no prefix.
*
prefix
/Backup/us-west-2/year/month/day/report-name.
* If not specified, there is no prefix.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReportDeliveryChannel withS3KeyPrefix(String s3KeyPrefix) {
setS3KeyPrefix(s3KeyPrefix);
return this;
}
/**
*
* A list of the format of your reports: CSV
, JSON
, or both. If not specified, the default
* format is CSV
.
*
CSV
, JSON
, or both. If not specified, the
* default format is CSV
.
*/
public java.util.List
* A list of the format of your reports: CSV
, JSON
, or both. If not specified, the default
* format is CSV
.
*
CSV
, JSON
, or both. If not specified, the
* default format is CSV
.
*/
public void setFormats(java.util.Collection
* A list of the format of your reports: CSV
, JSON
, or both. If not specified, the default
* format is CSV
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFormats(java.util.Collection)} or {@link #withFormats(java.util.Collection)} if you want to override * the existing values. *
* * @param formats * A list of the format of your reports:CSV
, JSON
, or both. If not specified, the
* default format is CSV
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReportDeliveryChannel withFormats(String... formats) {
if (this.formats == null) {
setFormats(new java.util.ArrayList
* A list of the format of your reports: CSV
, JSON
, or both. If not specified, the default
* format is CSV
.
*
CSV
, JSON
, or both. If not specified, the
* default format is CSV
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReportDeliveryChannel withFormats(java.util.Collection