AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/BoundingBox.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
36 {
37 public:
38 AWS_REKOGNITION_API Instance();
39 AWS_REKOGNITION_API Instance(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REKOGNITION_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; }
49 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
50 inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; }
51 inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); }
52 inline Instance& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;}
53 inline Instance& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;}
55
57
61 inline double GetConfidence() const{ return m_confidence; }
62 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
63 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
64 inline Instance& WithConfidence(double value) { SetConfidence(value); return *this;}
66
68
71 inline const Aws::Vector<DominantColor>& GetDominantColors() const{ return m_dominantColors; }
72 inline bool DominantColorsHasBeenSet() const { return m_dominantColorsHasBeenSet; }
73 inline void SetDominantColors(const Aws::Vector<DominantColor>& value) { m_dominantColorsHasBeenSet = true; m_dominantColors = value; }
74 inline void SetDominantColors(Aws::Vector<DominantColor>&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors = std::move(value); }
75 inline Instance& WithDominantColors(const Aws::Vector<DominantColor>& value) { SetDominantColors(value); return *this;}
76 inline Instance& WithDominantColors(Aws::Vector<DominantColor>&& value) { SetDominantColors(std::move(value)); return *this;}
77 inline Instance& AddDominantColors(const DominantColor& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.push_back(value); return *this; }
78 inline Instance& AddDominantColors(DominantColor&& value) { m_dominantColorsHasBeenSet = true; m_dominantColors.push_back(std::move(value)); return *this; }
80 private:
81
82 BoundingBox m_boundingBox;
83 bool m_boundingBoxHasBeenSet = false;
84
85 double m_confidence;
86 bool m_confidenceHasBeenSet = false;
87
88 Aws::Vector<DominantColor> m_dominantColors;
89 bool m_dominantColorsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Rekognition
94} // namespace Aws
bool DominantColorsHasBeenSet() const
Definition Instance.h:72
Instance & WithBoundingBox(BoundingBox &&value)
Definition Instance.h:53
void SetDominantColors(const Aws::Vector< DominantColor > &value)
Definition Instance.h:73
Instance & WithBoundingBox(const BoundingBox &value)
Definition Instance.h:52
void SetConfidence(double value)
Definition Instance.h:63
AWS_REKOGNITION_API Instance(Aws::Utils::Json::JsonView jsonValue)
Instance & WithDominantColors(Aws::Vector< DominantColor > &&value)
Definition Instance.h:76
AWS_REKOGNITION_API Instance()
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDominantColors(Aws::Vector< DominantColor > &&value)
Definition Instance.h:74
Instance & WithDominantColors(const Aws::Vector< DominantColor > &value)
Definition Instance.h:75
void SetBoundingBox(BoundingBox &&value)
Definition Instance.h:51
void SetBoundingBox(const BoundingBox &value)
Definition Instance.h:50
Instance & WithConfidence(double value)
Definition Instance.h:64
const BoundingBox & GetBoundingBox() const
Definition Instance.h:48
const Aws::Vector< DominantColor > & GetDominantColors() const
Definition Instance.h:71
Instance & AddDominantColors(DominantColor &&value)
Definition Instance.h:78
AWS_REKOGNITION_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
Instance & AddDominantColors(const DominantColor &value)
Definition Instance.h:77
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue