/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace FinSpaceData { namespace Model { /** * Response from retrieving a dataview, which includes details on the target * database and table name

See Also:

AWS * API Reference

*/ class GetDataViewResult { public: AWS_FINSPACEDATA_API GetDataViewResult(); AWS_FINSPACEDATA_API GetDataViewResult(const Aws::AmazonWebServiceResult& result); AWS_FINSPACEDATA_API GetDataViewResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Flag to indicate Dataview should be updated automatically.

*/ inline bool GetAutoUpdate() const{ return m_autoUpdate; } /** *

Flag to indicate Dataview should be updated automatically.

*/ inline void SetAutoUpdate(bool value) { m_autoUpdate = value; } /** *

Flag to indicate Dataview should be updated automatically.

*/ inline GetDataViewResult& WithAutoUpdate(bool value) { SetAutoUpdate(value); return *this;} /** *

Ordered set of column names used to partition data.

*/ inline const Aws::Vector& GetPartitionColumns() const{ return m_partitionColumns; } /** *

Ordered set of column names used to partition data.

*/ inline void SetPartitionColumns(const Aws::Vector& value) { m_partitionColumns = value; } /** *

Ordered set of column names used to partition data.

*/ inline void SetPartitionColumns(Aws::Vector&& value) { m_partitionColumns = std::move(value); } /** *

Ordered set of column names used to partition data.

*/ inline GetDataViewResult& WithPartitionColumns(const Aws::Vector& value) { SetPartitionColumns(value); return *this;} /** *

Ordered set of column names used to partition data.

*/ inline GetDataViewResult& WithPartitionColumns(Aws::Vector&& value) { SetPartitionColumns(std::move(value)); return *this;} /** *

Ordered set of column names used to partition data.

*/ inline GetDataViewResult& AddPartitionColumns(const Aws::String& value) { m_partitionColumns.push_back(value); return *this; } /** *

Ordered set of column names used to partition data.

*/ inline GetDataViewResult& AddPartitionColumns(Aws::String&& value) { m_partitionColumns.push_back(std::move(value)); return *this; } /** *

Ordered set of column names used to partition data.

*/ inline GetDataViewResult& AddPartitionColumns(const char* value) { m_partitionColumns.push_back(value); return *this; } /** *

The unique identifier for the Dataset used in the Dataview.

*/ inline const Aws::String& GetDatasetId() const{ return m_datasetId; } /** *

The unique identifier for the Dataset used in the Dataview.

*/ inline void SetDatasetId(const Aws::String& value) { m_datasetId = value; } /** *

The unique identifier for the Dataset used in the Dataview.

*/ inline void SetDatasetId(Aws::String&& value) { m_datasetId = std::move(value); } /** *

The unique identifier for the Dataset used in the Dataview.

*/ inline void SetDatasetId(const char* value) { m_datasetId.assign(value); } /** *

The unique identifier for the Dataset used in the Dataview.

*/ inline GetDataViewResult& WithDatasetId(const Aws::String& value) { SetDatasetId(value); return *this;} /** *

The unique identifier for the Dataset used in the Dataview.

*/ inline GetDataViewResult& WithDatasetId(Aws::String&& value) { SetDatasetId(std::move(value)); return *this;} /** *

The unique identifier for the Dataset used in the Dataview.

*/ inline GetDataViewResult& WithDatasetId(const char* value) { SetDatasetId(value); return *this;} /** *

Time range to use for the Dataview. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM * UTC is specified as 1635768000000.

*/ inline long long GetAsOfTimestamp() const{ return m_asOfTimestamp; } /** *

Time range to use for the Dataview. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM * UTC is specified as 1635768000000.

*/ inline void SetAsOfTimestamp(long long value) { m_asOfTimestamp = value; } /** *

Time range to use for the Dataview. The value is determined as epoch time in * milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM * UTC is specified as 1635768000000.

*/ inline GetDataViewResult& WithAsOfTimestamp(long long value) { SetAsOfTimestamp(value); return *this;} /** *

Information about an error that occurred for the Dataview.

*/ inline const DataViewErrorInfo& GetErrorInfo() const{ return m_errorInfo; } /** *

Information about an error that occurred for the Dataview.

*/ inline void SetErrorInfo(const DataViewErrorInfo& value) { m_errorInfo = value; } /** *

Information about an error that occurred for the Dataview.

*/ inline void SetErrorInfo(DataViewErrorInfo&& value) { m_errorInfo = std::move(value); } /** *

Information about an error that occurred for the Dataview.

*/ inline GetDataViewResult& WithErrorInfo(const DataViewErrorInfo& value) { SetErrorInfo(value); return *this;} /** *

Information about an error that occurred for the Dataview.

*/ inline GetDataViewResult& WithErrorInfo(DataViewErrorInfo&& value) { SetErrorInfo(std::move(value)); return *this;} /** *

The last time that a Dataview was modified. The value is determined as epoch * time in milliseconds. For example, the value for Monday, November 1, 2021 * 12:00:00 PM UTC is specified as 1635768000000.

*/ inline long long GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The last time that a Dataview was modified. The value is determined as epoch * time in milliseconds. For example, the value for Monday, November 1, 2021 * 12:00:00 PM UTC is specified as 1635768000000.

*/ inline void SetLastModifiedTime(long long value) { m_lastModifiedTime = value; } /** *

The last time that a Dataview was modified. The value is determined as epoch * time in milliseconds. For example, the value for Monday, November 1, 2021 * 12:00:00 PM UTC is specified as 1635768000000.

*/ inline GetDataViewResult& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;} /** *

The timestamp at which the Dataview was created in FinSpace. The value is * determined as epoch time in milliseconds. For example, the value for Monday, * November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.

*/ inline long long GetCreateTime() const{ return m_createTime; } /** *

The timestamp at which the Dataview was created in FinSpace. The value is * determined as epoch time in milliseconds. For example, the value for Monday, * November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.

*/ inline void SetCreateTime(long long value) { m_createTime = value; } /** *

The timestamp at which the Dataview was created in FinSpace. The value is * determined as epoch time in milliseconds. For example, the value for Monday, * November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.

*/ inline GetDataViewResult& WithCreateTime(long long value) { SetCreateTime(value); return *this;} /** *

Columns to be used for sorting the data.

*/ inline const Aws::Vector& GetSortColumns() const{ return m_sortColumns; } /** *

Columns to be used for sorting the data.

*/ inline void SetSortColumns(const Aws::Vector& value) { m_sortColumns = value; } /** *

Columns to be used for sorting the data.

*/ inline void SetSortColumns(Aws::Vector&& value) { m_sortColumns = std::move(value); } /** *

Columns to be used for sorting the data.

*/ inline GetDataViewResult& WithSortColumns(const Aws::Vector& value) { SetSortColumns(value); return *this;} /** *

Columns to be used for sorting the data.

*/ inline GetDataViewResult& WithSortColumns(Aws::Vector&& value) { SetSortColumns(std::move(value)); return *this;} /** *

Columns to be used for sorting the data.

*/ inline GetDataViewResult& AddSortColumns(const Aws::String& value) { m_sortColumns.push_back(value); return *this; } /** *

Columns to be used for sorting the data.

*/ inline GetDataViewResult& AddSortColumns(Aws::String&& value) { m_sortColumns.push_back(std::move(value)); return *this; } /** *

Columns to be used for sorting the data.

*/ inline GetDataViewResult& AddSortColumns(const char* value) { m_sortColumns.push_back(value); return *this; } /** *

The unique identifier for the Dataview.

*/ inline const Aws::String& GetDataViewId() const{ return m_dataViewId; } /** *

The unique identifier for the Dataview.

*/ inline void SetDataViewId(const Aws::String& value) { m_dataViewId = value; } /** *

The unique identifier for the Dataview.

*/ inline void SetDataViewId(Aws::String&& value) { m_dataViewId = std::move(value); } /** *

The unique identifier for the Dataview.

*/ inline void SetDataViewId(const char* value) { m_dataViewId.assign(value); } /** *

The unique identifier for the Dataview.

*/ inline GetDataViewResult& WithDataViewId(const Aws::String& value) { SetDataViewId(value); return *this;} /** *

The unique identifier for the Dataview.

*/ inline GetDataViewResult& WithDataViewId(Aws::String&& value) { SetDataViewId(std::move(value)); return *this;} /** *

The unique identifier for the Dataview.

*/ inline GetDataViewResult& WithDataViewId(const char* value) { SetDataViewId(value); return *this;} /** *

The ARN identifier of the Dataview.

*/ inline const Aws::String& GetDataViewArn() const{ return m_dataViewArn; } /** *

The ARN identifier of the Dataview.

*/ inline void SetDataViewArn(const Aws::String& value) { m_dataViewArn = value; } /** *

The ARN identifier of the Dataview.

*/ inline void SetDataViewArn(Aws::String&& value) { m_dataViewArn = std::move(value); } /** *

The ARN identifier of the Dataview.

*/ inline void SetDataViewArn(const char* value) { m_dataViewArn.assign(value); } /** *

The ARN identifier of the Dataview.

*/ inline GetDataViewResult& WithDataViewArn(const Aws::String& value) { SetDataViewArn(value); return *this;} /** *

The ARN identifier of the Dataview.

*/ inline GetDataViewResult& WithDataViewArn(Aws::String&& value) { SetDataViewArn(std::move(value)); return *this;} /** *

The ARN identifier of the Dataview.

*/ inline GetDataViewResult& WithDataViewArn(const char* value) { SetDataViewArn(value); return *this;} /** *

Options that define the destination type for the Dataview.

*/ inline const DataViewDestinationTypeParams& GetDestinationTypeParams() const{ return m_destinationTypeParams; } /** *

Options that define the destination type for the Dataview.

*/ inline void SetDestinationTypeParams(const DataViewDestinationTypeParams& value) { m_destinationTypeParams = value; } /** *

Options that define the destination type for the Dataview.

*/ inline void SetDestinationTypeParams(DataViewDestinationTypeParams&& value) { m_destinationTypeParams = std::move(value); } /** *

Options that define the destination type for the Dataview.

*/ inline GetDataViewResult& WithDestinationTypeParams(const DataViewDestinationTypeParams& value) { SetDestinationTypeParams(value); return *this;} /** *

Options that define the destination type for the Dataview.

*/ inline GetDataViewResult& WithDestinationTypeParams(DataViewDestinationTypeParams&& value) { SetDestinationTypeParams(std::move(value)); return *this;} /** *

The status of a Dataview creation.

  • RUNNING – * Dataview creation is running.

  • STARTING – * Dataview creation is starting.

  • FAILED – Dataview * creation has failed.

  • CANCELLED – Dataview * creation has been cancelled.

  • TIMEOUT – Dataview * creation has timed out.

  • SUCCESS – Dataview * creation has succeeded.

  • PENDING – Dataview * creation is pending.

  • FAILED_CLEANUP_FAILED – * Dataview creation failed and resource cleanup failed.

*/ inline const DataViewStatus& GetStatus() const{ return m_status; } /** *

The status of a Dataview creation.

  • RUNNING – * Dataview creation is running.

  • STARTING – * Dataview creation is starting.

  • FAILED – Dataview * creation has failed.

  • CANCELLED – Dataview * creation has been cancelled.

  • TIMEOUT – Dataview * creation has timed out.

  • SUCCESS – Dataview * creation has succeeded.

  • PENDING – Dataview * creation is pending.

  • FAILED_CLEANUP_FAILED – * Dataview creation failed and resource cleanup failed.

*/ inline void SetStatus(const DataViewStatus& value) { m_status = value; } /** *

The status of a Dataview creation.

  • RUNNING – * Dataview creation is running.

  • STARTING – * Dataview creation is starting.

  • FAILED – Dataview * creation has failed.

  • CANCELLED – Dataview * creation has been cancelled.

  • TIMEOUT – Dataview * creation has timed out.

  • SUCCESS – Dataview * creation has succeeded.

  • PENDING – Dataview * creation is pending.

  • FAILED_CLEANUP_FAILED – * Dataview creation failed and resource cleanup failed.

*/ inline void SetStatus(DataViewStatus&& value) { m_status = std::move(value); } /** *

The status of a Dataview creation.

  • RUNNING – * Dataview creation is running.

  • STARTING – * Dataview creation is starting.

  • FAILED – Dataview * creation has failed.

  • CANCELLED – Dataview * creation has been cancelled.

  • TIMEOUT – Dataview * creation has timed out.

  • SUCCESS – Dataview * creation has succeeded.

  • PENDING – Dataview * creation is pending.

  • FAILED_CLEANUP_FAILED – * Dataview creation failed and resource cleanup failed.

*/ inline GetDataViewResult& WithStatus(const DataViewStatus& value) { SetStatus(value); return *this;} /** *

The status of a Dataview creation.

  • RUNNING – * Dataview creation is running.

  • STARTING – * Dataview creation is starting.

  • FAILED – Dataview * creation has failed.

  • CANCELLED – Dataview * creation has been cancelled.

  • TIMEOUT – Dataview * creation has timed out.

  • SUCCESS – Dataview * creation has succeeded.

  • PENDING – Dataview * creation is pending.

  • FAILED_CLEANUP_FAILED – * Dataview creation failed and resource cleanup failed.

*/ inline GetDataViewResult& WithStatus(DataViewStatus&& value) { SetStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetDataViewResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDataViewResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDataViewResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_autoUpdate; Aws::Vector m_partitionColumns; Aws::String m_datasetId; long long m_asOfTimestamp; DataViewErrorInfo m_errorInfo; long long m_lastModifiedTime; long long m_createTime; Aws::Vector m_sortColumns; Aws::String m_dataViewId; Aws::String m_dataViewArn; DataViewDestinationTypeParams m_destinationTypeParams; DataViewStatus m_status; Aws::String m_requestId; }; } // namespace Model } // namespace FinSpaceData } // namespace Aws