/* * 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 datasync-2018-11-09.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.DataSync.Model { /// /// Container for the parameters to the CreateLocationFsxOpenZfs operation. /// Creates an endpoint for an Amazon FSx for OpenZFS file system that DataSync can access /// for a transfer. For more information, see Creating /// a location for FSx for OpenZFS. /// /// /// /// Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs /// operation. /// /// /// public partial class CreateLocationFsxOpenZfsRequest : AmazonDataSyncRequest { private string _fsxFilesystemArn; private FsxProtocol _protocol; private List _securityGroupArns = new List(); private string _subdirectory; private List _tags = new List(); /// /// Gets and sets the property FsxFilesystemArn. /// /// The Amazon Resource Name (ARN) of the FSx for OpenZFS file system. /// /// [AWSProperty(Required=true, Max=128)] public string FsxFilesystemArn { get { return this._fsxFilesystemArn; } set { this._fsxFilesystemArn = value; } } // Check to see if FsxFilesystemArn property is set internal bool IsSetFsxFilesystemArn() { return this._fsxFilesystemArn != null; } /// /// Gets and sets the property Protocol. /// /// The type of protocol that DataSync uses to access your file system. /// /// [AWSProperty(Required=true)] public FsxProtocol Protocol { get { return this._protocol; } set { this._protocol = value; } } // Check to see if Protocol property is set internal bool IsSetProtocol() { return this._protocol != null; } /// /// Gets and sets the property SecurityGroupArns. /// /// The ARNs of the security groups that are used to configure the FSx for OpenZFS file /// system. /// /// [AWSProperty(Required=true, Min=1, Max=5)] public List SecurityGroupArns { get { return this._securityGroupArns; } set { this._securityGroupArns = value; } } // Check to see if SecurityGroupArns property is set internal bool IsSetSecurityGroupArns() { return this._securityGroupArns != null && this._securityGroupArns.Count > 0; } /// /// Gets and sets the property Subdirectory. /// /// A subdirectory in the location's path that must begin with /fsx. DataSync /// uses this subdirectory to read or write data (depending on whether the file system /// is a source or destination location). /// /// [AWSProperty(Max=4096)] public string Subdirectory { get { return this._subdirectory; } set { this._subdirectory = value; } } // Check to see if Subdirectory property is set internal bool IsSetSubdirectory() { return this._subdirectory != null; } /// /// Gets and sets the property Tags. /// /// The key-value pair that represents a tag that you want to add to the resource. The /// value can be an empty string. This value helps you manage, filter, and search for /// your resources. We recommend that you create a name tag for your location. /// /// [AWSProperty(Min=0, 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; } } }