AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ModerationLabel.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 {
37 public:
38 AWS_REKOGNITION_API ModerationLabel() = default;
39 AWS_REKOGNITION_API ModerationLabel(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REKOGNITION_API ModerationLabel& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline double GetConfidence() const { return m_confidence; }
52 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
53 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
54 inline ModerationLabel& WithConfidence(double value) { SetConfidence(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 ModerationLabel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
74 inline const Aws::String& GetParentName() const { return m_parentName; }
75 inline bool ParentNameHasBeenSet() const { return m_parentNameHasBeenSet; }
76 template<typename ParentNameT = Aws::String>
77 void SetParentName(ParentNameT&& value) { m_parentNameHasBeenSet = true; m_parentName = std::forward<ParentNameT>(value); }
78 template<typename ParentNameT = Aws::String>
79 ModerationLabel& WithParentName(ParentNameT&& value) { SetParentName(std::forward<ParentNameT>(value)); return *this;}
81
83
87 inline int GetTaxonomyLevel() const { return m_taxonomyLevel; }
88 inline bool TaxonomyLevelHasBeenSet() const { return m_taxonomyLevelHasBeenSet; }
89 inline void SetTaxonomyLevel(int value) { m_taxonomyLevelHasBeenSet = true; m_taxonomyLevel = value; }
90 inline ModerationLabel& WithTaxonomyLevel(int value) { SetTaxonomyLevel(value); return *this;}
92 private:
93
94 double m_confidence{0.0};
95 bool m_confidenceHasBeenSet = false;
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_parentName;
101 bool m_parentNameHasBeenSet = false;
102
103 int m_taxonomyLevel{0};
104 bool m_taxonomyLevelHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Rekognition
109} // 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