/* * 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 elasticfilesystem-2015-02-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.ElasticFileSystem.Model { /// /// A description of the file system. /// public partial class CreateFileSystemResponse : AmazonWebServiceResponse { private string _availabilityZoneId; private string _availabilityZoneName; private DateTime? _creationTime; private string _creationToken; private bool? _encrypted; private string _fileSystemArn; private string _fileSystemId; private string _kmsKeyId; private LifeCycleState _lifeCycleState; private string _name; private int? _numberOfMountTargets; private string _ownerId; private PerformanceMode _performanceMode; private double? _provisionedThroughputInMibps; private FileSystemSize _sizeInBytes; private List _tags = new List(); private ThroughputMode _throughputMode; /// /// Gets and sets the property AvailabilityZoneId. /// /// The unique and consistent identifier of the Availability Zone in which the file system's /// One Zone storage classes exist. For example, use1-az1 is an Availability /// Zone ID for the us-east-1 Amazon Web Services Region, and it has the same location /// in every Amazon Web Services account. /// /// public string AvailabilityZoneId { get { return this._availabilityZoneId; } set { this._availabilityZoneId = value; } } // Check to see if AvailabilityZoneId property is set internal bool IsSetAvailabilityZoneId() { return this._availabilityZoneId != null; } /// /// Gets and sets the property AvailabilityZoneName. /// /// Describes the Amazon Web Services Availability Zone in which the file system is located, /// and is valid only for file systems using One Zone storage classes. For more information, /// see Using /// EFS storage classes in the Amazon EFS User Guide. /// /// [AWSProperty(Min=1, Max=64)] public string AvailabilityZoneName { get { return this._availabilityZoneName; } set { this._availabilityZoneName = value; } } // Check to see if AvailabilityZoneName property is set internal bool IsSetAvailabilityZoneName() { return this._availabilityZoneName != null; } /// /// Gets and sets the property CreationTime. /// /// The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z). /// /// [AWSProperty(Required=true)] 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 CreationToken. /// /// The opaque string specified in the request. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string CreationToken { get { return this._creationToken; } set { this._creationToken = value; } } // Check to see if CreationToken property is set internal bool IsSetCreationToken() { return this._creationToken != null; } /// /// Gets and sets the property Encrypted. /// /// A Boolean value that, if true, indicates that the file system is encrypted. /// /// public bool Encrypted { get { return this._encrypted.GetValueOrDefault(); } set { this._encrypted = value; } } // Check to see if Encrypted property is set internal bool IsSetEncrypted() { return this._encrypted.HasValue; } /// /// Gets and sets the property FileSystemArn. /// /// The Amazon Resource Name (ARN) for the EFS file system, in the format arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id /// . Example with sample data: arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567 /// /// /// public string FileSystemArn { get { return this._fileSystemArn; } set { this._fileSystemArn = value; } } // Check to see if FileSystemArn property is set internal bool IsSetFileSystemArn() { return this._fileSystemArn != null; } /// /// Gets and sets the property FileSystemId. /// /// The ID of the file system, assigned by Amazon EFS. /// /// [AWSProperty(Required=true, Max=128)] 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 KmsKeyId. /// /// The ID of an KMS key used to protect the encrypted file system. /// /// [AWSProperty(Max=2048)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property LifeCycleState. /// /// The lifecycle phase of the file system. /// /// [AWSProperty(Required=true)] public LifeCycleState LifeCycleState { get { return this._lifeCycleState; } set { this._lifeCycleState = value; } } // Check to see if LifeCycleState property is set internal bool IsSetLifeCycleState() { return this._lifeCycleState != null; } /// /// Gets and sets the property Name. /// /// You can add tags to a file system, including a Name tag. For more information, /// see CreateFileSystem. If the file system has a Name tag, Amazon /// EFS returns the value in this field. /// /// [AWSProperty(Max=256)] 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 NumberOfMountTargets. /// /// The current number of mount targets that the file system has. For more information, /// see CreateMountTarget. /// /// [AWSProperty(Required=true, Min=0)] public int NumberOfMountTargets { get { return this._numberOfMountTargets.GetValueOrDefault(); } set { this._numberOfMountTargets = value; } } // Check to see if NumberOfMountTargets property is set internal bool IsSetNumberOfMountTargets() { return this._numberOfMountTargets.HasValue; } /// /// Gets and sets the property OwnerId. /// /// The Amazon Web Services account that created the file system. /// /// [AWSProperty(Required=true, Max=14)] public string OwnerId { get { return this._ownerId; } set { this._ownerId = value; } } // Check to see if OwnerId property is set internal bool IsSetOwnerId() { return this._ownerId != null; } /// /// Gets and sets the property PerformanceMode. /// /// The performance mode of the file system. /// /// [AWSProperty(Required=true)] public PerformanceMode PerformanceMode { get { return this._performanceMode; } set { this._performanceMode = value; } } // Check to see if PerformanceMode property is set internal bool IsSetPerformanceMode() { return this._performanceMode != null; } /// /// Gets and sets the property ProvisionedThroughputInMibps. /// /// The amount of provisioned throughput, measured in MiB/s, for the file system. Valid /// for file systems using ThroughputMode set to provisioned. /// /// [AWSProperty(Min=1)] public double ProvisionedThroughputInMibps { get { return this._provisionedThroughputInMibps.GetValueOrDefault(); } set { this._provisionedThroughputInMibps = value; } } // Check to see if ProvisionedThroughputInMibps property is set internal bool IsSetProvisionedThroughputInMibps() { return this._provisionedThroughputInMibps.HasValue; } /// /// Gets and sets the property SizeInBytes. /// /// The latest known metered size (in bytes) of data stored in the file system, in its /// Value field, and the time at which that size was determined in its Timestamp /// field. The Timestamp value is the integer number of seconds since 1970-01-01T00:00:00Z. /// The SizeInBytes value doesn't represent the size of a consistent snapshot /// of the file system, but it is eventually consistent when there are no writes to the /// file system. That is, SizeInBytes represents actual size only if the /// file system is not modified for a period longer than a couple of hours. Otherwise, /// the value is not the exact size that the file system was at any point in time. /// /// [AWSProperty(Required=true)] public FileSystemSize SizeInBytes { get { return this._sizeInBytes; } set { this._sizeInBytes = value; } } // Check to see if SizeInBytes property is set internal bool IsSetSizeInBytes() { return this._sizeInBytes != null; } /// /// Gets and sets the property Tags. /// /// The tags associated with the file system, presented as an array of Tag /// objects. /// /// [AWSProperty(Required=true)] 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 ThroughputMode. /// /// Displays the file system's throughput mode. For more information, see Throughput /// modes in the Amazon EFS User Guide. /// /// public ThroughputMode ThroughputMode { get { return this._throughputMode; } set { this._throughputMode = value; } } // Check to see if ThroughputMode property is set internal bool IsSetThroughputMode() { return this._throughputMode != null; } } }