AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DetectLabelsImageProperties.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/DetectLabelsImageBackground.h>
10#include <aws/rekognition/model/DetectLabelsImageForeground.h>
11#include <aws/rekognition/model/DetectLabelsImageQuality.h>
12#include <aws/rekognition/model/DominantColor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition {
24namespace Model {
25
34 public:
35 AWS_REKOGNITION_API DetectLabelsImageProperties() = default;
38 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const DetectLabelsImageQuality& GetQuality() const { return m_quality; }
47 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
48 template <typename QualityT = DetectLabelsImageQuality>
49 void SetQuality(QualityT&& value) {
50 m_qualityHasBeenSet = true;
51 m_quality = std::forward<QualityT>(value);
52 }
53 template <typename QualityT = DetectLabelsImageQuality>
55 SetQuality(std::forward<QualityT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::Vector<DominantColor>& GetDominantColors() const { return m_dominantColors; }
67 inline bool DominantColorsHasBeenSet() const { return m_dominantColorsHasBeenSet; }
68 template <typename DominantColorsT = Aws::Vector<DominantColor>>
69 void SetDominantColors(DominantColorsT&& value) {
70 m_dominantColorsHasBeenSet = true;
71 m_dominantColors = std::forward<DominantColorsT>(value);
72 }
73 template <typename DominantColorsT = Aws::Vector<DominantColor>>
75 SetDominantColors(std::forward<DominantColorsT>(value));
76 return *this;
77 }
78 template <typename DominantColorsT = DominantColor>
80 m_dominantColorsHasBeenSet = true;
81 m_dominantColors.emplace_back(std::forward<DominantColorsT>(value));
82 return *this;
83 }
85
87
92 inline const DetectLabelsImageForeground& GetForeground() const { return m_foreground; }
93 inline bool ForegroundHasBeenSet() const { return m_foregroundHasBeenSet; }
94 template <typename ForegroundT = DetectLabelsImageForeground>
95 void SetForeground(ForegroundT&& value) {
96 m_foregroundHasBeenSet = true;
97 m_foreground = std::forward<ForegroundT>(value);
98 }
99 template <typename ForegroundT = DetectLabelsImageForeground>
101 SetForeground(std::forward<ForegroundT>(value));
102 return *this;
103 }
105
107
112 inline const DetectLabelsImageBackground& GetBackground() const { return m_background; }
113 inline bool BackgroundHasBeenSet() const { return m_backgroundHasBeenSet; }
114 template <typename BackgroundT = DetectLabelsImageBackground>
115 void SetBackground(BackgroundT&& value) {
116 m_backgroundHasBeenSet = true;
117 m_background = std::forward<BackgroundT>(value);
118 }
119 template <typename BackgroundT = DetectLabelsImageBackground>
121 SetBackground(std::forward<BackgroundT>(value));
122 return *this;
123 }
125 private:
126 DetectLabelsImageQuality m_quality;
127
128 Aws::Vector<DominantColor> m_dominantColors;
129
130 DetectLabelsImageForeground m_foreground;
131
132 DetectLabelsImageBackground m_background;
133 bool m_qualityHasBeenSet = false;
134 bool m_dominantColorsHasBeenSet = false;
135 bool m_foregroundHasBeenSet = false;
136 bool m_backgroundHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Rekognition
141} // namespace Aws
AWS_REKOGNITION_API DetectLabelsImageProperties(Aws::Utils::Json::JsonView jsonValue)
const DetectLabelsImageBackground & GetBackground() const
DetectLabelsImageProperties & WithBackground(BackgroundT &&value)
AWS_REKOGNITION_API DetectLabelsImageProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectLabelsImageProperties & WithDominantColors(DominantColorsT &&value)
const Aws::Vector< DominantColor > & GetDominantColors() const
const DetectLabelsImageForeground & GetForeground() const
DetectLabelsImageProperties & WithQuality(QualityT &&value)
AWS_REKOGNITION_API DetectLabelsImageProperties()=default
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
DetectLabelsImageProperties & WithForeground(ForegroundT &&value)
DetectLabelsImageProperties & AddDominantColors(DominantColorsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue