/* * 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 robomaker-2018-06-29.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.RoboMaker.Model { /// /// Information about a data source. /// public partial class DataSource { private string _destination; private string _name; private string _s3Bucket; private List _s3Keys = new List(); private DataSourceType _type; /// /// Gets and sets the property Destination. /// /// The location where your files are mounted in the container image. /// /// /// /// If you've specified the type of the data source as an Archive, /// you must provide an Amazon S3 object key to your archive. The object key must point /// to either a .zip or .tar.gz file. /// /// /// /// If you've specified the type of the data source as a Prefix, /// you provide the Amazon S3 prefix that points to the files that you are using for your /// data source. /// /// /// /// If you've specified the type of the data source as a File, /// you provide the Amazon S3 path to the file that you're using as your data source. /// /// [AWSProperty(Min=1, Max=1024)] public string Destination { get { return this._destination; } set { this._destination = value; } } // Check to see if Destination property is set internal bool IsSetDestination() { return this._destination != null; } /// /// Gets and sets the property Name. /// /// The name of the data source. /// /// [AWSProperty(Min=1, Max=255)] 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 S3Bucket. /// /// The S3 bucket where the data files are located. /// /// [AWSProperty(Min=3, Max=63)] public string S3Bucket { get { return this._s3Bucket; } set { this._s3Bucket = value; } } // Check to see if S3Bucket property is set internal bool IsSetS3Bucket() { return this._s3Bucket != null; } /// /// Gets and sets the property S3Keys. /// /// The list of S3 keys identifying the data source files. /// /// public List S3Keys { get { return this._s3Keys; } set { this._s3Keys = value; } } // Check to see if S3Keys property is set internal bool IsSetS3Keys() { return this._s3Keys != null && this._s3Keys.Count > 0; } /// /// Gets and sets the property Type. /// /// The data type for the data source that you're using for your container image or simulation /// job. You can use this field to specify whether your data source is an Archive, an /// Amazon S3 prefix, or a file. /// /// /// /// If you don't specify a field, the default value is File. /// /// public DataSourceType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }