AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
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
38class Gender {
39 public:
40 AWS_REKOGNITION_API Gender() = default;
41 AWS_REKOGNITION_API Gender(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REKOGNITION_API Gender& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline GenderType GetValue() const { return m_value; }
50 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
51 inline void SetValue(GenderType value) {
52 m_valueHasBeenSet = true;
53 m_value = value;
54 }
55 inline Gender& WithValue(GenderType value) {
56 SetValue(value);
57 return *this;
58 }
60
62
65 inline double GetConfidence() const { return m_confidence; }
66 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
67 inline void SetConfidence(double value) {
68 m_confidenceHasBeenSet = true;
69 m_confidence = value;
70 }
71 inline Gender& WithConfidence(double value) {
72 SetConfidence(value);
73 return *this;
74 }
76 private:
78
79 double m_confidence{0.0};
80 bool m_valueHasBeenSet = false;
81 bool m_confidenceHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Rekognition
86} // 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:55
AWS_REKOGNITION_API Gender & operator=(Aws::Utils::Json::JsonView jsonValue)
Gender & WithConfidence(double value)
Definition Gender.h:71
double GetConfidence() const
Definition Gender.h:65
GenderType GetValue() const
Definition Gender.h:49
void SetValue(GenderType value)
Definition Gender.h:51
AWS_REKOGNITION_API Gender(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Gender()=default
Aws::Utils::Json::JsonValue JsonValue