/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

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.

See * Also:

AWS * API Reference

*/ class SnapshotJobS3Result { public: AWS_QUICKSIGHT_API SnapshotJobS3Result(); AWS_QUICKSIGHT_API SnapshotJobS3Result(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API SnapshotJobS3Result& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of Amazon S3 bucket configurations that are provided when you make a * StartDashboardSnapshotJob API call.

*/ inline const SnapshotS3DestinationConfiguration& GetS3DestinationConfiguration() const{ return m_s3DestinationConfiguration; } /** *

A list of Amazon S3 bucket configurations that are provided when you make a * StartDashboardSnapshotJob API call.

*/ inline bool S3DestinationConfigurationHasBeenSet() const { return m_s3DestinationConfigurationHasBeenSet; } /** *

A list of Amazon S3 bucket configurations that are provided when you make a * StartDashboardSnapshotJob API call.

*/ inline void SetS3DestinationConfiguration(const SnapshotS3DestinationConfiguration& value) { m_s3DestinationConfigurationHasBeenSet = true; m_s3DestinationConfiguration = value; } /** *

A list of Amazon S3 bucket configurations that are provided when you make a * StartDashboardSnapshotJob API call.

*/ inline void SetS3DestinationConfiguration(SnapshotS3DestinationConfiguration&& value) { m_s3DestinationConfigurationHasBeenSet = true; m_s3DestinationConfiguration = std::move(value); } /** *

A list of Amazon S3 bucket configurations that are provided when you make a * StartDashboardSnapshotJob API call.

*/ inline SnapshotJobS3Result& WithS3DestinationConfiguration(const SnapshotS3DestinationConfiguration& value) { SetS3DestinationConfiguration(value); return *this;} /** *

A list of Amazon S3 bucket configurations that are provided when you make a * StartDashboardSnapshotJob API call.

*/ inline SnapshotJobS3Result& WithS3DestinationConfiguration(SnapshotS3DestinationConfiguration&& value) { SetS3DestinationConfiguration(std::move(value)); return *this;} /** *

The Amazon S3 Uri.

*/ inline const Aws::String& GetS3Uri() const{ return m_s3Uri; } /** *

The Amazon S3 Uri.

*/ inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; } /** *

The Amazon S3 Uri.

*/ inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; } /** *

The Amazon S3 Uri.

*/ inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); } /** *

The Amazon S3 Uri.

*/ inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); } /** *

The Amazon S3 Uri.

*/ inline SnapshotJobS3Result& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;} /** *

The Amazon S3 Uri.

*/ inline SnapshotJobS3Result& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;} /** *

The Amazon S3 Uri.

*/ inline SnapshotJobS3Result& WithS3Uri(const char* value) { SetS3Uri(value); return *this;} /** *

An array of error records that describe any failures that occur while the * dashboard snapshot job runs.

*/ inline const Aws::Vector& GetErrorInfo() const{ return m_errorInfo; } /** *

An array of error records that describe any failures that occur while the * dashboard snapshot job runs.

*/ inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; } /** *

An array of error records that describe any failures that occur while the * dashboard snapshot job runs.

*/ inline void SetErrorInfo(const Aws::Vector& value) { m_errorInfoHasBeenSet = true; m_errorInfo = value; } /** *

An array of error records that describe any failures that occur while the * dashboard snapshot job runs.

*/ inline void SetErrorInfo(Aws::Vector&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::move(value); } /** *

An array of error records that describe any failures that occur while the * dashboard snapshot job runs.

*/ inline SnapshotJobS3Result& WithErrorInfo(const Aws::Vector& value) { SetErrorInfo(value); return *this;} /** *

An array of error records that describe any failures that occur while the * dashboard snapshot job runs.

*/ inline SnapshotJobS3Result& WithErrorInfo(Aws::Vector&& value) { SetErrorInfo(std::move(value)); return *this;} /** *

An array of error records that describe any failures that occur while the * dashboard snapshot job runs.

*/ inline SnapshotJobS3Result& AddErrorInfo(const SnapshotJobResultErrorInfo& value) { m_errorInfoHasBeenSet = true; m_errorInfo.push_back(value); return *this; } /** *

An array of error records that describe any failures that occur while the * dashboard snapshot job runs.

*/ inline SnapshotJobS3Result& AddErrorInfo(SnapshotJobResultErrorInfo&& value) { m_errorInfoHasBeenSet = true; m_errorInfo.push_back(std::move(value)); return *this; } private: SnapshotS3DestinationConfiguration m_s3DestinationConfiguration; bool m_s3DestinationConfigurationHasBeenSet = false; Aws::String m_s3Uri; bool m_s3UriHasBeenSet = false; Aws::Vector m_errorInfo; bool m_errorInfoHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws