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

Represents a limit imposed on number of Amazon S3 files that should be * selected for a dataset from a connected Amazon S3 path.

See Also:

* AWS * API Reference

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

The number of Amazon S3 files to select.

*/ inline int GetMaxFiles() const{ return m_maxFiles; } /** *

The number of Amazon S3 files to select.

*/ inline bool MaxFilesHasBeenSet() const { return m_maxFilesHasBeenSet; } /** *

The number of Amazon S3 files to select.

*/ inline void SetMaxFiles(int value) { m_maxFilesHasBeenSet = true; m_maxFiles = value; } /** *

The number of Amazon S3 files to select.

*/ inline FilesLimit& WithMaxFiles(int value) { SetMaxFiles(value); return *this;} /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only * allowed value.

*/ inline const OrderedBy& GetOrderedBy() const{ return m_orderedBy; } /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only * allowed value.

*/ inline bool OrderedByHasBeenSet() const { return m_orderedByHasBeenSet; } /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only * allowed value.

*/ inline void SetOrderedBy(const OrderedBy& value) { m_orderedByHasBeenSet = true; m_orderedBy = value; } /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only * allowed value.

*/ inline void SetOrderedBy(OrderedBy&& value) { m_orderedByHasBeenSet = true; m_orderedBy = std::move(value); } /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only * allowed value.

*/ inline FilesLimit& WithOrderedBy(const OrderedBy& value) { SetOrderedBy(value); return *this;} /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only * allowed value.

*/ inline FilesLimit& WithOrderedBy(OrderedBy&& value) { SetOrderedBy(std::move(value)); return *this;} /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses DESCENDING order, i.e. most recent files are selected first. * Another possible value is ASCENDING.

*/ inline const Order& GetOrder() const{ return m_order; } /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses DESCENDING order, i.e. most recent files are selected first. * Another possible value is ASCENDING.

*/ inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; } /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses DESCENDING order, i.e. most recent files are selected first. * Another possible value is ASCENDING.

*/ inline void SetOrder(const Order& value) { m_orderHasBeenSet = true; m_order = value; } /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses DESCENDING order, i.e. most recent files are selected first. * Another possible value is ASCENDING.

*/ inline void SetOrder(Order&& value) { m_orderHasBeenSet = true; m_order = std::move(value); } /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses DESCENDING order, i.e. most recent files are selected first. * Another possible value is ASCENDING.

*/ inline FilesLimit& WithOrder(const Order& value) { SetOrder(value); return *this;} /** *

A criteria to use for Amazon S3 files sorting before their selection. By * default uses DESCENDING order, i.e. most recent files are selected first. * Another possible value is ASCENDING.

*/ inline FilesLimit& WithOrder(Order&& value) { SetOrder(std::move(value)); return *this;} private: int m_maxFiles; bool m_maxFilesHasBeenSet = false; OrderedBy m_orderedBy; bool m_orderedByHasBeenSet = false; Order m_order; bool m_orderHasBeenSet = false; }; } // namespace Model } // namespace GlueDataBrew } // namespace Aws