AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
IcebergOptimizationProperties.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_GLUE_API IcebergOptimizationProperties() = default;
41
42
44
48 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
49 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
50 template<typename RoleArnT = Aws::String>
51 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
52 template<typename RoleArnT = Aws::String>
53 IcebergOptimizationProperties& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
55
57
62 inline const Aws::Map<Aws::String, Aws::String>& GetCompaction() const { return m_compaction; }
63 inline bool CompactionHasBeenSet() const { return m_compactionHasBeenSet; }
64 template<typename CompactionT = Aws::Map<Aws::String, Aws::String>>
65 void SetCompaction(CompactionT&& value) { m_compactionHasBeenSet = true; m_compaction = std::forward<CompactionT>(value); }
66 template<typename CompactionT = Aws::Map<Aws::String, Aws::String>>
67 IcebergOptimizationProperties& WithCompaction(CompactionT&& value) { SetCompaction(std::forward<CompactionT>(value)); return *this;}
68 template<typename CompactionKeyT = Aws::String, typename CompactionValueT = Aws::String>
69 IcebergOptimizationProperties& AddCompaction(CompactionKeyT&& key, CompactionValueT&& value) {
70 m_compactionHasBeenSet = true; m_compaction.emplace(std::forward<CompactionKeyT>(key), std::forward<CompactionValueT>(value)); return *this;
71 }
73
75
80 inline const Aws::Map<Aws::String, Aws::String>& GetRetention() const { return m_retention; }
81 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
82 template<typename RetentionT = Aws::Map<Aws::String, Aws::String>>
83 void SetRetention(RetentionT&& value) { m_retentionHasBeenSet = true; m_retention = std::forward<RetentionT>(value); }
84 template<typename RetentionT = Aws::Map<Aws::String, Aws::String>>
85 IcebergOptimizationProperties& WithRetention(RetentionT&& value) { SetRetention(std::forward<RetentionT>(value)); return *this;}
86 template<typename RetentionKeyT = Aws::String, typename RetentionValueT = Aws::String>
87 IcebergOptimizationProperties& AddRetention(RetentionKeyT&& key, RetentionValueT&& value) {
88 m_retentionHasBeenSet = true; m_retention.emplace(std::forward<RetentionKeyT>(key), std::forward<RetentionValueT>(value)); return *this;
89 }
91
93
98 inline const Aws::Map<Aws::String, Aws::String>& GetOrphanFileDeletion() const { return m_orphanFileDeletion; }
99 inline bool OrphanFileDeletionHasBeenSet() const { return m_orphanFileDeletionHasBeenSet; }
100 template<typename OrphanFileDeletionT = Aws::Map<Aws::String, Aws::String>>
101 void SetOrphanFileDeletion(OrphanFileDeletionT&& value) { m_orphanFileDeletionHasBeenSet = true; m_orphanFileDeletion = std::forward<OrphanFileDeletionT>(value); }
102 template<typename OrphanFileDeletionT = Aws::Map<Aws::String, Aws::String>>
103 IcebergOptimizationProperties& WithOrphanFileDeletion(OrphanFileDeletionT&& value) { SetOrphanFileDeletion(std::forward<OrphanFileDeletionT>(value)); return *this;}
104 template<typename OrphanFileDeletionKeyT = Aws::String, typename OrphanFileDeletionValueT = Aws::String>
105 IcebergOptimizationProperties& AddOrphanFileDeletion(OrphanFileDeletionKeyT&& key, OrphanFileDeletionValueT&& value) {
106 m_orphanFileDeletionHasBeenSet = true; m_orphanFileDeletion.emplace(std::forward<OrphanFileDeletionKeyT>(key), std::forward<OrphanFileDeletionValueT>(value)); return *this;
107 }
109 private:
110
111 Aws::String m_roleArn;
112 bool m_roleArnHasBeenSet = false;
113
115 bool m_compactionHasBeenSet = false;
116
118 bool m_retentionHasBeenSet = false;
119
120 Aws::Map<Aws::String, Aws::String> m_orphanFileDeletion;
121 bool m_orphanFileDeletionHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Glue
126} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetOrphanFileDeletion() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
IcebergOptimizationProperties & AddRetention(RetentionKeyT &&key, RetentionValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCompaction() const
IcebergOptimizationProperties & AddOrphanFileDeletion(OrphanFileDeletionKeyT &&key, OrphanFileDeletionValueT &&value)
IcebergOptimizationProperties & AddCompaction(CompactionKeyT &&key, CompactionValueT &&value)
AWS_GLUE_API IcebergOptimizationProperties(Aws::Utils::Json::JsonView jsonValue)
IcebergOptimizationProperties & WithRetention(RetentionT &&value)
IcebergOptimizationProperties & WithRoleArn(RoleArnT &&value)
IcebergOptimizationProperties & WithCompaction(CompactionT &&value)
IcebergOptimizationProperties & WithOrphanFileDeletion(OrphanFileDeletionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRetention() const
AWS_GLUE_API IcebergOptimizationProperties()=default
AWS_GLUE_API IcebergOptimizationProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue