AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Emotion.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/EmotionName.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
33class Emotion {
34 public:
35 AWS_REKOGNITION_API Emotion() = default;
36 AWS_REKOGNITION_API Emotion(Aws::Utils::Json::JsonView jsonValue);
37 AWS_REKOGNITION_API Emotion& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline EmotionName GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 inline void SetType(EmotionName value) {
47 m_typeHasBeenSet = true;
48 m_type = value;
49 }
50 inline Emotion& WithType(EmotionName value) {
51 SetType(value);
52 return *this;
53 }
55
57
60 inline double GetConfidence() const { return m_confidence; }
61 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
62 inline void SetConfidence(double value) {
63 m_confidenceHasBeenSet = true;
64 m_confidence = value;
65 }
66 inline Emotion& WithConfidence(double value) {
67 SetConfidence(value);
68 return *this;
69 }
71 private:
73
74 double m_confidence{0.0};
75 bool m_typeHasBeenSet = false;
76 bool m_confidenceHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Rekognition
81} // namespace Aws
Emotion & WithType(EmotionName value)
Definition Emotion.h:50
void SetType(EmotionName value)
Definition Emotion.h:46
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
bool ConfidenceHasBeenSet() const
Definition Emotion.h:61
AWS_REKOGNITION_API Emotion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Emotion(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Emotion()=default
Emotion & WithConfidence(double value)
Definition Emotion.h:66
EmotionName GetType() const
Definition Emotion.h:44
void SetConfidence(double value)
Definition Emotion.h:62
Aws::Utils::Json::JsonValue JsonValue