/* * 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 job about your report destination. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReportDestination implements Serializable, Cloneable, StructuredPojo { /** ** The unique name of the Amazon S3 bucket that receives your reports. *
*/ private String s3BucketName; /** ** The object key that uniquely identifies your reports in your S3 bucket. *
*/ private java.util.List* The unique name of the Amazon S3 bucket that receives your reports. *
* * @param s3BucketName * The unique name of the Amazon S3 bucket that receives your reports. */ public void setS3BucketName(String s3BucketName) { this.s3BucketName = s3BucketName; } /** ** The unique name of the Amazon S3 bucket that receives your reports. *
* * @return The unique name of the Amazon S3 bucket that receives your reports. */ public String getS3BucketName() { return this.s3BucketName; } /** ** The unique name of the Amazon S3 bucket that receives your reports. *
* * @param s3BucketName * The unique name of the Amazon S3 bucket that receives your reports. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDestination withS3BucketName(String s3BucketName) { setS3BucketName(s3BucketName); return this; } /** ** The object key that uniquely identifies your reports in your S3 bucket. *
* * @return The object key that uniquely identifies your reports in your S3 bucket. */ public java.util.List* The object key that uniquely identifies your reports in your S3 bucket. *
* * @param s3Keys * The object key that uniquely identifies your reports in your S3 bucket. */ public void setS3Keys(java.util.Collection* The object key that uniquely identifies your reports in your S3 bucket. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setS3Keys(java.util.Collection)} or {@link #withS3Keys(java.util.Collection)} if you want to override the * existing values. *
* * @param s3Keys * The object key that uniquely identifies your reports in your S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDestination withS3Keys(String... s3Keys) { if (this.s3Keys == null) { setS3Keys(new java.util.ArrayList* The object key that uniquely identifies your reports in your S3 bucket. *
* * @param s3Keys * The object key that uniquely identifies your reports in your S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportDestination withS3Keys(java.util.Collection