AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StorageOptimizer.h
1
6#pragma once
7#include <aws/lakeformation/LakeFormation_EXPORTS.h>
8#include <aws/lakeformation/model/OptimizerType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LakeFormation
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LAKEFORMATION_API StorageOptimizer();
38 AWS_LAKEFORMATION_API StorageOptimizer(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LAKEFORMATION_API StorageOptimizer& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const OptimizerType& GetStorageOptimizerType() const{ return m_storageOptimizerType; }
49 inline bool StorageOptimizerTypeHasBeenSet() const { return m_storageOptimizerTypeHasBeenSet; }
50 inline void SetStorageOptimizerType(const OptimizerType& value) { m_storageOptimizerTypeHasBeenSet = true; m_storageOptimizerType = value; }
51 inline void SetStorageOptimizerType(OptimizerType&& value) { m_storageOptimizerTypeHasBeenSet = true; m_storageOptimizerType = std::move(value); }
53 inline StorageOptimizer& WithStorageOptimizerType(OptimizerType&& value) { SetStorageOptimizerType(std::move(value)); return *this;}
55
57
62 inline const Aws::Map<Aws::String, Aws::String>& GetConfig() const{ return m_config; }
63 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
64 inline void SetConfig(const Aws::Map<Aws::String, Aws::String>& value) { m_configHasBeenSet = true; m_config = value; }
65 inline void SetConfig(Aws::Map<Aws::String, Aws::String>&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
66 inline StorageOptimizer& WithConfig(const Aws::Map<Aws::String, Aws::String>& value) { SetConfig(value); return *this;}
67 inline StorageOptimizer& WithConfig(Aws::Map<Aws::String, Aws::String>&& value) { SetConfig(std::move(value)); return *this;}
68 inline StorageOptimizer& AddConfig(const Aws::String& key, const Aws::String& value) { m_configHasBeenSet = true; m_config.emplace(key, value); return *this; }
69 inline StorageOptimizer& AddConfig(Aws::String&& key, const Aws::String& value) { m_configHasBeenSet = true; m_config.emplace(std::move(key), value); return *this; }
70 inline StorageOptimizer& AddConfig(const Aws::String& key, Aws::String&& value) { m_configHasBeenSet = true; m_config.emplace(key, std::move(value)); return *this; }
71 inline StorageOptimizer& AddConfig(Aws::String&& key, Aws::String&& value) { m_configHasBeenSet = true; m_config.emplace(std::move(key), std::move(value)); return *this; }
72 inline StorageOptimizer& AddConfig(const char* key, Aws::String&& value) { m_configHasBeenSet = true; m_config.emplace(key, std::move(value)); return *this; }
73 inline StorageOptimizer& AddConfig(Aws::String&& key, const char* value) { m_configHasBeenSet = true; m_config.emplace(std::move(key), value); return *this; }
74 inline StorageOptimizer& AddConfig(const char* key, const char* value) { m_configHasBeenSet = true; m_config.emplace(key, value); return *this; }
76
78
84 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
85 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
86 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
87 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
88 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
89 inline StorageOptimizer& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
90 inline StorageOptimizer& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
91 inline StorageOptimizer& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
93
95
98 inline const Aws::String& GetWarnings() const{ return m_warnings; }
99 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
100 inline void SetWarnings(const Aws::String& value) { m_warningsHasBeenSet = true; m_warnings = value; }
101 inline void SetWarnings(Aws::String&& value) { m_warningsHasBeenSet = true; m_warnings = std::move(value); }
102 inline void SetWarnings(const char* value) { m_warningsHasBeenSet = true; m_warnings.assign(value); }
103 inline StorageOptimizer& WithWarnings(const Aws::String& value) { SetWarnings(value); return *this;}
104 inline StorageOptimizer& WithWarnings(Aws::String&& value) { SetWarnings(std::move(value)); return *this;}
105 inline StorageOptimizer& WithWarnings(const char* value) { SetWarnings(value); return *this;}
107
109
113 inline const Aws::String& GetLastRunDetails() const{ return m_lastRunDetails; }
114 inline bool LastRunDetailsHasBeenSet() const { return m_lastRunDetailsHasBeenSet; }
115 inline void SetLastRunDetails(const Aws::String& value) { m_lastRunDetailsHasBeenSet = true; m_lastRunDetails = value; }
116 inline void SetLastRunDetails(Aws::String&& value) { m_lastRunDetailsHasBeenSet = true; m_lastRunDetails = std::move(value); }
117 inline void SetLastRunDetails(const char* value) { m_lastRunDetailsHasBeenSet = true; m_lastRunDetails.assign(value); }
118 inline StorageOptimizer& WithLastRunDetails(const Aws::String& value) { SetLastRunDetails(value); return *this;}
119 inline StorageOptimizer& WithLastRunDetails(Aws::String&& value) { SetLastRunDetails(std::move(value)); return *this;}
120 inline StorageOptimizer& WithLastRunDetails(const char* value) { SetLastRunDetails(value); return *this;}
122 private:
123
124 OptimizerType m_storageOptimizerType;
125 bool m_storageOptimizerTypeHasBeenSet = false;
126
128 bool m_configHasBeenSet = false;
129
130 Aws::String m_errorMessage;
131 bool m_errorMessageHasBeenSet = false;
132
133 Aws::String m_warnings;
134 bool m_warningsHasBeenSet = false;
135
136 Aws::String m_lastRunDetails;
137 bool m_lastRunDetailsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace LakeFormation
142} // namespace Aws
StorageOptimizer & AddConfig(const char *key, const char *value)
StorageOptimizer & WithErrorMessage(const char *value)
void SetLastRunDetails(const Aws::String &value)
StorageOptimizer & AddConfig(const Aws::String &key, Aws::String &&value)
const Aws::String & GetErrorMessage() const
void SetConfig(Aws::Map< Aws::String, Aws::String > &&value)
StorageOptimizer & WithStorageOptimizerType(OptimizerType &&value)
void SetWarnings(const Aws::String &value)
void SetConfig(const Aws::Map< Aws::String, Aws::String > &value)
StorageOptimizer & WithLastRunDetails(const char *value)
StorageOptimizer & WithStorageOptimizerType(const OptimizerType &value)
AWS_LAKEFORMATION_API StorageOptimizer(Aws::Utils::Json::JsonView jsonValue)
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
StorageOptimizer & WithConfig(const Aws::Map< Aws::String, Aws::String > &value)
StorageOptimizer & WithWarnings(Aws::String &&value)
StorageOptimizer & WithWarnings(const Aws::String &value)
StorageOptimizer & AddConfig(Aws::String &&key, const Aws::String &value)
StorageOptimizer & WithConfig(Aws::Map< Aws::String, Aws::String > &&value)
StorageOptimizer & WithErrorMessage(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetConfig() const
AWS_LAKEFORMATION_API StorageOptimizer & operator=(Aws::Utils::Json::JsonView jsonValue)
StorageOptimizer & AddConfig(const char *key, Aws::String &&value)
StorageOptimizer & WithLastRunDetails(Aws::String &&value)
StorageOptimizer & AddConfig(const Aws::String &key, const Aws::String &value)
StorageOptimizer & WithWarnings(const char *value)
StorageOptimizer & WithErrorMessage(Aws::String &&value)
void SetErrorMessage(const Aws::String &value)
StorageOptimizer & WithLastRunDetails(const Aws::String &value)
void SetStorageOptimizerType(OptimizerType &&value)
const OptimizerType & GetStorageOptimizerType() const
StorageOptimizer & AddConfig(Aws::String &&key, Aws::String &&value)
void SetStorageOptimizerType(const OptimizerType &value)
const Aws::String & GetLastRunDetails() const
StorageOptimizer & AddConfig(Aws::String &&key, const char *value)
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