/* * 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 { /// /// Describes Network File System (NFS) file share default values. Files and folders stored /// as Amazon S3 objects in S3 buckets don't, by default, have Unix file permissions assigned /// to them. Upon discovery in an S3 bucket by Storage Gateway, the S3 objects that represent /// files and folders are assigned these default Unix permissions. This operation is only /// supported for S3 File Gateways. /// public partial class NFSFileShareDefaults { private string _directoryMode; private string _fileMode; private long? _groupId; private long? _ownerId; /// /// Gets and sets the property DirectoryMode. /// /// The Unix directory mode in the form "nnnn". For example, 0666 represents /// the default access mode for all directories inside the file share. The default value /// is 0777. /// /// [AWSProperty(Min=1, Max=4)] public string DirectoryMode { get { return this._directoryMode; } set { this._directoryMode = value; } } // Check to see if DirectoryMode property is set internal bool IsSetDirectoryMode() { return this._directoryMode != null; } /// /// Gets and sets the property FileMode. /// /// The Unix file mode in the form "nnnn". For example, 0666 represents the /// default file mode inside the file share. The default value is 0666. /// /// [AWSProperty(Min=1, Max=4)] public string FileMode { get { return this._fileMode; } set { this._fileMode = value; } } // Check to see if FileMode property is set internal bool IsSetFileMode() { return this._fileMode != null; } /// /// Gets and sets the property GroupId. /// /// The default group ID for the file share (unless the files have another group ID specified). /// The default value is nfsnobody. /// /// [AWSProperty(Min=0, Max=4294967294)] public long GroupId { get { return this._groupId.GetValueOrDefault(); } set { this._groupId = value; } } // Check to see if GroupId property is set internal bool IsSetGroupId() { return this._groupId.HasValue; } /// /// Gets and sets the property OwnerId. /// /// The default owner ID for files in the file share (unless the files have another owner /// ID specified). The default value is nfsnobody. /// /// [AWSProperty(Min=0, Max=4294967294)] public long OwnerId { get { return this._ownerId.GetValueOrDefault(); } set { this._ownerId = value; } } // Check to see if OwnerId property is set internal bool IsSetOwnerId() { return this._ownerId.HasValue; } } }