/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Rekognition { namespace Model { /** */ class GetLabelDetectionRequest : public RekognitionRequest { public: AWS_REKOGNITION_API GetLabelDetectionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetLabelDetection"; } AWS_REKOGNITION_API Aws::String SerializePayload() const override; AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Job identifier for the label detection operation for which you want results * returned. You get the job identifer from an initial call to * StartlabelDetection.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

Job identifier for the label detection operation for which you want results * returned. You get the job identifer from an initial call to * StartlabelDetection.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

Job identifier for the label detection operation for which you want results * returned. You get the job identifer from an initial call to * StartlabelDetection.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

Job identifier for the label detection operation for which you want results * returned. You get the job identifer from an initial call to * StartlabelDetection.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

Job identifier for the label detection operation for which you want results * returned. You get the job identifer from an initial call to * StartlabelDetection.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

Job identifier for the label detection operation for which you want results * returned. You get the job identifer from an initial call to * StartlabelDetection.

*/ inline GetLabelDetectionRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

Job identifier for the label detection operation for which you want results * returned. You get the job identifer from an initial call to * StartlabelDetection.

*/ inline GetLabelDetectionRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

Job identifier for the label detection operation for which you want results * returned. You get the job identifer from an initial call to * StartlabelDetection.

*/ inline GetLabelDetectionRequest& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

Maximum number of results to return per paginated call. The largest value you * can specify is 1000. If you specify a value greater than 1000, a maximum of 1000 * results is returned. The default value is 1000.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

Maximum number of results to return per paginated call. The largest value you * can specify is 1000. If you specify a value greater than 1000, a maximum of 1000 * results is returned. The default value is 1000.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

Maximum number of results to return per paginated call. The largest value you * can specify is 1000. If you specify a value greater than 1000, a maximum of 1000 * results is returned. The default value is 1000.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

Maximum number of results to return per paginated call. The largest value you * can specify is 1000. If you specify a value greater than 1000, a maximum of 1000 * results is returned. The default value is 1000.

*/ inline GetLabelDetectionRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

If the previous response was incomplete (because there are more labels to * retrieve), Amazon Rekognition Video returns a pagination token in the response. * You can use this pagination token to retrieve the next set of labels.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the previous response was incomplete (because there are more labels to * retrieve), Amazon Rekognition Video returns a pagination token in the response. * You can use this pagination token to retrieve the next set of labels.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

If the previous response was incomplete (because there are more labels to * retrieve), Amazon Rekognition Video returns a pagination token in the response. * You can use this pagination token to retrieve the next set of labels.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

If the previous response was incomplete (because there are more labels to * retrieve), Amazon Rekognition Video returns a pagination token in the response. * You can use this pagination token to retrieve the next set of labels.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

If the previous response was incomplete (because there are more labels to * retrieve), Amazon Rekognition Video returns a pagination token in the response. * You can use this pagination token to retrieve the next set of labels.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

If the previous response was incomplete (because there are more labels to * retrieve), Amazon Rekognition Video returns a pagination token in the response. * You can use this pagination token to retrieve the next set of labels.

*/ inline GetLabelDetectionRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the previous response was incomplete (because there are more labels to * retrieve), Amazon Rekognition Video returns a pagination token in the response. * You can use this pagination token to retrieve the next set of labels.

*/ inline GetLabelDetectionRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the previous response was incomplete (because there are more labels to * retrieve), Amazon Rekognition Video returns a pagination token in the response. * You can use this pagination token to retrieve the next set of labels.

*/ inline GetLabelDetectionRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Sort to use for elements in the Labels array. Use * TIMESTAMP to sort array elements by the time labels are detected. * Use NAME to alphabetically group elements for a label together. * Within each label group, the array element are sorted by detection confidence. * The default sort is by TIMESTAMP.

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

Sort to use for elements in the Labels array. Use * TIMESTAMP to sort array elements by the time labels are detected. * Use NAME to alphabetically group elements for a label together. * Within each label group, the array element are sorted by detection confidence. * The default sort is by TIMESTAMP.

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

Sort to use for elements in the Labels array. Use * TIMESTAMP to sort array elements by the time labels are detected. * Use NAME to alphabetically group elements for a label together. * Within each label group, the array element are sorted by detection confidence. * The default sort is by TIMESTAMP.

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

Sort to use for elements in the Labels array. Use * TIMESTAMP to sort array elements by the time labels are detected. * Use NAME to alphabetically group elements for a label together. * Within each label group, the array element are sorted by detection confidence. * The default sort is by TIMESTAMP.

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

Sort to use for elements in the Labels array. Use * TIMESTAMP to sort array elements by the time labels are detected. * Use NAME to alphabetically group elements for a label together. * Within each label group, the array element are sorted by detection confidence. * The default sort is by TIMESTAMP.

*/ inline GetLabelDetectionRequest& WithSortBy(const LabelDetectionSortBy& value) { SetSortBy(value); return *this;} /** *

Sort to use for elements in the Labels array. Use * TIMESTAMP to sort array elements by the time labels are detected. * Use NAME to alphabetically group elements for a label together. * Within each label group, the array element are sorted by detection confidence. * The default sort is by TIMESTAMP.

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

Defines how to aggregate the returned results. Results can be aggregated by * timestamps or segments.

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

Defines how to aggregate the returned results. Results can be aggregated by * timestamps or segments.

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

Defines how to aggregate the returned results. Results can be aggregated by * timestamps or segments.

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

Defines how to aggregate the returned results. Results can be aggregated by * timestamps or segments.

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

Defines how to aggregate the returned results. Results can be aggregated by * timestamps or segments.

*/ inline GetLabelDetectionRequest& WithAggregateBy(const LabelDetectionAggregateBy& value) { SetAggregateBy(value); return *this;} /** *

Defines how to aggregate the returned results. Results can be aggregated by * timestamps or segments.

*/ inline GetLabelDetectionRequest& WithAggregateBy(LabelDetectionAggregateBy&& value) { SetAggregateBy(std::move(value)); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; LabelDetectionSortBy m_sortBy; bool m_sortByHasBeenSet = false; LabelDetectionAggregateBy m_aggregateBy; bool m_aggregateByHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws