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

Allows you to opt in or opt out to share data with Rekognition to improve * model performance. You can choose this option at the account level or on a * per-stream basis. Note that if you opt out at the account level this setting is * ignored on individual streams.

See Also:

AWS * API Reference

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

If this option is set to true, you choose to share data with Rekognition to * improve model performance.

*/ inline bool GetOptIn() const{ return m_optIn; } /** *

If this option is set to true, you choose to share data with Rekognition to * improve model performance.

*/ inline bool OptInHasBeenSet() const { return m_optInHasBeenSet; } /** *

If this option is set to true, you choose to share data with Rekognition to * improve model performance.

*/ inline void SetOptIn(bool value) { m_optInHasBeenSet = true; m_optIn = value; } /** *

If this option is set to true, you choose to share data with Rekognition to * improve model performance.

*/ inline StreamProcessorDataSharingPreference& WithOptIn(bool value) { SetOptIn(value); return *this;} private: bool m_optIn; bool m_optInHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws