/*
* 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 storagegateway-2013-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.StorageGateway.Model
{
///
/// An automatic tape creation policy consists of automatic tape creation rules where
/// each rule defines when and how to create new tapes. For more information about automatic
/// tape creation, see Creating
/// Tapes Automatically.
///
public partial class AutomaticTapeCreationRule
{
private int? _minimumNumTapes;
private string _poolId;
private string _tapeBarcodePrefix;
private long? _tapeSizeInBytes;
private bool? _worm;
///
/// Gets and sets the property MinimumNumTapes.
///
/// The minimum number of available virtual tapes that the gateway maintains at all times.
/// If the number of tapes on the gateway goes below this value, the gateway creates as
/// many new tapes as are needed to have MinimumNumTapes
on the gateway.
/// For more information about automatic tape creation, see Creating
/// Tapes Automatically.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public int MinimumNumTapes
{
get { return this._minimumNumTapes.GetValueOrDefault(); }
set { this._minimumNumTapes = value; }
}
// Check to see if MinimumNumTapes property is set
internal bool IsSetMinimumNumTapes()
{
return this._minimumNumTapes.HasValue;
}
///
/// Gets and sets the property PoolId.
///
/// The ID of the pool that you want to add your tape to for archiving. The tape in this
/// pool is archived in the Amazon S3 storage class that is associated with the pool.
/// When you use your backup application to eject the tape, the tape is archived directly
/// into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to
/// the pool.
///
///
[AWSProperty(Required=true, Min=1, Max=100)]
public string PoolId
{
get { return this._poolId; }
set { this._poolId = value; }
}
// Check to see if PoolId property is set
internal bool IsSetPoolId()
{
return this._poolId != null;
}
///
/// Gets and sets the property TapeBarcodePrefix.
///
/// A prefix that you append to the barcode of the virtual tape that you are creating.
/// This prefix makes the barcode unique.
///
///
///
/// The prefix must be 1-4 characters in length and must be one of the uppercase letters
/// from A to Z.
///
///
///
[AWSProperty(Required=true, Min=1, Max=4)]
public string TapeBarcodePrefix
{
get { return this._tapeBarcodePrefix; }
set { this._tapeBarcodePrefix = value; }
}
// Check to see if TapeBarcodePrefix property is set
internal bool IsSetTapeBarcodePrefix()
{
return this._tapeBarcodePrefix != null;
}
///
/// Gets and sets the property TapeSizeInBytes.
///
/// The size, in bytes, of the virtual tape capacity.
///
///
[AWSProperty(Required=true)]
public long TapeSizeInBytes
{
get { return this._tapeSizeInBytes.GetValueOrDefault(); }
set { this._tapeSizeInBytes = value; }
}
// Check to see if TapeSizeInBytes property is set
internal bool IsSetTapeSizeInBytes()
{
return this._tapeSizeInBytes.HasValue;
}
///
/// Gets and sets the property Worm.
///
/// Set to true
to indicate that tapes are to be archived as write-once-read-many
/// (WORM). Set to false
when WORM is not enabled for tapes.
///
///
public bool Worm
{
get { return this._worm.GetValueOrDefault(); }
set { this._worm = value; }
}
// Check to see if Worm property is set
internal bool IsSetWorm()
{
return this._worm.HasValue;
}
}
}