AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
36 class Emotion
37 {
38 public:
39 AWS_REKOGNITION_API Emotion();
40 AWS_REKOGNITION_API Emotion(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REKOGNITION_API Emotion& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const EmotionName& GetType() const{ return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(const EmotionName& value) { m_typeHasBeenSet = true; m_type = value; }
52 inline void SetType(EmotionName&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
53 inline Emotion& WithType(const EmotionName& value) { SetType(value); return *this;}
54 inline Emotion& WithType(EmotionName&& value) { SetType(std::move(value)); return *this;}
56
58
61 inline double GetConfidence() const{ return m_confidence; }
62 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
63 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
64 inline Emotion& WithConfidence(double value) { SetConfidence(value); return *this;}
66 private:
67
68 EmotionName m_type;
69 bool m_typeHasBeenSet = false;
70
71 double m_confidence;
72 bool m_confidenceHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Rekognition
77} // namespace Aws
const EmotionName & GetType() const
Definition Emotion.h:49
void SetType(EmotionName &&value)
Definition Emotion.h:52
Emotion & WithType(const EmotionName &value)
Definition Emotion.h:53
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
bool ConfidenceHasBeenSet() const
Definition Emotion.h:62
Emotion & WithType(EmotionName &&value)
Definition Emotion.h:54
AWS_REKOGNITION_API Emotion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Emotion(Aws::Utils::Json::JsonView jsonValue)
void SetType(const EmotionName &value)
Definition Emotion.h:51
AWS_REKOGNITION_API Emotion()
Emotion & WithConfidence(double value)
Definition Emotion.h:64
void SetConfidence(double value)
Definition Emotion.h:63
Aws::Utils::Json::JsonValue JsonValue