/* * 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 machinelearning-2014-12-12.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.MachineLearning.Model { /// /// Represents the output of a GetDataSource operation and describes a DataSource. /// public partial class GetDataSourceResponse : AmazonWebServiceResponse { private bool? _computeStatistics; private long? _computeTime; private DateTime? _createdAt; private string _createdByIamUser; private string _dataLocationS3; private string _dataRearrangement; private long? _dataSizeInBytes; private string _dataSourceId; private string _dataSourceSchema; private DateTime? _finishedAt; private DateTime? _lastUpdatedAt; private string _logUri; private string _message; private string _name; private long? _numberOfFiles; private RDSMetadata _rdsMetadata; private RedshiftMetadata _redshiftMetadata; private string _roleARN; private DateTime? _startedAt; private EntityStatus _status; /// /// Gets and sets the property ComputeStatistics. /// /// The parameter is true if statistics need to be generated from the observation /// data. /// /// public bool ComputeStatistics { get { return this._computeStatistics.GetValueOrDefault(); } set { this._computeStatistics = value; } } // Check to see if ComputeStatistics property is set internal bool IsSetComputeStatistics() { return this._computeStatistics.HasValue; } /// /// Gets and sets the property ComputeTime. /// /// The approximate CPU time in milliseconds that Amazon Machine Learning spent processing /// the DataSource, normalized and scaled on computation resources. ComputeTime /// is only available if the DataSource is in the COMPLETED /// state and the ComputeStatistics is set to true. /// /// public long ComputeTime { get { return this._computeTime.GetValueOrDefault(); } set { this._computeTime = value; } } // Check to see if ComputeTime property is set internal bool IsSetComputeTime() { return this._computeTime.HasValue; } /// /// Gets and sets the property CreatedAt. /// /// The time that the DataSource was created. The time is expressed in epoch /// time. /// /// public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property CreatedByIamUser. /// /// The AWS user account from which the DataSource was created. The account /// type can be either an AWS root account or an AWS Identity and Access Management (IAM) /// user account. /// /// public string CreatedByIamUser { get { return this._createdByIamUser; } set { this._createdByIamUser = value; } } // Check to see if CreatedByIamUser property is set internal bool IsSetCreatedByIamUser() { return this._createdByIamUser != null; } /// /// Gets and sets the property DataLocationS3. /// /// The location of the data file or directory in Amazon Simple Storage Service (Amazon /// S3). /// /// [AWSProperty(Max=2048)] public string DataLocationS3 { get { return this._dataLocationS3; } set { this._dataLocationS3 = value; } } // Check to see if DataLocationS3 property is set internal bool IsSetDataLocationS3() { return this._dataLocationS3 != null; } /// /// Gets and sets the property DataRearrangement. /// /// A JSON string that represents the splitting and rearrangement requirement used when /// this DataSource was created. /// /// public string DataRearrangement { get { return this._dataRearrangement; } set { this._dataRearrangement = value; } } // Check to see if DataRearrangement property is set internal bool IsSetDataRearrangement() { return this._dataRearrangement != null; } /// /// Gets and sets the property DataSizeInBytes. /// /// The total size of observations in the data files. /// /// public long DataSizeInBytes { get { return this._dataSizeInBytes.GetValueOrDefault(); } set { this._dataSizeInBytes = value; } } // Check to see if DataSizeInBytes property is set internal bool IsSetDataSizeInBytes() { return this._dataSizeInBytes.HasValue; } /// /// Gets and sets the property DataSourceId. /// /// The ID assigned to the DataSource at creation. This value should be identical /// to the value of the DataSourceId in the request. /// /// [AWSProperty(Min=1, Max=64)] public string DataSourceId { get { return this._dataSourceId; } set { this._dataSourceId = value; } } // Check to see if DataSourceId property is set internal bool IsSetDataSourceId() { return this._dataSourceId != null; } /// /// Gets and sets the property DataSourceSchema. /// /// The schema used by all of the data files of this DataSource. /// /// /// /// Note: This parameter is provided as part of the verbose format. /// /// [AWSProperty(Max=131071)] public string DataSourceSchema { get { return this._dataSourceSchema; } set { this._dataSourceSchema = value; } } // Check to see if DataSourceSchema property is set internal bool IsSetDataSourceSchema() { return this._dataSourceSchema != null; } /// /// Gets and sets the property FinishedAt. /// /// The epoch time when Amazon Machine Learning marked the DataSource as /// COMPLETED or FAILED. FinishedAt is only available /// when the DataSource is in the COMPLETED or FAILED /// state. /// /// public DateTime FinishedAt { get { return this._finishedAt.GetValueOrDefault(); } set { this._finishedAt = value; } } // Check to see if FinishedAt property is set internal bool IsSetFinishedAt() { return this._finishedAt.HasValue; } /// /// Gets and sets the property LastUpdatedAt. /// /// The time of the most recent edit to the DataSource. The time is expressed /// in epoch time. /// /// public DateTime LastUpdatedAt { get { return this._lastUpdatedAt.GetValueOrDefault(); } set { this._lastUpdatedAt = value; } } // Check to see if LastUpdatedAt property is set internal bool IsSetLastUpdatedAt() { return this._lastUpdatedAt.HasValue; } /// /// Gets and sets the property LogUri. /// /// A link to the file containing logs of CreateDataSourceFrom* operations. /// /// public string LogUri { get { return this._logUri; } set { this._logUri = value; } } // Check to see if LogUri property is set internal bool IsSetLogUri() { return this._logUri != null; } /// /// Gets and sets the property Message. /// /// The user-supplied description of the most recent details about creating the DataSource. /// /// [AWSProperty(Max=10240)] public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// /// Gets and sets the property Name. /// /// A user-supplied name or description of the DataSource. /// /// [AWSProperty(Max=1024)] 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 NumberOfFiles. /// /// The number of data files referenced by the DataSource. /// /// public long NumberOfFiles { get { return this._numberOfFiles.GetValueOrDefault(); } set { this._numberOfFiles = value; } } // Check to see if NumberOfFiles property is set internal bool IsSetNumberOfFiles() { return this._numberOfFiles.HasValue; } /// /// Gets and sets the property RDSMetadata. /// public RDSMetadata RDSMetadata { get { return this._rdsMetadata; } set { this._rdsMetadata = value; } } // Check to see if RDSMetadata property is set internal bool IsSetRDSMetadata() { return this._rdsMetadata != null; } /// /// Gets and sets the property RedshiftMetadata. /// public RedshiftMetadata RedshiftMetadata { get { return this._redshiftMetadata; } set { this._redshiftMetadata = value; } } // Check to see if RedshiftMetadata property is set internal bool IsSetRedshiftMetadata() { return this._redshiftMetadata != null; } /// /// Gets and sets the property RoleARN. /// [AWSProperty(Min=1, Max=110)] public string RoleARN { get { return this._roleARN; } set { this._roleARN = value; } } // Check to see if RoleARN property is set internal bool IsSetRoleARN() { return this._roleARN != null; } /// /// Gets and sets the property StartedAt. /// /// The epoch time when Amazon Machine Learning marked the DataSource as /// INPROGRESS. StartedAt isn't available if the DataSource /// is in the PENDING state. /// /// public DateTime StartedAt { get { return this._startedAt.GetValueOrDefault(); } set { this._startedAt = value; } } // Check to see if StartedAt property is set internal bool IsSetStartedAt() { return this._startedAt.HasValue; } /// /// Gets and sets the property Status. /// /// The current status of the DataSource. This element can have one of the /// following values: /// /// /// public EntityStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }