/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FinSpaceData { namespace Model { /** *

Structure for the summary of a Dataview.

See Also:

AWS * API Reference

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

The unique identifier for the Dataview.

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

The unique identifier for the Dataview.

*/ inline bool DataViewIdHasBeenSet() const { return m_dataViewIdHasBeenSet; } /** *

The unique identifier for the Dataview.

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

The unique identifier for the Dataview.

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

The unique identifier for the Dataview.

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

The unique identifier for the Dataview.

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

The unique identifier for the Dataview.

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

The unique identifier for the Dataview.

*/ inline DataViewSummary& 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 bool DataViewArnHasBeenSet() const { return m_dataViewArnHasBeenSet; } /** *

The ARN identifier of the Dataview.

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

The ARN identifier of the Dataview.

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

The ARN identifier of the Dataview.

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

The ARN identifier of the Dataview.

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

The ARN identifier of the Dataview.

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

The ARN identifier of the Dataview.

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

Th unique identifier for the Dataview Dataset.

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

Th unique identifier for the Dataview Dataset.

*/ inline bool DatasetIdHasBeenSet() const { return m_datasetIdHasBeenSet; } /** *

Th unique identifier for the Dataview Dataset.

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

Th unique identifier for the Dataview Dataset.

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

Th unique identifier for the Dataview Dataset.

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

Th unique identifier for the Dataview Dataset.

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

Th unique identifier for the Dataview Dataset.

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

Th unique identifier for the Dataview Dataset.

*/ inline DataViewSummary& 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 bool AsOfTimestampHasBeenSet() const { return m_asOfTimestampHasBeenSet; } /** *

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_asOfTimestampHasBeenSet = true; 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 DataViewSummary& WithAsOfTimestamp(long long value) { SetAsOfTimestamp(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 bool PartitionColumnsHasBeenSet() const { return m_partitionColumnsHasBeenSet; } /** *

Ordered set of column names used to partition data.

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

Ordered set of column names used to partition data.

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

Ordered set of column names used to partition data.

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

Ordered set of column names used to partition data.

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

Ordered set of column names used to partition data.

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

Ordered set of column names used to partition data.

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

Ordered set of column names used to partition data.

*/ inline DataViewSummary& AddPartitionColumns(const char* value) { m_partitionColumnsHasBeenSet = true; m_partitionColumns.push_back(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 bool SortColumnsHasBeenSet() const { return m_sortColumnsHasBeenSet; } /** *

Columns to be used for sorting the data.

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

Columns to be used for sorting the data.

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

Columns to be used for sorting the data.

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

Columns to be used for sorting the data.

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

Columns to be used for sorting the data.

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

Columns to be used for sorting the data.

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

Columns to be used for sorting the data.

*/ inline DataViewSummary& AddSortColumns(const char* value) { m_sortColumnsHasBeenSet = true; m_sortColumns.push_back(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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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_statusHasBeenSet = true; 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_statusHasBeenSet = true; 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 DataViewSummary& 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 DataViewSummary& WithStatus(DataViewStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The structure with error messages.

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

The structure with error messages.

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

The structure with error messages.

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

The structure with error messages.

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

The structure with error messages.

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

The structure with error messages.

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

Information about the Dataview destination.

*/ inline const DataViewDestinationTypeParams& GetDestinationTypeProperties() const{ return m_destinationTypeProperties; } /** *

Information about the Dataview destination.

*/ inline bool DestinationTypePropertiesHasBeenSet() const { return m_destinationTypePropertiesHasBeenSet; } /** *

Information about the Dataview destination.

*/ inline void SetDestinationTypeProperties(const DataViewDestinationTypeParams& value) { m_destinationTypePropertiesHasBeenSet = true; m_destinationTypeProperties = value; } /** *

Information about the Dataview destination.

*/ inline void SetDestinationTypeProperties(DataViewDestinationTypeParams&& value) { m_destinationTypePropertiesHasBeenSet = true; m_destinationTypeProperties = std::move(value); } /** *

Information about the Dataview destination.

*/ inline DataViewSummary& WithDestinationTypeProperties(const DataViewDestinationTypeParams& value) { SetDestinationTypeProperties(value); return *this;} /** *

Information about the Dataview destination.

*/ inline DataViewSummary& WithDestinationTypeProperties(DataViewDestinationTypeParams&& value) { SetDestinationTypeProperties(std::move(value)); return *this;} /** *

The flag to indicate Dataview should be updated automatically.

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

The flag to indicate Dataview should be updated automatically.

*/ inline bool AutoUpdateHasBeenSet() const { return m_autoUpdateHasBeenSet; } /** *

The flag to indicate Dataview should be updated automatically.

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

The flag to indicate Dataview should be updated automatically.

*/ inline DataViewSummary& WithAutoUpdate(bool value) { SetAutoUpdate(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 bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

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_createTimeHasBeenSet = true; 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 DataViewSummary& WithCreateTime(long long value) { SetCreateTime(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 bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

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_lastModifiedTimeHasBeenSet = true; 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 DataViewSummary& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;} private: Aws::String m_dataViewId; bool m_dataViewIdHasBeenSet = false; Aws::String m_dataViewArn; bool m_dataViewArnHasBeenSet = false; Aws::String m_datasetId; bool m_datasetIdHasBeenSet = false; long long m_asOfTimestamp; bool m_asOfTimestampHasBeenSet = false; Aws::Vector m_partitionColumns; bool m_partitionColumnsHasBeenSet = false; Aws::Vector m_sortColumns; bool m_sortColumnsHasBeenSet = false; DataViewStatus m_status; bool m_statusHasBeenSet = false; DataViewErrorInfo m_errorInfo; bool m_errorInfoHasBeenSet = false; DataViewDestinationTypeParams m_destinationTypeProperties; bool m_destinationTypePropertiesHasBeenSet = false; bool m_autoUpdate; bool m_autoUpdateHasBeenSet = false; long long m_createTime; bool m_createTimeHasBeenSet = false; long long m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; }; } // namespace Model } // namespace FinSpaceData } // namespace Aws