/** * 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 IoTAnalytics { namespace Model { /** *

Information about the versioning of dataset contents.

See * Also:

AWS * API Reference

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

If true, unlimited versions of dataset contents are kept.

*/ inline bool GetUnlimited() const{ return m_unlimited; } /** *

If true, unlimited versions of dataset contents are kept.

*/ inline bool UnlimitedHasBeenSet() const { return m_unlimitedHasBeenSet; } /** *

If true, unlimited versions of dataset contents are kept.

*/ inline void SetUnlimited(bool value) { m_unlimitedHasBeenSet = true; m_unlimited = value; } /** *

If true, unlimited versions of dataset contents are kept.

*/ inline VersioningConfiguration& WithUnlimited(bool value) { SetUnlimited(value); return *this;} /** *

How many versions of dataset contents are kept. The unlimited * parameter must be false.

*/ inline int GetMaxVersions() const{ return m_maxVersions; } /** *

How many versions of dataset contents are kept. The unlimited * parameter must be false.

*/ inline bool MaxVersionsHasBeenSet() const { return m_maxVersionsHasBeenSet; } /** *

How many versions of dataset contents are kept. The unlimited * parameter must be false.

*/ inline void SetMaxVersions(int value) { m_maxVersionsHasBeenSet = true; m_maxVersions = value; } /** *

How many versions of dataset contents are kept. The unlimited * parameter must be false.

*/ inline VersioningConfiguration& WithMaxVersions(int value) { SetMaxVersions(value); return *this;} private: bool m_unlimited; bool m_unlimitedHasBeenSet = false; int m_maxVersions; bool m_maxVersionsHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws