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

Specifies an Amazon DynamoDB table to crawl.

See Also:

AWS * API Reference

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

The name of the DynamoDB table to crawl.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The name of the DynamoDB table to crawl.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The name of the DynamoDB table to crawl.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The name of the DynamoDB table to crawl.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The name of the DynamoDB table to crawl.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The name of the DynamoDB table to crawl.

*/ inline DynamoDBTarget& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The name of the DynamoDB table to crawl.

*/ inline DynamoDBTarget& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The name of the DynamoDB table to crawl.

*/ inline DynamoDBTarget& WithPath(const char* value) { SetPath(value); return *this;} /** *

Indicates whether to scan all the records, or to sample rows from the table. * Scanning all the records can take a long time when the table is not a high * throughput table.

A value of true means to scan all records, * while a value of false means to sample the records. If no value is * specified, the value defaults to true.

*/ inline bool GetScanAll() const{ return m_scanAll; } /** *

Indicates whether to scan all the records, or to sample rows from the table. * Scanning all the records can take a long time when the table is not a high * throughput table.

A value of true means to scan all records, * while a value of false means to sample the records. If no value is * specified, the value defaults to true.

*/ inline bool ScanAllHasBeenSet() const { return m_scanAllHasBeenSet; } /** *

Indicates whether to scan all the records, or to sample rows from the table. * Scanning all the records can take a long time when the table is not a high * throughput table.

A value of true means to scan all records, * while a value of false means to sample the records. If no value is * specified, the value defaults to true.

*/ inline void SetScanAll(bool value) { m_scanAllHasBeenSet = true; m_scanAll = value; } /** *

Indicates whether to scan all the records, or to sample rows from the table. * Scanning all the records can take a long time when the table is not a high * throughput table.

A value of true means to scan all records, * while a value of false means to sample the records. If no value is * specified, the value defaults to true.

*/ inline DynamoDBTarget& WithScanAll(bool value) { SetScanAll(value); return *this;} /** *

The percentage of the configured read capacity units to use by the Glue * crawler. Read capacity units is a term defined by DynamoDB, and is a numeric * value that acts as rate limiter for the number of reads that can be performed on * that table per second.

The valid values are null or a value between 0.1 * to 1.5. A null value is used when user does not provide a value, and defaults to * 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of * the max configured Read Capacity Unit (for tables using on-demand mode).

*/ inline double GetScanRate() const{ return m_scanRate; } /** *

The percentage of the configured read capacity units to use by the Glue * crawler. Read capacity units is a term defined by DynamoDB, and is a numeric * value that acts as rate limiter for the number of reads that can be performed on * that table per second.

The valid values are null or a value between 0.1 * to 1.5. A null value is used when user does not provide a value, and defaults to * 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of * the max configured Read Capacity Unit (for tables using on-demand mode).

*/ inline bool ScanRateHasBeenSet() const { return m_scanRateHasBeenSet; } /** *

The percentage of the configured read capacity units to use by the Glue * crawler. Read capacity units is a term defined by DynamoDB, and is a numeric * value that acts as rate limiter for the number of reads that can be performed on * that table per second.

The valid values are null or a value between 0.1 * to 1.5. A null value is used when user does not provide a value, and defaults to * 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of * the max configured Read Capacity Unit (for tables using on-demand mode).

*/ inline void SetScanRate(double value) { m_scanRateHasBeenSet = true; m_scanRate = value; } /** *

The percentage of the configured read capacity units to use by the Glue * crawler. Read capacity units is a term defined by DynamoDB, and is a numeric * value that acts as rate limiter for the number of reads that can be performed on * that table per second.

The valid values are null or a value between 0.1 * to 1.5. A null value is used when user does not provide a value, and defaults to * 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of * the max configured Read Capacity Unit (for tables using on-demand mode).

*/ inline DynamoDBTarget& WithScanRate(double value) { SetScanRate(value); return *this;} private: Aws::String m_path; bool m_pathHasBeenSet = false; bool m_scanAll; bool m_scanAllHasBeenSet = false; double m_scanRate; bool m_scanRateHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws