AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ShotSegment.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Rekognition {
17namespace Model {
18
26 public:
27 AWS_REKOGNITION_API ShotSegment() = default;
28 AWS_REKOGNITION_API ShotSegment(Aws::Utils::Json::JsonView jsonValue);
29 AWS_REKOGNITION_API ShotSegment& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline long long GetIndex() const { return m_index; }
37 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
38 inline void SetIndex(long long value) {
39 m_indexHasBeenSet = true;
40 m_index = value;
41 }
42 inline ShotSegment& WithIndex(long long value) {
43 SetIndex(value);
44 return *this;
45 }
47
49
53 inline double GetConfidence() const { return m_confidence; }
54 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
55 inline void SetConfidence(double value) {
56 m_confidenceHasBeenSet = true;
57 m_confidence = value;
58 }
59 inline ShotSegment& WithConfidence(double value) {
60 SetConfidence(value);
61 return *this;
62 }
64 private:
65 long long m_index{0};
66
67 double m_confidence{0.0};
68 bool m_indexHasBeenSet = false;
69 bool m_confidenceHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace Rekognition
74} // namespace Aws
AWS_REKOGNITION_API ShotSegment()=default
AWS_REKOGNITION_API ShotSegment(Aws::Utils::Json::JsonView jsonValue)
ShotSegment & WithConfidence(double value)
Definition ShotSegment.h:59
AWS_REKOGNITION_API ShotSegment & operator=(Aws::Utils::Json::JsonView jsonValue)
ShotSegment & WithIndex(long long value)
Definition ShotSegment.h:42
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue