/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LakeFormation { namespace Model { /** *

A structure describing the configuration and details of a storage * optimizer.

See Also:

AWS * API Reference

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

The specific type of storage optimizer. The supported value is * compaction.

*/ inline const OptimizerType& GetStorageOptimizerType() const{ return m_storageOptimizerType; } /** *

The specific type of storage optimizer. The supported value is * compaction.

*/ inline bool StorageOptimizerTypeHasBeenSet() const { return m_storageOptimizerTypeHasBeenSet; } /** *

The specific type of storage optimizer. The supported value is * compaction.

*/ inline void SetStorageOptimizerType(const OptimizerType& value) { m_storageOptimizerTypeHasBeenSet = true; m_storageOptimizerType = value; } /** *

The specific type of storage optimizer. The supported value is * compaction.

*/ inline void SetStorageOptimizerType(OptimizerType&& value) { m_storageOptimizerTypeHasBeenSet = true; m_storageOptimizerType = std::move(value); } /** *

The specific type of storage optimizer. The supported value is * compaction.

*/ inline StorageOptimizer& WithStorageOptimizerType(const OptimizerType& value) { SetStorageOptimizerType(value); return *this;} /** *

The specific type of storage optimizer. The supported value is * compaction.

*/ inline StorageOptimizer& WithStorageOptimizerType(OptimizerType&& value) { SetStorageOptimizerType(std::move(value)); return *this;} /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline const Aws::Map& GetConfig() const{ return m_config; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline void SetConfig(const Aws::Map& value) { m_configHasBeenSet = true; m_config = value; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline void SetConfig(Aws::Map&& value) { m_configHasBeenSet = true; m_config = std::move(value); } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& WithConfig(const Aws::Map& value) { SetConfig(value); return *this;} /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& WithConfig(Aws::Map&& value) { SetConfig(std::move(value)); return *this;} /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& AddConfig(const Aws::String& key, const Aws::String& value) { m_configHasBeenSet = true; m_config.emplace(key, value); return *this; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& AddConfig(Aws::String&& key, const Aws::String& value) { m_configHasBeenSet = true; m_config.emplace(std::move(key), value); return *this; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& AddConfig(const Aws::String& key, Aws::String&& value) { m_configHasBeenSet = true; m_config.emplace(key, std::move(value)); return *this; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& AddConfig(Aws::String&& key, Aws::String&& value) { m_configHasBeenSet = true; m_config.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& AddConfig(const char* key, Aws::String&& value) { m_configHasBeenSet = true; m_config.emplace(key, std::move(value)); return *this; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& AddConfig(Aws::String&& key, const char* value) { m_configHasBeenSet = true; m_config.emplace(std::move(key), value); return *this; } /** *

A map of the storage optimizer configuration. Currently contains only one * key-value pair: is_enabled indicates true or false for * acceleration.

*/ inline StorageOptimizer& AddConfig(const char* key, const char* value) { m_configHasBeenSet = true; m_config.emplace(key, value); return *this; } /** *

A message that contains information about any error (if present).

When * an acceleration result has an enabled status, the error message is empty.

*

When an acceleration result has a disabled status, the message describes an * error or simply indicates "disabled by the user".

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

A message that contains information about any error (if present).

When * an acceleration result has an enabled status, the error message is empty.

*

When an acceleration result has a disabled status, the message describes an * error or simply indicates "disabled by the user".

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

A message that contains information about any error (if present).

When * an acceleration result has an enabled status, the error message is empty.

*

When an acceleration result has a disabled status, the message describes an * error or simply indicates "disabled by the user".

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

A message that contains information about any error (if present).

When * an acceleration result has an enabled status, the error message is empty.

*

When an acceleration result has a disabled status, the message describes an * error or simply indicates "disabled by the user".

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

A message that contains information about any error (if present).

When * an acceleration result has an enabled status, the error message is empty.

*

When an acceleration result has a disabled status, the message describes an * error or simply indicates "disabled by the user".

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

A message that contains information about any error (if present).

When * an acceleration result has an enabled status, the error message is empty.

*

When an acceleration result has a disabled status, the message describes an * error or simply indicates "disabled by the user".

*/ inline StorageOptimizer& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

A message that contains information about any error (if present).

When * an acceleration result has an enabled status, the error message is empty.

*

When an acceleration result has a disabled status, the message describes an * error or simply indicates "disabled by the user".

*/ inline StorageOptimizer& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

A message that contains information about any error (if present).

When * an acceleration result has an enabled status, the error message is empty.

*

When an acceleration result has a disabled status, the message describes an * error or simply indicates "disabled by the user".

*/ inline StorageOptimizer& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

A message that contains information about any warnings (if present).

*/ inline const Aws::String& GetWarnings() const{ return m_warnings; } /** *

A message that contains information about any warnings (if present).

*/ inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; } /** *

A message that contains information about any warnings (if present).

*/ inline void SetWarnings(const Aws::String& value) { m_warningsHasBeenSet = true; m_warnings = value; } /** *

A message that contains information about any warnings (if present).

*/ inline void SetWarnings(Aws::String&& value) { m_warningsHasBeenSet = true; m_warnings = std::move(value); } /** *

A message that contains information about any warnings (if present).

*/ inline void SetWarnings(const char* value) { m_warningsHasBeenSet = true; m_warnings.assign(value); } /** *

A message that contains information about any warnings (if present).

*/ inline StorageOptimizer& WithWarnings(const Aws::String& value) { SetWarnings(value); return *this;} /** *

A message that contains information about any warnings (if present).

*/ inline StorageOptimizer& WithWarnings(Aws::String&& value) { SetWarnings(std::move(value)); return *this;} /** *

A message that contains information about any warnings (if present).

*/ inline StorageOptimizer& WithWarnings(const char* value) { SetWarnings(value); return *this;} /** *

When an acceleration result has an enabled status, contains the details of * the last job run.

*/ inline const Aws::String& GetLastRunDetails() const{ return m_lastRunDetails; } /** *

When an acceleration result has an enabled status, contains the details of * the last job run.

*/ inline bool LastRunDetailsHasBeenSet() const { return m_lastRunDetailsHasBeenSet; } /** *

When an acceleration result has an enabled status, contains the details of * the last job run.

*/ inline void SetLastRunDetails(const Aws::String& value) { m_lastRunDetailsHasBeenSet = true; m_lastRunDetails = value; } /** *

When an acceleration result has an enabled status, contains the details of * the last job run.

*/ inline void SetLastRunDetails(Aws::String&& value) { m_lastRunDetailsHasBeenSet = true; m_lastRunDetails = std::move(value); } /** *

When an acceleration result has an enabled status, contains the details of * the last job run.

*/ inline void SetLastRunDetails(const char* value) { m_lastRunDetailsHasBeenSet = true; m_lastRunDetails.assign(value); } /** *

When an acceleration result has an enabled status, contains the details of * the last job run.

*/ inline StorageOptimizer& WithLastRunDetails(const Aws::String& value) { SetLastRunDetails(value); return *this;} /** *

When an acceleration result has an enabled status, contains the details of * the last job run.

*/ inline StorageOptimizer& WithLastRunDetails(Aws::String&& value) { SetLastRunDetails(std::move(value)); return *this;} /** *

When an acceleration result has an enabled status, contains the details of * the last job run.

*/ inline StorageOptimizer& WithLastRunDetails(const char* value) { SetLastRunDetails(value); return *this;} private: OptimizerType m_storageOptimizerType; bool m_storageOptimizerTypeHasBeenSet = false; Aws::Map m_config; bool m_configHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_warnings; bool m_warningsHasBeenSet = false; Aws::String m_lastRunDetails; bool m_lastRunDetailsHasBeenSet = false; }; } // namespace Model } // namespace LakeFormation } // namespace Aws