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

Defines a non-overlapping region of a table's partitions, allowing multiple * requests to be run in parallel.

See Also:

AWS API * Reference

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

The zero-based index number of the segment. For example, if the total number * of segments is 4, SegmentNumber values range from 0 through 3.

*/ inline int GetSegmentNumber() const{ return m_segmentNumber; } /** *

The zero-based index number of the segment. For example, if the total number * of segments is 4, SegmentNumber values range from 0 through 3.

*/ inline bool SegmentNumberHasBeenSet() const { return m_segmentNumberHasBeenSet; } /** *

The zero-based index number of the segment. For example, if the total number * of segments is 4, SegmentNumber values range from 0 through 3.

*/ inline void SetSegmentNumber(int value) { m_segmentNumberHasBeenSet = true; m_segmentNumber = value; } /** *

The zero-based index number of the segment. For example, if the total number * of segments is 4, SegmentNumber values range from 0 through 3.

*/ inline Segment& WithSegmentNumber(int value) { SetSegmentNumber(value); return *this;} /** *

The total number of segments.

*/ inline int GetTotalSegments() const{ return m_totalSegments; } /** *

The total number of segments.

*/ inline bool TotalSegmentsHasBeenSet() const { return m_totalSegmentsHasBeenSet; } /** *

The total number of segments.

*/ inline void SetTotalSegments(int value) { m_totalSegmentsHasBeenSet = true; m_totalSegments = value; } /** *

The total number of segments.

*/ inline Segment& WithTotalSegments(int value) { SetTotalSegments(value); return *this;} private: int m_segmentNumber; bool m_segmentNumberHasBeenSet = false; int m_totalSegments; bool m_totalSegmentsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws