AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetQuality(const DetectLabelsImageQuality& value) { m_qualityHasBeenSet = true; m_quality = value; }
55 inline void SetQuality(DetectLabelsImageQuality&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); }
56 inline DetectLabelsImageProperties& WithQuality(const DetectLabelsImageQuality& value) { SetQuality(value); return *this;}
57 inline DetectLabelsImageProperties& WithQuality(DetectLabelsImageQuality&& value) { SetQuality(std::move(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 inline void SetDominantColors(const Aws::Vector<DominantColor>& value) { m_dominantColorsHasBeenSet = true; m_dominantColors = value; }
69 inline void SetDominantColors(Aws::Vector<DominantColor>&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors = std::move(value); }
72 inline DetectLabelsImageProperties& AddDominantColors(const DominantColor& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.push_back(value); return *this; }
73 inline DetectLabelsImageProperties& AddDominantColors(DominantColor&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.push_back(std::move(value)); return *this; }
75
77
82 inline const DetectLabelsImageForeground& GetForeground() const{ return m_foreground; }
83 inline bool ForegroundHasBeenSet() const { return m_foregroundHasBeenSet; }
84 inline void SetForeground(const DetectLabelsImageForeground& value) { m_foregroundHasBeenSet = true; m_foreground = value; }
85 inline void SetForeground(DetectLabelsImageForeground&& value) { m_foregroundHasBeenSet = true; m_foreground = std::move(value); }
87 inline DetectLabelsImageProperties& WithForeground(DetectLabelsImageForeground&& value) { SetForeground(std::move(value)); return *this;}
89
91
96 inline const DetectLabelsImageBackground& GetBackground() const{ return m_background; }
97 inline bool BackgroundHasBeenSet() const { return m_backgroundHasBeenSet; }
98 inline void SetBackground(const DetectLabelsImageBackground& value) { m_backgroundHasBeenSet = true; m_background = value; }
99 inline void SetBackground(DetectLabelsImageBackground&& value) { m_backgroundHasBeenSet = true; m_background = std::move(value); }
101 inline DetectLabelsImageProperties& WithBackground(DetectLabelsImageBackground&& value) { SetBackground(std::move(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
void SetForeground(const DetectLabelsImageForeground &value)
DetectLabelsImageProperties & WithDominantColors(const Aws::Vector< DominantColor > &value)
AWS_REKOGNITION_API DetectLabelsImageProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetQuality(const DetectLabelsImageQuality &value)
DetectLabelsImageProperties & WithForeground(DetectLabelsImageForeground &&value)
DetectLabelsImageProperties & WithForeground(const DetectLabelsImageForeground &value)
void SetBackground(const DetectLabelsImageBackground &value)
const Aws::Vector< DominantColor > & GetDominantColors() const
DetectLabelsImageProperties & WithBackground(const DetectLabelsImageBackground &value)
DetectLabelsImageProperties & AddDominantColors(const DominantColor &value)
DetectLabelsImageProperties & WithBackground(DetectLabelsImageBackground &&value)
DetectLabelsImageProperties & AddDominantColors(DominantColor &&value)
void SetDominantColors(const Aws::Vector< DominantColor > &value)
void SetDominantColors(Aws::Vector< DominantColor > &&value)
void SetForeground(DetectLabelsImageForeground &&value)
const DetectLabelsImageForeground & GetForeground() const
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
DetectLabelsImageProperties & WithDominantColors(Aws::Vector< DominantColor > &&value)
DetectLabelsImageProperties & WithQuality(DetectLabelsImageQuality &&value)
void SetBackground(DetectLabelsImageBackground &&value)
DetectLabelsImageProperties & WithQuality(const DetectLabelsImageQuality &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue