1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/rekognition/Rekognition_EXPORTS.h> 8 #include <aws/rekognition/model/TextDetection.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace Rekognition 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Information about text detected in a video. Incudes the detected text, the 28 * time in milliseconds from the start of the video that the text was detected, and 29 * where it was detected on the screen.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/TextDetectionResult">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_REKOGNITION_API TextDetectionResult 34 { 35 public: 36 TextDetectionResult(); 37 TextDetectionResult(Aws::Utils::Json::JsonView jsonValue); 38 TextDetectionResult& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>The time, in milliseconds from the start of the video, that the text was 44 * detected.</p> 45 */ GetTimestamp()46 inline long long GetTimestamp() const{ return m_timestamp; } 47 48 /** 49 * <p>The time, in milliseconds from the start of the video, that the text was 50 * detected.</p> 51 */ TimestampHasBeenSet()52 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } 53 54 /** 55 * <p>The time, in milliseconds from the start of the video, that the text was 56 * detected.</p> 57 */ SetTimestamp(long long value)58 inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; } 59 60 /** 61 * <p>The time, in milliseconds from the start of the video, that the text was 62 * detected.</p> 63 */ WithTimestamp(long long value)64 inline TextDetectionResult& WithTimestamp(long long value) { SetTimestamp(value); return *this;} 65 66 67 /** 68 * <p>Details about text detected in a video.</p> 69 */ GetTextDetection()70 inline const TextDetection& GetTextDetection() const{ return m_textDetection; } 71 72 /** 73 * <p>Details about text detected in a video.</p> 74 */ TextDetectionHasBeenSet()75 inline bool TextDetectionHasBeenSet() const { return m_textDetectionHasBeenSet; } 76 77 /** 78 * <p>Details about text detected in a video.</p> 79 */ SetTextDetection(const TextDetection & value)80 inline void SetTextDetection(const TextDetection& value) { m_textDetectionHasBeenSet = true; m_textDetection = value; } 81 82 /** 83 * <p>Details about text detected in a video.</p> 84 */ SetTextDetection(TextDetection && value)85 inline void SetTextDetection(TextDetection&& value) { m_textDetectionHasBeenSet = true; m_textDetection = std::move(value); } 86 87 /** 88 * <p>Details about text detected in a video.</p> 89 */ WithTextDetection(const TextDetection & value)90 inline TextDetectionResult& WithTextDetection(const TextDetection& value) { SetTextDetection(value); return *this;} 91 92 /** 93 * <p>Details about text detected in a video.</p> 94 */ WithTextDetection(TextDetection && value)95 inline TextDetectionResult& WithTextDetection(TextDetection&& value) { SetTextDetection(std::move(value)); return *this;} 96 97 private: 98 99 long long m_timestamp; 100 bool m_timestampHasBeenSet; 101 102 TextDetection m_textDetection; 103 bool m_textDetectionHasBeenSet; 104 }; 105 106 } // namespace Model 107 } // namespace Rekognition 108 } // namespace Aws 109