AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
ConnectedHomeSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Rekognition {
21namespace Model {
22
38 public:
39 AWS_REKOGNITION_API ConnectedHomeSettings() = default;
40 AWS_REKOGNITION_API ConnectedHomeSettings(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
50 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
51 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
52 template <typename LabelsT = Aws::Vector<Aws::String>>
53 void SetLabels(LabelsT&& value) {
54 m_labelsHasBeenSet = true;
55 m_labels = std::forward<LabelsT>(value);
56 }
57 template <typename LabelsT = Aws::Vector<Aws::String>>
59 SetLabels(std::forward<LabelsT>(value));
60 return *this;
61 }
62 template <typename LabelsT = Aws::String>
63 ConnectedHomeSettings& AddLabels(LabelsT&& value) {
64 m_labelsHasBeenSet = true;
65 m_labels.emplace_back(std::forward<LabelsT>(value));
66 return *this;
67 }
69
71
74 inline double GetMinConfidence() const { return m_minConfidence; }
75 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
76 inline void SetMinConfidence(double value) {
77 m_minConfidenceHasBeenSet = true;
78 m_minConfidence = value;
79 }
81 SetMinConfidence(value);
82 return *this;
83 }
85 private:
87 bool m_labelsHasBeenSet = false;
88
89 double m_minConfidence{0.0};
90 bool m_minConfidenceHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace Rekognition
95} // namespace Aws
ConnectedHomeSettings & AddLabels(LabelsT &&value)
AWS_REKOGNITION_API ConnectedHomeSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API ConnectedHomeSettings(Aws::Utils::Json::JsonView jsonValue)
ConnectedHomeSettings & WithLabels(LabelsT &&value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectedHomeSettings & WithMinConfidence(double value)
const Aws::Vector< Aws::String > & GetLabels() const
AWS_REKOGNITION_API ConnectedHomeSettings()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue