/* * 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 CreateLocationFsxWindows operation. /// Creates an endpoint for an Amazon FSx for Windows File Server file system. /// public partial class CreateLocationFsxWindowsRequest : AmazonDataSyncRequest { private string _domain; private string _fsxFilesystemArn; private string _password; private List _securityGroupArns = new List(); private string _subdirectory; private List _tags = new List(); private string _user; /// /// Gets and sets the property Domain. /// /// Specifies the name of the Windows domain that the FSx for Windows File Server belongs /// to. /// /// [AWSProperty(Max=253)] public string Domain { get { return this._domain; } set { this._domain = value; } } // Check to see if Domain property is set internal bool IsSetDomain() { return this._domain != null; } /// /// Gets and sets the property FsxFilesystemArn. /// /// Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server 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 Password. /// /// Specifies the password of the user who has the permissions to access files and folders /// in the file system. /// /// [AWSProperty(Required=true, Sensitive=true, Max=104)] public string Password { get { return this._password; } set { this._password = value; } } // Check to see if Password property is set internal bool IsSetPassword() { return this._password != null; } /// /// Gets and sets the property SecurityGroupArns. /// /// Specifies the ARNs of the security groups that provide access to your file system's /// preferred subnet. /// /// /// /// If you choose a security group that doesn't allow connections from within itself, /// do one of the following: /// ///
  • /// /// Configure the security group to allow it to communicate within itself. /// ///
  • /// /// Choose a different security group that can communicate with the mount target's security /// group. /// ///
///
[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. /// /// Specifies a mount path for your file system using forward slashes. This is where DataSync /// reads or writes data (depending on if this 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. /// /// Specifies labels that help you categorize, filter, and search for your Amazon Web /// Services resources. We recommend creating at least 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; } /// /// Gets and sets the property User. /// /// Specifies the user who has the permissions to access files, folders, and metadata /// in your file system. /// /// /// /// For information about choosing a user with sufficient permissions, see Required /// permissions. /// /// [AWSProperty(Required=true, Max=104)] public string User { get { return this._user; } set { this._user = value; } } // Check to see if User property is set internal bool IsSetUser() { return this._user != null; } } }