/* * 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 { /// /// Describes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume. /// public partial class Volume { private List _administrativeActions = new List(); private DateTime? _creationTime; private string _fileSystemId; private VolumeLifecycle _lifecycle; private LifecycleTransitionReason _lifecycleTransitionReason; private string _name; private OntapVolumeConfiguration _ontapConfiguration; private OpenZFSVolumeConfiguration _openZFSConfiguration; private string _resourceARN; private List _tags = new List(); private string _volumeId; private VolumeType _volumeType; /// /// Gets and sets the property AdministrativeActions. /// /// A list of administrative actions for the volume that are in process or waiting to /// be processed. Administrative actions describe changes to the volume that you have /// initiated using the UpdateVolume action. /// /// [AWSProperty(Max=50)] public List AdministrativeActions { get { return this._administrativeActions; } set { this._administrativeActions = value; } } // Check to see if AdministrativeActions property is set internal bool IsSetAdministrativeActions() { return this._administrativeActions != null && this._administrativeActions.Count > 0; } /// /// Gets and sets the property CreationTime. /// public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// /// Gets and sets the property FileSystemId. /// [AWSProperty(Min=11, Max=21)] public string FileSystemId { get { return this._fileSystemId; } set { this._fileSystemId = value; } } // Check to see if FileSystemId property is set internal bool IsSetFileSystemId() { return this._fileSystemId != null; } /// /// Gets and sets the property Lifecycle. /// /// The lifecycle status of the volume. /// ///
  • /// /// AVAILABLE - The volume is fully available for use. /// ///
  • /// /// CREATED - The volume has been created. /// ///
  • /// /// CREATING - Amazon FSx is creating the new volume. /// ///
  • /// /// DELETING - Amazon FSx is deleting an existing volume. /// ///
  • /// /// FAILED - Amazon FSx was unable to create the volume. /// ///
  • /// /// MISCONFIGURED - The volume is in a failed but recoverable state. /// ///
  • /// /// PENDING - Amazon FSx hasn't started creating the volume. /// ///
///
public VolumeLifecycle Lifecycle { get { return this._lifecycle; } set { this._lifecycle = value; } } // Check to see if Lifecycle property is set internal bool IsSetLifecycle() { return this._lifecycle != null; } /// /// Gets and sets the property LifecycleTransitionReason. /// /// The reason why the volume lifecycle status changed. /// /// public LifecycleTransitionReason LifecycleTransitionReason { get { return this._lifecycleTransitionReason; } set { this._lifecycleTransitionReason = value; } } // Check to see if LifecycleTransitionReason property is set internal bool IsSetLifecycleTransitionReason() { return this._lifecycleTransitionReason != null; } /// /// Gets and sets the property Name. /// /// The name of the volume. /// /// [AWSProperty(Min=1, Max=203)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property OntapConfiguration. /// public OntapVolumeConfiguration OntapConfiguration { get { return this._ontapConfiguration; } set { this._ontapConfiguration = value; } } // Check to see if OntapConfiguration property is set internal bool IsSetOntapConfiguration() { return this._ontapConfiguration != null; } /// /// Gets and sets the property OpenZFSConfiguration. /// /// The configuration of an Amazon FSx for OpenZFS volume. /// /// public OpenZFSVolumeConfiguration OpenZFSConfiguration { get { return this._openZFSConfiguration; } set { this._openZFSConfiguration = value; } } // Check to see if OpenZFSConfiguration property is set internal bool IsSetOpenZFSConfiguration() { return this._openZFSConfiguration != null; } /// /// Gets and sets the property ResourceARN. /// [AWSProperty(Min=8, Max=512)] public string ResourceARN { get { return this._resourceARN; } set { this._resourceARN = value; } } // Check to see if ResourceARN property is set internal bool IsSetResourceARN() { return this._resourceARN != null; } /// /// Gets and sets the property Tags. /// [AWSProperty(Min=1, Max=50)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property VolumeId. /// /// The system-generated, unique ID of the volume. /// /// [AWSProperty(Min=23, Max=23)] public string VolumeId { get { return this._volumeId; } set { this._volumeId = value; } } // Check to see if VolumeId property is set internal bool IsSetVolumeId() { return this._volumeId != null; } /// /// Gets and sets the property VolumeType. /// /// The type of the volume. /// /// public VolumeType VolumeType { get { return this._volumeType; } set { this._volumeType = value; } } // Check to see if VolumeType property is set internal bool IsSetVolumeType() { return this._volumeType != null; } } }