/*
* 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 snowball-2016-06-30.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.Snowball.Model
{
///
/// Amazon S3 compatible storage on Snow family devices configuration items.
///
public partial class S3OnDeviceServiceConfiguration
{
private int? _faultTolerance;
private int? _serviceSize;
private double? _storageLimit;
private StorageUnit _storageUnit;
///
/// Gets and sets the property FaultTolerance.
///
/// >Fault tolerance level of the cluster. This indicates the number of nodes that
/// can go down without degrading the performance of the cluster. This additional input
/// helps when the specified StorageLimit
matches more than one Amazon S3
/// compatible storage on Snow family devices service configuration.
///
///
[AWSProperty(Min=1, Max=4)]
public int FaultTolerance
{
get { return this._faultTolerance.GetValueOrDefault(); }
set { this._faultTolerance = value; }
}
// Check to see if FaultTolerance property is set
internal bool IsSetFaultTolerance()
{
return this._faultTolerance.HasValue;
}
///
/// Gets and sets the property ServiceSize.
///
/// Applicable when creating a cluster. Specifies how many nodes are needed for Amazon
/// S3 compatible storage on Snow family devices. If specified, the other input can be
/// omitted.
///
///
[AWSProperty(Min=3, Max=16)]
public int ServiceSize
{
get { return this._serviceSize.GetValueOrDefault(); }
set { this._serviceSize = value; }
}
// Check to see if ServiceSize property is set
internal bool IsSetServiceSize()
{
return this._serviceSize.HasValue;
}
///
/// Gets and sets the property StorageLimit.
///
/// If the specified storage limit value matches storage limit of one of the defined configurations,
/// that configuration will be used. If the specified storage limit value does not match
/// any defined configuration, the request will fail. If more than one configuration has
/// the same storage limit as specified, the other input need to be provided.
///
///
[AWSProperty(Min=0)]
public double StorageLimit
{
get { return this._storageLimit.GetValueOrDefault(); }
set { this._storageLimit = value; }
}
// Check to see if StorageLimit property is set
internal bool IsSetStorageLimit()
{
return this._storageLimit.HasValue;
}
///
/// Gets and sets the property StorageUnit.
///
/// Storage unit. Currently the only supported unit is TB.
///
///
public StorageUnit StorageUnit
{
get { return this._storageUnit; }
set { this._storageUnit = value; }
}
// Check to see if StorageUnit property is set
internal bool IsSetStorageUnit()
{
return this._storageUnit != null;
}
}
}