AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DetectLabelsImageProperties.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/DetectLabelsImageForeground.h>
11#include <aws/rekognition/model/DetectLabelsImageBackground.h>
12#include <aws/rekognition/model/DominantColor.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Rekognition
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_REKOGNITION_API DetectLabelsImageProperties() = default;
43 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const DetectLabelsImageQuality& GetQuality() const { return m_quality; }
53 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
54 template<typename QualityT = DetectLabelsImageQuality>
55 void SetQuality(QualityT&& value) { m_qualityHasBeenSet = true; m_quality = std::forward<QualityT>(value); }
56 template<typename QualityT = DetectLabelsImageQuality>
57 DetectLabelsImageProperties& WithQuality(QualityT&& value) { SetQuality(std::forward<QualityT>(value)); return *this;}
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) { m_dominantColorsHasBeenSet = true; m_dominantColors = std::forward<DominantColorsT>(value); }
70 template<typename DominantColorsT = Aws::Vector<DominantColor>>
71 DetectLabelsImageProperties& WithDominantColors(DominantColorsT&& value) { SetDominantColors(std::forward<DominantColorsT>(value)); return *this;}
72 template<typename DominantColorsT = DominantColor>
73 DetectLabelsImageProperties& AddDominantColors(DominantColorsT&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.emplace_back(std::forward<DominantColorsT>(value)); return *this; }
75
77
82 inline const DetectLabelsImageForeground& GetForeground() const { return m_foreground; }
83 inline bool ForegroundHasBeenSet() const { return m_foregroundHasBeenSet; }
84 template<typename ForegroundT = DetectLabelsImageForeground>
85 void SetForeground(ForegroundT&& value) { m_foregroundHasBeenSet = true; m_foreground = std::forward<ForegroundT>(value); }
86 template<typename ForegroundT = DetectLabelsImageForeground>
87 DetectLabelsImageProperties& WithForeground(ForegroundT&& value) { SetForeground(std::forward<ForegroundT>(value)); return *this;}
89
91
96 inline const DetectLabelsImageBackground& GetBackground() const { return m_background; }
97 inline bool BackgroundHasBeenSet() const { return m_backgroundHasBeenSet; }
98 template<typename BackgroundT = DetectLabelsImageBackground>
99 void SetBackground(BackgroundT&& value) { m_backgroundHasBeenSet = true; m_background = std::forward<BackgroundT>(value); }
100 template<typename BackgroundT = DetectLabelsImageBackground>
101 DetectLabelsImageProperties& WithBackground(BackgroundT&& value) { SetBackground(std::forward<BackgroundT>(value)); return *this;}
103 private:
104
105 DetectLabelsImageQuality m_quality;
106 bool m_qualityHasBeenSet = false;
107
108 Aws::Vector<DominantColor> m_dominantColors;
109 bool m_dominantColorsHasBeenSet = false;
110
111 DetectLabelsImageForeground m_foreground;
112 bool m_foregroundHasBeenSet = false;
113
114 DetectLabelsImageBackground m_background;
115 bool m_backgroundHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Rekognition
120} // 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