/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the lakeformation-2017-03-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.LakeFormation.Model
{
///
/// A structure describing the configuration and details of a storage optimizer.
///
public partial class StorageOptimizer
{
private Dictionary _config = new Dictionary();
private string _errorMessage;
private string _lastRunDetails;
private OptimizerType _storageOptimizerType;
private string _warnings;
///
/// Gets and sets the property Config.
///
/// A map of the storage optimizer configuration. Currently contains only one key-value
/// pair: is_enabled
indicates true or false for acceleration.
///
///
public Dictionary Config
{
get { return this._config; }
set { this._config = value; }
}
// Check to see if Config property is set
internal bool IsSetConfig()
{
return this._config != null && this._config.Count > 0;
}
///
/// Gets and sets the property 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".
///
///
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
///
/// Gets and sets the property LastRunDetails.
///
/// When an acceleration result has an enabled status, contains the details of the last
/// job run.
///
///
public string LastRunDetails
{
get { return this._lastRunDetails; }
set { this._lastRunDetails = value; }
}
// Check to see if LastRunDetails property is set
internal bool IsSetLastRunDetails()
{
return this._lastRunDetails != null;
}
///
/// Gets and sets the property StorageOptimizerType.
///
/// The specific type of storage optimizer. The supported value is compaction
.
///
///
public OptimizerType StorageOptimizerType
{
get { return this._storageOptimizerType; }
set { this._storageOptimizerType = value; }
}
// Check to see if StorageOptimizerType property is set
internal bool IsSetStorageOptimizerType()
{
return this._storageOptimizerType != null;
}
///
/// Gets and sets the property Warnings.
///
/// A message that contains information about any warnings (if present).
///
///
public string Warnings
{
get { return this._warnings; }
set { this._warnings = value; }
}
// Check to see if Warnings property is set
internal bool IsSetWarnings()
{
return this._warnings != null;
}
}
}