/*
* 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 fsx-2018-03-01.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.FSx.Model
{
///
/// Specifies the configuration of the Amazon FSx for OpenZFS volume that you are creating.
///
public partial class CreateOpenZFSVolumeConfiguration
{
private bool? _copyTagsToSnapshots;
private OpenZFSDataCompressionType _dataCompressionType;
private List _nfsExports = new List();
private CreateOpenZFSOriginSnapshotConfiguration _originSnapshot;
private string _parentVolumeId;
private bool? _readOnly;
private int? _recordSizeKiB;
private int? _storageCapacityQuotaGiB;
private int? _storageCapacityReservationGiB;
private List _userAndGroupQuotas = new List();
///
/// Gets and sets the property CopyTagsToSnapshots.
///
/// A Boolean value indicating whether tags for the volume should be copied to snapshots.
/// This value defaults to false
. If it's set to true
, all tags
/// for the volume are copied to snapshots where the user doesn't specify tags. If this
/// value is true
, and you specify one or more tags, only the specified tags
/// are copied to snapshots. If you specify one or more tags when creating the snapshot,
/// no tags are copied from the volume, regardless of this value.
///
///
public bool CopyTagsToSnapshots
{
get { return this._copyTagsToSnapshots.GetValueOrDefault(); }
set { this._copyTagsToSnapshots = value; }
}
// Check to see if CopyTagsToSnapshots property is set
internal bool IsSetCopyTagsToSnapshots()
{
return this._copyTagsToSnapshots.HasValue;
}
///
/// Gets and sets the property DataCompressionType.
///
/// Specifies the method used to compress the data on the volume. The compression type
/// is NONE
by default.
///
/// -
///
///
NONE
- Doesn't compress the data on the volume. NONE
is
/// the default.
///
/// -
///
///
ZSTD
- Compresses the data in the volume using the Zstandard (ZSTD)
/// compression algorithm. ZSTD compression provides a higher level of data compression
/// and higher read throughput performance than LZ4 compression.
///
/// -
///
///
LZ4
- Compresses the data in the volume using the LZ4 compression algorithm.
/// LZ4 compression provides a lower level of compression and higher write throughput
/// performance than ZSTD compression.
///
///
///
/// For more information about volume compression types and the performance of your Amazon
/// FSx for OpenZFS file system, see
/// Tips for maximizing performance File system and volume settings in the Amazon
/// FSx for OpenZFS User Guide.
///
///
public OpenZFSDataCompressionType DataCompressionType
{
get { return this._dataCompressionType; }
set { this._dataCompressionType = value; }
}
// Check to see if DataCompressionType property is set
internal bool IsSetDataCompressionType()
{
return this._dataCompressionType != null;
}
///
/// Gets and sets the property NfsExports.
///
/// The configuration object for mounting a Network File System (NFS) file system.
///
///
[AWSProperty(Max=1)]
public List NfsExports
{
get { return this._nfsExports; }
set { this._nfsExports = value; }
}
// Check to see if NfsExports property is set
internal bool IsSetNfsExports()
{
return this._nfsExports != null && this._nfsExports.Count > 0;
}
///
/// Gets and sets the property OriginSnapshot.
///
/// The configuration object that specifies the snapshot to use as the origin of the data
/// for the volume.
///
///
public CreateOpenZFSOriginSnapshotConfiguration OriginSnapshot
{
get { return this._originSnapshot; }
set { this._originSnapshot = value; }
}
// Check to see if OriginSnapshot property is set
internal bool IsSetOriginSnapshot()
{
return this._originSnapshot != null;
}
///
/// Gets and sets the property ParentVolumeId.
///
/// The ID of the volume to use as the parent volume of the volume that you are creating.
///
///
[AWSProperty(Required=true, Min=23, Max=23)]
public string ParentVolumeId
{
get { return this._parentVolumeId; }
set { this._parentVolumeId = value; }
}
// Check to see if ParentVolumeId property is set
internal bool IsSetParentVolumeId()
{
return this._parentVolumeId != null;
}
///
/// Gets and sets the property ReadOnly.
///
/// A Boolean value indicating whether the volume is read-only.
///
///
public bool ReadOnly
{
get { return this._readOnly.GetValueOrDefault(); }
set { this._readOnly = value; }
}
// Check to see if ReadOnly property is set
internal bool IsSetReadOnly()
{
return this._readOnly.HasValue;
}
///
/// Gets and sets the property RecordSizeKiB.
///
/// Specifies the suggested block size for a volume in a ZFS dataset, in kibibytes (KiB).
/// Valid values are 4, 8, 16, 32, 64, 128, 256, 512, or 1024 KiB. The default is 128
/// KiB. We recommend using the default setting for the majority of use cases. Generally,
/// workloads that write in fixed small or large record sizes may benefit from setting
/// a custom record size, like database workloads (small record size) or media streaming
/// workloads (large record size). For additional guidance on when to set a custom record
/// size, see
/// ZFS Record size in the Amazon FSx for OpenZFS User Guide.
///
///
[AWSProperty(Min=4, Max=1024)]
public int RecordSizeKiB
{
get { return this._recordSizeKiB.GetValueOrDefault(); }
set { this._recordSizeKiB = value; }
}
// Check to see if RecordSizeKiB property is set
internal bool IsSetRecordSizeKiB()
{
return this._recordSizeKiB.HasValue;
}
///
/// Gets and sets the property StorageCapacityQuotaGiB.
///
/// Sets the maximum storage size in gibibytes (GiB) for the volume. You can specify a
/// quota that is larger than the storage on the parent volume. A volume quota limits
/// the amount of storage that the volume can consume to the configured amount, but does
/// not guarantee the space will be available on the parent volume. To guarantee quota
/// space, you must also set StorageCapacityReservationGiB
. To not
/// specify a storage capacity quota, set this to -1
.
///
///
///
/// For more information, see Volume
/// properties in the Amazon FSx for OpenZFS User Guide.
///
///
[AWSProperty(Min=-1, Max=2147483647)]
public int StorageCapacityQuotaGiB
{
get { return this._storageCapacityQuotaGiB.GetValueOrDefault(); }
set { this._storageCapacityQuotaGiB = value; }
}
// Check to see if StorageCapacityQuotaGiB property is set
internal bool IsSetStorageCapacityQuotaGiB()
{
return this._storageCapacityQuotaGiB.HasValue;
}
///
/// Gets and sets the property StorageCapacityReservationGiB.
///
/// Specifies the amount of storage in gibibytes (GiB) to reserve from the parent volume.
/// Setting StorageCapacityReservationGiB
guarantees that the specified amount
/// of storage space on the parent volume will always be available for the volume. You
/// can't reserve more storage than the parent volume has. To not specify a storage
/// capacity reservation, set this to 0
or -1
. For more information,
/// see Volume
/// properties in the Amazon FSx for OpenZFS User Guide.
///
///
[AWSProperty(Min=-1, Max=2147483647)]
public int StorageCapacityReservationGiB
{
get { return this._storageCapacityReservationGiB.GetValueOrDefault(); }
set { this._storageCapacityReservationGiB = value; }
}
// Check to see if StorageCapacityReservationGiB property is set
internal bool IsSetStorageCapacityReservationGiB()
{
return this._storageCapacityReservationGiB.HasValue;
}
///
/// Gets and sets the property UserAndGroupQuotas.
///
/// An object specifying how much storage users or groups can use on the volume.
///
///
[AWSProperty(Max=500)]
public List UserAndGroupQuotas
{
get { return this._userAndGroupQuotas; }
set { this._userAndGroupQuotas = value; }
}
// Check to see if UserAndGroupQuotas property is set
internal bool IsSetUserAndGroupQuotas()
{
return this._userAndGroupQuotas != null && this._userAndGroupQuotas.Count > 0;
}
}
}