AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DetectLabelsImageBackground.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/DetectLabelsImageQuality.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/DominantColor.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_REKOGNITION_API DetectLabelsImageBackground() = default;
40 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const DetectLabelsImageQuality& GetQuality() const { return m_quality; }
49 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
50 template<typename QualityT = DetectLabelsImageQuality>
51 void SetQuality(QualityT&& value) { m_qualityHasBeenSet = true; m_quality = std::forward<QualityT>(value); }
52 template<typename QualityT = DetectLabelsImageQuality>
53 DetectLabelsImageBackground& WithQuality(QualityT&& value) { SetQuality(std::forward<QualityT>(value)); return *this;}
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) { m_dominantColorsHasBeenSet = true; m_dominantColors = std::forward<DominantColorsT>(value); }
66 template<typename DominantColorsT = Aws::Vector<DominantColor>>
67 DetectLabelsImageBackground& WithDominantColors(DominantColorsT&& value) { SetDominantColors(std::forward<DominantColorsT>(value)); return *this;}
68 template<typename DominantColorsT = DominantColor>
69 DetectLabelsImageBackground& AddDominantColors(DominantColorsT&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.emplace_back(std::forward<DominantColorsT>(value)); return *this; }
71 private:
72
74 bool m_qualityHasBeenSet = false;
75
76 Aws::Vector<DominantColor> m_dominantColors;
77 bool m_dominantColorsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Rekognition
82} // 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