AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Gender.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/GenderType.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
42 class Gender
43 {
44 public:
45 AWS_REKOGNITION_API Gender() = default;
46 AWS_REKOGNITION_API Gender(Aws::Utils::Json::JsonView jsonValue);
47 AWS_REKOGNITION_API Gender& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline GenderType GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 inline void SetValue(GenderType value) { m_valueHasBeenSet = true; m_value = value; }
58 inline Gender& WithValue(GenderType value) { SetValue(value); return *this;}
60
62
65 inline double GetConfidence() const { return m_confidence; }
66 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
67 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
68 inline Gender& WithConfidence(double value) { SetConfidence(value); return *this;}
70 private:
71
73 bool m_valueHasBeenSet = false;
74
75 double m_confidence{0.0};
76 bool m_confidenceHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Rekognition
81} // namespace Aws
bool ConfidenceHasBeenSet() const
Definition Gender.h:66
void SetConfidence(double value)
Definition Gender.h:67
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
Gender & WithValue(GenderType value)
Definition Gender.h:58
AWS_REKOGNITION_API Gender & operator=(Aws::Utils::Json::JsonView jsonValue)
Gender & WithConfidence(double value)
Definition Gender.h:68
double GetConfidence() const
Definition Gender.h:65
GenderType GetValue() const
Definition Gender.h:55
void SetValue(GenderType value)
Definition Gender.h:57
AWS_REKOGNITION_API Gender(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Gender()=default
Aws::Utils::Json::JsonValue JsonValue