/** * 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 Rekognition { namespace Model { /** *

Contains metadata about a content moderation request, including the SortBy * and AggregateBy options.

See Also:

AWS * API Reference

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

The sorting method chosen for a GetContentModeration request.

*/ inline const ContentModerationSortBy& GetSortBy() const{ return m_sortBy; } /** *

The sorting method chosen for a GetContentModeration request.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

The sorting method chosen for a GetContentModeration request.

*/ inline void SetSortBy(const ContentModerationSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The sorting method chosen for a GetContentModeration request.

*/ inline void SetSortBy(ContentModerationSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

The sorting method chosen for a GetContentModeration request.

*/ inline GetContentModerationRequestMetadata& WithSortBy(const ContentModerationSortBy& value) { SetSortBy(value); return *this;} /** *

The sorting method chosen for a GetContentModeration request.

*/ inline GetContentModerationRequestMetadata& WithSortBy(ContentModerationSortBy&& value) { SetSortBy(std::move(value)); return *this;} /** *

The aggregation method chosen for a GetContentModeration request.

*/ inline const ContentModerationAggregateBy& GetAggregateBy() const{ return m_aggregateBy; } /** *

The aggregation method chosen for a GetContentModeration request.

*/ inline bool AggregateByHasBeenSet() const { return m_aggregateByHasBeenSet; } /** *

The aggregation method chosen for a GetContentModeration request.

*/ inline void SetAggregateBy(const ContentModerationAggregateBy& value) { m_aggregateByHasBeenSet = true; m_aggregateBy = value; } /** *

The aggregation method chosen for a GetContentModeration request.

*/ inline void SetAggregateBy(ContentModerationAggregateBy&& value) { m_aggregateByHasBeenSet = true; m_aggregateBy = std::move(value); } /** *

The aggregation method chosen for a GetContentModeration request.

*/ inline GetContentModerationRequestMetadata& WithAggregateBy(const ContentModerationAggregateBy& value) { SetAggregateBy(value); return *this;} /** *

The aggregation method chosen for a GetContentModeration request.

*/ inline GetContentModerationRequestMetadata& WithAggregateBy(ContentModerationAggregateBy&& value) { SetAggregateBy(std::move(value)); return *this;} private: ContentModerationSortBy m_sortBy; bool m_sortByHasBeenSet = false; ContentModerationAggregateBy m_aggregateBy; bool m_aggregateByHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws