/** * 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 DocumentDB or MongoDB data store to crawl.

See * Also:

AWS * API Reference

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

The name of the connection to use to connect to the Amazon DocumentDB or * MongoDB target.

*/ inline const Aws::String& GetConnectionName() const{ return m_connectionName; } /** *

The name of the connection to use to connect to the Amazon DocumentDB or * MongoDB target.

*/ inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; } /** *

The name of the connection to use to connect to the Amazon DocumentDB or * MongoDB target.

*/ inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; } /** *

The name of the connection to use to connect to the Amazon DocumentDB or * MongoDB target.

*/ inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); } /** *

The name of the connection to use to connect to the Amazon DocumentDB or * MongoDB target.

*/ inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); } /** *

The name of the connection to use to connect to the Amazon DocumentDB or * MongoDB target.

*/ inline MongoDBTarget& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;} /** *

The name of the connection to use to connect to the Amazon DocumentDB or * MongoDB target.

*/ inline MongoDBTarget& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;} /** *

The name of the connection to use to connect to the Amazon DocumentDB or * MongoDB target.

*/ inline MongoDBTarget& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} /** *

The path of the Amazon DocumentDB or MongoDB target * (database/collection).

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

The path of the Amazon DocumentDB or MongoDB target * (database/collection).

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

The path of the Amazon DocumentDB or MongoDB target * (database/collection).

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

The path of the Amazon DocumentDB or MongoDB target * (database/collection).

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

The path of the Amazon DocumentDB or MongoDB target * (database/collection).

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

The path of the Amazon DocumentDB or MongoDB target * (database/collection).

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

The path of the Amazon DocumentDB or MongoDB target * (database/collection).

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

The path of the Amazon DocumentDB or MongoDB target * (database/collection).

*/ inline MongoDBTarget& 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 MongoDBTarget& WithScanAll(bool value) { SetScanAll(value); return *this;} private: Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; bool m_scanAll; bool m_scanAllHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws