/** * 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 Honeycode { namespace Model { /** */ class StartTableDataImportJobRequest : public HoneycodeRequest { public: AWS_HONEYCODE_API StartTableDataImportJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartTableDataImportJob"; } AWS_HONEYCODE_API Aws::String SerializePayload() const override; /** *

The ID of the workbook where the rows are being imported.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline const Aws::String& GetWorkbookId() const{ return m_workbookId; } /** *

The ID of the workbook where the rows are being imported.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline bool WorkbookIdHasBeenSet() const { return m_workbookIdHasBeenSet; } /** *

The ID of the workbook where the rows are being imported.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetWorkbookId(const Aws::String& value) { m_workbookIdHasBeenSet = true; m_workbookId = value; } /** *

The ID of the workbook where the rows are being imported.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetWorkbookId(Aws::String&& value) { m_workbookIdHasBeenSet = true; m_workbookId = std::move(value); } /** *

The ID of the workbook where the rows are being imported.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetWorkbookId(const char* value) { m_workbookIdHasBeenSet = true; m_workbookId.assign(value); } /** *

The ID of the workbook where the rows are being imported.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline StartTableDataImportJobRequest& WithWorkbookId(const Aws::String& value) { SetWorkbookId(value); return *this;} /** *

The ID of the workbook where the rows are being imported.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline StartTableDataImportJobRequest& WithWorkbookId(Aws::String&& value) { SetWorkbookId(std::move(value)); return *this;} /** *

The ID of the workbook where the rows are being imported.

If a * workbook with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline StartTableDataImportJobRequest& WithWorkbookId(const char* value) { SetWorkbookId(value); return *this;} /** *

The source of the data that is being imported. The size of source must be no * larger than 100 MB. Source must have no more than 100,000 cells and no more than * 1,000 rows.

*/ inline const ImportDataSource& GetDataSource() const{ return m_dataSource; } /** *

The source of the data that is being imported. The size of source must be no * larger than 100 MB. Source must have no more than 100,000 cells and no more than * 1,000 rows.

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

The source of the data that is being imported. The size of source must be no * larger than 100 MB. Source must have no more than 100,000 cells and no more than * 1,000 rows.

*/ inline void SetDataSource(const ImportDataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

The source of the data that is being imported. The size of source must be no * larger than 100 MB. Source must have no more than 100,000 cells and no more than * 1,000 rows.

*/ inline void SetDataSource(ImportDataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

The source of the data that is being imported. The size of source must be no * larger than 100 MB. Source must have no more than 100,000 cells and no more than * 1,000 rows.

*/ inline StartTableDataImportJobRequest& WithDataSource(const ImportDataSource& value) { SetDataSource(value); return *this;} /** *

The source of the data that is being imported. The size of source must be no * larger than 100 MB. Source must have no more than 100,000 cells and no more than * 1,000 rows.

*/ inline StartTableDataImportJobRequest& WithDataSource(ImportDataSource&& value) { SetDataSource(std::move(value)); return *this;} /** *

The format of the data that is being imported. Currently the only option * supported is "DELIMITED_TEXT".

*/ inline const ImportSourceDataFormat& GetDataFormat() const{ return m_dataFormat; } /** *

The format of the data that is being imported. Currently the only option * supported is "DELIMITED_TEXT".

*/ inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; } /** *

The format of the data that is being imported. Currently the only option * supported is "DELIMITED_TEXT".

*/ inline void SetDataFormat(const ImportSourceDataFormat& value) { m_dataFormatHasBeenSet = true; m_dataFormat = value; } /** *

The format of the data that is being imported. Currently the only option * supported is "DELIMITED_TEXT".

*/ inline void SetDataFormat(ImportSourceDataFormat&& value) { m_dataFormatHasBeenSet = true; m_dataFormat = std::move(value); } /** *

The format of the data that is being imported. Currently the only option * supported is "DELIMITED_TEXT".

*/ inline StartTableDataImportJobRequest& WithDataFormat(const ImportSourceDataFormat& value) { SetDataFormat(value); return *this;} /** *

The format of the data that is being imported. Currently the only option * supported is "DELIMITED_TEXT".

*/ inline StartTableDataImportJobRequest& WithDataFormat(ImportSourceDataFormat&& value) { SetDataFormat(std::move(value)); return *this;} /** *

The ID of the table where the rows are being imported.

If a table * with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline const Aws::String& GetDestinationTableId() const{ return m_destinationTableId; } /** *

The ID of the table where the rows are being imported.

If a table * with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline bool DestinationTableIdHasBeenSet() const { return m_destinationTableIdHasBeenSet; } /** *

The ID of the table where the rows are being imported.

If a table * with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetDestinationTableId(const Aws::String& value) { m_destinationTableIdHasBeenSet = true; m_destinationTableId = value; } /** *

The ID of the table where the rows are being imported.

If a table * with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetDestinationTableId(Aws::String&& value) { m_destinationTableIdHasBeenSet = true; m_destinationTableId = std::move(value); } /** *

The ID of the table where the rows are being imported.

If a table * with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline void SetDestinationTableId(const char* value) { m_destinationTableIdHasBeenSet = true; m_destinationTableId.assign(value); } /** *

The ID of the table where the rows are being imported.

If a table * with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline StartTableDataImportJobRequest& WithDestinationTableId(const Aws::String& value) { SetDestinationTableId(value); return *this;} /** *

The ID of the table where the rows are being imported.

If a table * with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline StartTableDataImportJobRequest& WithDestinationTableId(Aws::String&& value) { SetDestinationTableId(std::move(value)); return *this;} /** *

The ID of the table where the rows are being imported.

If a table * with the specified id could not be found, this API throws * ResourceNotFoundException.

*/ inline StartTableDataImportJobRequest& WithDestinationTableId(const char* value) { SetDestinationTableId(value); return *this;} /** *

The options for customizing this import request.

*/ inline const ImportOptions& GetImportOptions() const{ return m_importOptions; } /** *

The options for customizing this import request.

*/ inline bool ImportOptionsHasBeenSet() const { return m_importOptionsHasBeenSet; } /** *

The options for customizing this import request.

*/ inline void SetImportOptions(const ImportOptions& value) { m_importOptionsHasBeenSet = true; m_importOptions = value; } /** *

The options for customizing this import request.

*/ inline void SetImportOptions(ImportOptions&& value) { m_importOptionsHasBeenSet = true; m_importOptions = std::move(value); } /** *

The options for customizing this import request.

*/ inline StartTableDataImportJobRequest& WithImportOptions(const ImportOptions& value) { SetImportOptions(value); return *this;} /** *

The options for customizing this import request.

*/ inline StartTableDataImportJobRequest& WithImportOptions(ImportOptions&& value) { SetImportOptions(std::move(value)); return *this;} /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline StartTableDataImportJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline StartTableDataImportJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

The request token for performing the update action. Request tokens help to * identify duplicate requests. If a call times out or fails due to a transient * error like a failed network connection, you can retry the call with the same * request token. The service ensures that if the first call using that request * token is successfully performed, the second call will not perform the action * again.

Note that request tokens are valid only for a few minutes. You * cannot use request tokens to dedupe requests spanning hours or days.

*/ inline StartTableDataImportJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_workbookId; bool m_workbookIdHasBeenSet = false; ImportDataSource m_dataSource; bool m_dataSourceHasBeenSet = false; ImportSourceDataFormat m_dataFormat; bool m_dataFormatHasBeenSet = false; Aws::String m_destinationTableId; bool m_destinationTableIdHasBeenSet = false; ImportOptions m_importOptions; bool m_importOptionsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws