AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ModerationLabel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/Rekognition_EXPORTS.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
32 public:
33 AWS_REKOGNITION_API ModerationLabel() = default;
34 AWS_REKOGNITION_API ModerationLabel(Aws::Utils::Json::JsonView jsonValue);
35 AWS_REKOGNITION_API ModerationLabel& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline double GetConfidence() const { return m_confidence; }
46 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
47 inline void SetConfidence(double value) {
48 m_confidenceHasBeenSet = true;
49 m_confidence = value;
50 }
51 inline ModerationLabel& WithConfidence(double value) {
52 SetConfidence(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 ModerationLabel& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetParentName() const { return m_parentName; }
81 inline bool ParentNameHasBeenSet() const { return m_parentNameHasBeenSet; }
82 template <typename ParentNameT = Aws::String>
83 void SetParentName(ParentNameT&& value) {
84 m_parentNameHasBeenSet = true;
85 m_parentName = std::forward<ParentNameT>(value);
86 }
87 template <typename ParentNameT = Aws::String>
88 ModerationLabel& WithParentName(ParentNameT&& value) {
89 SetParentName(std::forward<ParentNameT>(value));
90 return *this;
91 }
93
95
99 inline int GetTaxonomyLevel() const { return m_taxonomyLevel; }
100 inline bool TaxonomyLevelHasBeenSet() const { return m_taxonomyLevelHasBeenSet; }
101 inline void SetTaxonomyLevel(int value) {
102 m_taxonomyLevelHasBeenSet = true;
103 m_taxonomyLevel = value;
104 }
106 SetTaxonomyLevel(value);
107 return *this;
108 }
110 private:
111 double m_confidence{0.0};
112 bool m_confidenceHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_parentName;
118 bool m_parentNameHasBeenSet = false;
119
120 int m_taxonomyLevel{0};
121 bool m_taxonomyLevelHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Rekognition
126} // namespace Aws
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetParentName() const
AWS_REKOGNITION_API ModerationLabel & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParentName(ParentNameT &&value)
ModerationLabel & WithParentName(ParentNameT &&value)
AWS_REKOGNITION_API ModerationLabel(Aws::Utils::Json::JsonView jsonValue)
ModerationLabel & WithTaxonomyLevel(int value)
AWS_REKOGNITION_API ModerationLabel()=default
const Aws::String & GetName() const
ModerationLabel & WithName(NameT &&value)
ModerationLabel & WithConfidence(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue