/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { /** *

Label detection settings to use on a streaming video. Defining the settings * is required in the request parameter for CreateStreamProcessor. Including * this setting in the CreateStreamProcessor request enables you to * use the stream processor for label detection. You can then select what you want * the stream processor to detect, such as people or pets. When the stream * processor has started, one notification is sent for each object class specified. * For example, if packages and pets are selected, one SNS notification is * published the first time a package is detected and one SNS notification is * published the first time a pet is detected, as well as an end-of-session * summary.

See Also:

AWS * API Reference

*/ class ConnectedHomeSettings { public: AWS_REKOGNITION_API ConnectedHomeSettings(); AWS_REKOGNITION_API ConnectedHomeSettings(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API ConnectedHomeSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline const Aws::Vector& GetLabels() const{ return m_labels; } /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; } /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline void SetLabels(const Aws::Vector& value) { m_labelsHasBeenSet = true; m_labels = value; } /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline void SetLabels(Aws::Vector&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); } /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline ConnectedHomeSettings& WithLabels(const Aws::Vector& value) { SetLabels(value); return *this;} /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline ConnectedHomeSettings& WithLabels(Aws::Vector&& value) { SetLabels(std::move(value)); return *this;} /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline ConnectedHomeSettings& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; } /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline ConnectedHomeSettings& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; } /** *

Specifies what you want to detect in the video, such as people, packages, or * pets. The current valid labels you can include in this list are: "PERSON", * "PET", "PACKAGE", and "ALL".

*/ inline ConnectedHomeSettings& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; } /** *

The minimum confidence required to label an object in the video.

*/ inline double GetMinConfidence() const{ return m_minConfidence; } /** *

The minimum confidence required to label an object in the video.

*/ inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; } /** *

The minimum confidence required to label an object in the video.

*/ inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; } /** *

The minimum confidence required to label an object in the video.

*/ inline ConnectedHomeSettings& WithMinConfidence(double value) { SetMinConfidence(value); return *this;} private: Aws::Vector m_labels; bool m_labelsHasBeenSet = false; double m_minConfidence; bool m_minConfidenceHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws