AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition
22{
23namespace Model
24{
25
37 class Emotion
38 {
39 public:
40 AWS_REKOGNITION_API Emotion() = default;
41 AWS_REKOGNITION_API Emotion(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REKOGNITION_API Emotion& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline EmotionName GetType() const { return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(EmotionName value) { m_typeHasBeenSet = true; m_type = value; }
53 inline Emotion& WithType(EmotionName value) { SetType(value); return *this;}
55
57
60 inline double GetConfidence() const { return m_confidence; }
61 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
62 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
63 inline Emotion& WithConfidence(double value) { SetConfidence(value); return *this;}
65 private:
66
68 bool m_typeHasBeenSet = false;
69
70 double m_confidence{0.0};
71 bool m_confidenceHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Rekognition
76} // namespace Aws
Emotion & WithType(EmotionName value)
Definition Emotion.h:53
void SetType(EmotionName value)
Definition Emotion.h:52
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:63
EmotionName GetType() const
Definition Emotion.h:50
void SetConfidence(double value)
Definition Emotion.h:62
Aws::Utils::Json::JsonValue JsonValue