/** * 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 data set contents.

See * Also:

AWS * API Reference

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

If true, unlimited versions of data set contents will be kept.

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

If true, unlimited versions of data set contents will be kept.

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

If true, unlimited versions of data set contents will be kept.

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

If true, unlimited versions of data set contents will be kept.

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

How many versions of data set contents will be kept. The "unlimited" * parameter must be false.

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

How many versions of data set contents will be kept. The "unlimited" * parameter must be false.

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

How many versions of data set contents will be kept. The "unlimited" * parameter must be false.

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

How many versions of data set contents will be kept. The "unlimited" * parameter must be false.

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