/* * 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 CreateLocationS3 operation. /// A location is an endpoint for an Amazon S3 bucket. DataSync can use the location /// as a source or destination for copying data. /// /// /// /// Before you create your location, make sure that you read the following sections: /// /// /// /// For more information, see Creating /// an Amazon S3 location. /// /// public partial class CreateLocationS3Request : AmazonDataSyncRequest { private List _agentArns = new List(); private string _s3BucketArn; private S3Config _s3Config; private S3StorageClass _s3StorageClass; private string _subdirectory; private List _tags = new List(); /// /// Gets and sets the property AgentArns. /// /// If you're using DataSync on an Amazon Web Services Outpost, specify the Amazon Resource /// Names (ARNs) of the DataSync agents deployed on your Outpost. For more information /// about launching a DataSync agent on an Amazon Web Services Outpost, see Deploy /// your DataSync agent on Outposts. /// /// [AWSProperty(Min=1, Max=4)] public List AgentArns { get { return this._agentArns; } set { this._agentArns = value; } } // Check to see if AgentArns property is set internal bool IsSetAgentArns() { return this._agentArns != null && this._agentArns.Count > 0; } /// /// Gets and sets the property S3BucketArn. /// /// The ARN of the Amazon S3 bucket. If the bucket is on an Amazon Web Services Outpost, /// this must be an access point ARN. /// /// [AWSProperty(Required=true, Max=156)] public string S3BucketArn { get { return this._s3BucketArn; } set { this._s3BucketArn = value; } } // Check to see if S3BucketArn property is set internal bool IsSetS3BucketArn() { return this._s3BucketArn != null; } /// /// Gets and sets the property S3Config. /// [AWSProperty(Required=true)] public S3Config S3Config { get { return this._s3Config; } set { this._s3Config = value; } } // Check to see if S3Config property is set internal bool IsSetS3Config() { return this._s3Config != null; } /// /// Gets and sets the property S3StorageClass. /// /// The Amazon S3 storage class that you want to store your files in when this location /// is used as a task destination. For buckets in Amazon Web Services Regions, the storage /// class defaults to Standard. For buckets on Outposts, the storage class defaults to /// Amazon Web Services S3 Outposts. /// /// /// /// For more information about S3 storage classes, see Amazon /// S3 Storage Classes. Some storage classes have behaviors that can affect your S3 /// storage cost. For detailed information, see Considerations /// when working with S3 storage classes in DataSync. /// /// public S3StorageClass S3StorageClass { get { return this._s3StorageClass; } set { this._s3StorageClass = value; } } // Check to see if S3StorageClass property is set internal bool IsSetS3StorageClass() { return this._s3StorageClass != null; } /// /// Gets and sets the property Subdirectory. /// /// A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to /// read data from the S3 source location or write data to the S3 destination. /// /// [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 the tag that you want to add to the location. The /// value can be an empty string. We recommend using tags to name your resources. /// /// [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; } } }