AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
LabelDetection.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/Label.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Rekognition {
20namespace Model {
21
29 public:
30 AWS_REKOGNITION_API LabelDetection() = default;
31 AWS_REKOGNITION_API LabelDetection(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REKOGNITION_API LabelDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline long long GetTimestamp() const { return m_timestamp; }
42 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
43 inline void SetTimestamp(long long value) {
44 m_timestampHasBeenSet = true;
45 m_timestamp = value;
46 }
47 inline LabelDetection& WithTimestamp(long long value) {
48 SetTimestamp(value);
49 return *this;
50 }
52
54
57 inline const Label& GetLabel() const { return m_label; }
58 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
59 template <typename LabelT = Label>
60 void SetLabel(LabelT&& value) {
61 m_labelHasBeenSet = true;
62 m_label = std::forward<LabelT>(value);
63 }
64 template <typename LabelT = Label>
65 LabelDetection& WithLabel(LabelT&& value) {
66 SetLabel(std::forward<LabelT>(value));
67 return *this;
68 }
70
72
76 inline long long GetStartTimestampMillis() const { return m_startTimestampMillis; }
77 inline bool StartTimestampMillisHasBeenSet() const { return m_startTimestampMillisHasBeenSet; }
78 inline void SetStartTimestampMillis(long long value) {
79 m_startTimestampMillisHasBeenSet = true;
80 m_startTimestampMillis = value;
81 }
82 inline LabelDetection& WithStartTimestampMillis(long long value) {
84 return *this;
85 }
87
89
93 inline long long GetEndTimestampMillis() const { return m_endTimestampMillis; }
94 inline bool EndTimestampMillisHasBeenSet() const { return m_endTimestampMillisHasBeenSet; }
95 inline void SetEndTimestampMillis(long long value) {
96 m_endTimestampMillisHasBeenSet = true;
97 m_endTimestampMillis = value;
98 }
99 inline LabelDetection& WithEndTimestampMillis(long long value) {
101 return *this;
102 }
104
106
110 inline long long GetDurationMillis() const { return m_durationMillis; }
111 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
112 inline void SetDurationMillis(long long value) {
113 m_durationMillisHasBeenSet = true;
114 m_durationMillis = value;
115 }
116 inline LabelDetection& WithDurationMillis(long long value) {
117 SetDurationMillis(value);
118 return *this;
119 }
121 private:
122 long long m_timestamp{0};
123
124 Label m_label;
125
126 long long m_startTimestampMillis{0};
127
128 long long m_endTimestampMillis{0};
129
130 long long m_durationMillis{0};
131 bool m_timestampHasBeenSet = false;
132 bool m_labelHasBeenSet = false;
133 bool m_startTimestampMillisHasBeenSet = false;
134 bool m_endTimestampMillisHasBeenSet = false;
135 bool m_durationMillisHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Rekognition
140} // namespace Aws
AWS_REKOGNITION_API LabelDetection(Aws::Utils::Json::JsonView jsonValue)
LabelDetection & WithEndTimestampMillis(long long value)
LabelDetection & WithStartTimestampMillis(long long value)
void SetStartTimestampMillis(long long value)
LabelDetection & WithLabel(LabelT &&value)
LabelDetection & WithDurationMillis(long long value)
LabelDetection & WithTimestamp(long long value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API LabelDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEndTimestampMillis(long long value)
AWS_REKOGNITION_API LabelDetection()=default
Aws::Utils::Json::JsonValue JsonValue