AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
IcebergSnapshotManagementSettings.h
1
6#pragma once
7#include <aws/s3tables/S3Tables_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace S3Tables {
17namespace Model {
18
29 public:
30 AWS_S3TABLES_API IcebergSnapshotManagementSettings() = default;
33 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetMinSnapshotsToKeep() const { return m_minSnapshotsToKeep; }
40 inline bool MinSnapshotsToKeepHasBeenSet() const { return m_minSnapshotsToKeepHasBeenSet; }
41 inline void SetMinSnapshotsToKeep(int value) {
42 m_minSnapshotsToKeepHasBeenSet = true;
43 m_minSnapshotsToKeep = value;
44 }
47 return *this;
48 }
50
52
55 inline int GetMaxSnapshotAgeHours() const { return m_maxSnapshotAgeHours; }
56 inline bool MaxSnapshotAgeHoursHasBeenSet() const { return m_maxSnapshotAgeHoursHasBeenSet; }
57 inline void SetMaxSnapshotAgeHours(int value) {
58 m_maxSnapshotAgeHoursHasBeenSet = true;
59 m_maxSnapshotAgeHours = value;
60 }
63 return *this;
64 }
66 private:
67 int m_minSnapshotsToKeep{0};
68
69 int m_maxSnapshotAgeHours{0};
70 bool m_minSnapshotsToKeepHasBeenSet = false;
71 bool m_maxSnapshotAgeHoursHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace S3Tables
76} // namespace Aws
IcebergSnapshotManagementSettings & WithMinSnapshotsToKeep(int value)
AWS_S3TABLES_API IcebergSnapshotManagementSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_S3TABLES_API IcebergSnapshotManagementSettings()=default
AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const
IcebergSnapshotManagementSettings & WithMaxSnapshotAgeHours(int value)
AWS_S3TABLES_API IcebergSnapshotManagementSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue