AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline ModerationLabel& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline ModerationLabel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline ModerationLabel& WithName(const char* value) { SetName(value); return *this;}
70
72
76 inline const Aws::String& GetParentName() const{ return m_parentName; }
77 inline bool ParentNameHasBeenSet() const { return m_parentNameHasBeenSet; }
78 inline void SetParentName(const Aws::String& value) { m_parentNameHasBeenSet = true; m_parentName = value; }
79 inline void SetParentName(Aws::String&& value) { m_parentNameHasBeenSet = true; m_parentName = std::move(value); }
80 inline void SetParentName(const char* value) { m_parentNameHasBeenSet = true; m_parentName.assign(value); }
81 inline ModerationLabel& WithParentName(const Aws::String& value) { SetParentName(value); return *this;}
82 inline ModerationLabel& WithParentName(Aws::String&& value) { SetParentName(std::move(value)); return *this;}
83 inline ModerationLabel& WithParentName(const char* value) { SetParentName(value); return *this;}
85
87
91 inline int GetTaxonomyLevel() const{ return m_taxonomyLevel; }
92 inline bool TaxonomyLevelHasBeenSet() const { return m_taxonomyLevelHasBeenSet; }
93 inline void SetTaxonomyLevel(int value) { m_taxonomyLevelHasBeenSet = true; m_taxonomyLevel = value; }
94 inline ModerationLabel& WithTaxonomyLevel(int value) { SetTaxonomyLevel(value); return *this;}
96 private:
97
98 double m_confidence;
99 bool m_confidenceHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::String m_parentName;
105 bool m_parentNameHasBeenSet = false;
106
107 int m_taxonomyLevel;
108 bool m_taxonomyLevelHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Rekognition
113} // 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)
ModerationLabel & WithName(const char *value)
void SetParentName(Aws::String &&value)
ModerationLabel & WithParentName(const char *value)
AWS_REKOGNITION_API ModerationLabel(Aws::Utils::Json::JsonView jsonValue)
ModerationLabel & WithName(const Aws::String &value)
ModerationLabel & WithName(Aws::String &&value)
ModerationLabel & WithParentName(const Aws::String &value)
void SetParentName(const Aws::String &value)
void SetName(const Aws::String &value)
ModerationLabel & WithTaxonomyLevel(int value)
const Aws::String & GetName() const
ModerationLabel & WithParentName(Aws::String &&value)
ModerationLabel & WithConfidence(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue