/* * 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.quicksight.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The Amazon S3 result from the snapshot job. The result includes the DestinationConfiguration
and the
* Amazon S3 Uri. If an error occured during the job, the result returns information on the error.
*
* A list of Amazon S3 bucket configurations that are provided when you make a
* StartDashboardSnapshotJob
API call.
*
* The Amazon S3 Uri. *
*/ private String s3Uri; /** ** An array of error records that describe any failures that occur while the dashboard snapshot job runs. *
*/ private java.util.List
* A list of Amazon S3 bucket configurations that are provided when you make a
* StartDashboardSnapshotJob
API call.
*
StartDashboardSnapshotJob
API call.
*/
public void setS3DestinationConfiguration(SnapshotS3DestinationConfiguration s3DestinationConfiguration) {
this.s3DestinationConfiguration = s3DestinationConfiguration;
}
/**
*
* A list of Amazon S3 bucket configurations that are provided when you make a
* StartDashboardSnapshotJob
API call.
*
StartDashboardSnapshotJob
API call.
*/
public SnapshotS3DestinationConfiguration getS3DestinationConfiguration() {
return this.s3DestinationConfiguration;
}
/**
*
* A list of Amazon S3 bucket configurations that are provided when you make a
* StartDashboardSnapshotJob
API call.
*
StartDashboardSnapshotJob
API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SnapshotJobS3Result withS3DestinationConfiguration(SnapshotS3DestinationConfiguration s3DestinationConfiguration) {
setS3DestinationConfiguration(s3DestinationConfiguration);
return this;
}
/**
* * The Amazon S3 Uri. *
* * @param s3Uri * The Amazon S3 Uri. */ public void setS3Uri(String s3Uri) { this.s3Uri = s3Uri; } /** ** The Amazon S3 Uri. *
* * @return The Amazon S3 Uri. */ public String getS3Uri() { return this.s3Uri; } /** ** The Amazon S3 Uri. *
* * @param s3Uri * The Amazon S3 Uri. * @return Returns a reference to this object so that method calls can be chained together. */ public SnapshotJobS3Result withS3Uri(String s3Uri) { setS3Uri(s3Uri); return this; } /** ** An array of error records that describe any failures that occur while the dashboard snapshot job runs. *
* * @return An array of error records that describe any failures that occur while the dashboard snapshot job runs. */ public java.util.List* An array of error records that describe any failures that occur while the dashboard snapshot job runs. *
* * @param errorInfo * An array of error records that describe any failures that occur while the dashboard snapshot job runs. */ public void setErrorInfo(java.util.Collection* An array of error records that describe any failures that occur while the dashboard snapshot job runs. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setErrorInfo(java.util.Collection)} or {@link #withErrorInfo(java.util.Collection)} if you want to * override the existing values. *
* * @param errorInfo * An array of error records that describe any failures that occur while the dashboard snapshot job runs. * @return Returns a reference to this object so that method calls can be chained together. */ public SnapshotJobS3Result withErrorInfo(SnapshotJobResultErrorInfo... errorInfo) { if (this.errorInfo == null) { setErrorInfo(new java.util.ArrayList* An array of error records that describe any failures that occur while the dashboard snapshot job runs. *
* * @param errorInfo * An array of error records that describe any failures that occur while the dashboard snapshot job runs. * @return Returns a reference to this object so that method calls can be chained together. */ public SnapshotJobS3Result withErrorInfo(java.util.Collection