/*
* 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 iotanalytics-2017-11-27.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.IoTAnalytics.Model
{
///
/// Container for the parameters to the UpdateDatastore operation.
/// Used to update the settings of a data store.
///
public partial class UpdateDatastoreRequest : AmazonIoTAnalyticsRequest
{
private string _datastoreName;
private DatastoreStorage _datastoreStorage;
private FileFormatConfiguration _fileFormatConfiguration;
private RetentionPeriod _retentionPeriod;
///
/// Gets and sets the property DatastoreName.
///
/// The name of the data store to be updated.
///
///
[AWSProperty(Required=true, Min=1, Max=128)]
public string DatastoreName
{
get { return this._datastoreName; }
set { this._datastoreName = value; }
}
// Check to see if DatastoreName property is set
internal bool IsSetDatastoreName()
{
return this._datastoreName != null;
}
///
/// Gets and sets the property DatastoreStorage.
///
/// Where data in a data store is stored.. You can choose serviceManagedS3
/// storage, customerManagedS3
storage, or iotSiteWiseMultiLayerStorage
/// storage. The default is serviceManagedS3
. You can't change the choice
/// of Amazon S3 storage after your data store is created.
///
///
public DatastoreStorage DatastoreStorage
{
get { return this._datastoreStorage; }
set { this._datastoreStorage = value; }
}
// Check to see if DatastoreStorage property is set
internal bool IsSetDatastoreStorage()
{
return this._datastoreStorage != null;
}
///
/// Gets and sets the property FileFormatConfiguration.
///
/// Contains the configuration information of file formats. IoT Analytics data stores
/// support JSON and Parquet.
///
///
///
/// The default file format is JSON. You can specify only one format.
///
///
///
/// You can't change the file format after you create the data store.
///
///
public FileFormatConfiguration FileFormatConfiguration
{
get { return this._fileFormatConfiguration; }
set { this._fileFormatConfiguration = value; }
}
// Check to see if FileFormatConfiguration property is set
internal bool IsSetFileFormatConfiguration()
{
return this._fileFormatConfiguration != null;
}
///
/// Gets and sets the property RetentionPeriod.
///
/// How long, in days, message data is kept for the data store. The retention period can't
/// be updated if the data store's Amazon S3 storage is customer-managed.
///
///
public RetentionPeriod RetentionPeriod
{
get { return this._retentionPeriod; }
set { this._retentionPeriod = value; }
}
// Check to see if RetentionPeriod property is set
internal bool IsSetRetentionPeriod()
{
return this._retentionPeriod != null;
}
}
}