AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DetectLabelsImageBackground.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/DetectLabelsImageQuality.h>
10#include <aws/rekognition/model/DominantColor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition {
22namespace Model {
23
31 public:
32 AWS_REKOGNITION_API DetectLabelsImageBackground() = default;
35 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const DetectLabelsImageQuality& GetQuality() const { return m_quality; }
43 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
44 template <typename QualityT = DetectLabelsImageQuality>
45 void SetQuality(QualityT&& value) {
46 m_qualityHasBeenSet = true;
47 m_quality = std::forward<QualityT>(value);
48 }
49 template <typename QualityT = DetectLabelsImageQuality>
51 SetQuality(std::forward<QualityT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Vector<DominantColor>& GetDominantColors() const { return m_dominantColors; }
63 inline bool DominantColorsHasBeenSet() const { return m_dominantColorsHasBeenSet; }
64 template <typename DominantColorsT = Aws::Vector<DominantColor>>
65 void SetDominantColors(DominantColorsT&& value) {
66 m_dominantColorsHasBeenSet = true;
67 m_dominantColors = std::forward<DominantColorsT>(value);
68 }
69 template <typename DominantColorsT = Aws::Vector<DominantColor>>
71 SetDominantColors(std::forward<DominantColorsT>(value));
72 return *this;
73 }
74 template <typename DominantColorsT = DominantColor>
76 m_dominantColorsHasBeenSet = true;
77 m_dominantColors.emplace_back(std::forward<DominantColorsT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::Vector<DominantColor> m_dominantColors;
85 bool m_qualityHasBeenSet = false;
86 bool m_dominantColorsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Rekognition
91} // namespace Aws
const Aws::Vector< DominantColor > & GetDominantColors() const
DetectLabelsImageBackground & AddDominantColors(DominantColorsT &&value)
AWS_REKOGNITION_API DetectLabelsImageBackground & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API DetectLabelsImageBackground()=default
DetectLabelsImageBackground & WithQuality(QualityT &&value)
DetectLabelsImageBackground & WithDominantColors(DominantColorsT &&value)
AWS_REKOGNITION_API DetectLabelsImageBackground(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue