/* * Copyright 2018-2023 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. */ package com.amazonaws.services.machinelearning.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Represents the output of a GetDataSource operation and describes a DataSource. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetDataSourceResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The ID assigned to the DataSource at creation. This value should be identical to the value of the * DataSourceId in the request. *

*/ private String dataSourceId; /** *

* The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). *

*/ private String dataLocationS3; /** *

* A JSON string that represents the splitting and rearrangement requirement used when this DataSource * was created. *

*/ private String dataRearrangement; /** *

* 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. *

*/ private String createdByIamUser; /** *

* The time that the DataSource was created. The time is expressed in epoch time. *

*/ private java.util.Date createdAt; /** *

* The time of the most recent edit to the DataSource. The time is expressed in epoch time. *

*/ private java.util.Date lastUpdatedAt; /** *

* The total size of observations in the data files. *

*/ private Long dataSizeInBytes; /** *

* The number of data files referenced by the DataSource. *

*/ private Long numberOfFiles; /** *

* A user-supplied name or description of the DataSource. *

*/ private String name; /** *

* The current status of the DataSource. This element can have one of the following values: *

* */ private String status; /** *

* A link to the file containing logs of CreateDataSourceFrom* operations. *

*/ private String logUri; /** *

* The user-supplied description of the most recent details about creating the DataSource. *

*/ private String message; private RedshiftMetadata redshiftMetadata; private RDSMetadata rDSMetadata; private String roleARN; /** *

* The parameter is true if statistics need to be generated from the observation data. *

*/ private Boolean computeStatistics; /** *

* 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. *

*/ private Long computeTime; /** *

* 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. *

*/ private java.util.Date finishedAt; /** *

* The epoch time when Amazon Machine Learning marked the DataSource as INPROGRESS. * StartedAt isn't available if the DataSource is in the PENDING state. *

*/ private java.util.Date startedAt; /** *

* The schema used by all of the data files of this DataSource. *

*

* Note: This parameter is provided as part of the verbose format. *

*/ private String dataSourceSchema; /** *

* The ID assigned to the DataSource at creation. This value should be identical to the value of the * DataSourceId in the request. *

* * @param dataSourceId * The ID assigned to the DataSource at creation. This value should be identical to the value of * the DataSourceId in the request. */ public void setDataSourceId(String dataSourceId) { this.dataSourceId = dataSourceId; } /** *

* The ID assigned to the DataSource at creation. This value should be identical to the value of the * DataSourceId in the request. *

* * @return The ID assigned to the DataSource at creation. This value should be identical to the value * of the DataSourceId in the request. */ public String getDataSourceId() { return this.dataSourceId; } /** *

* The ID assigned to the DataSource at creation. This value should be identical to the value of the * DataSourceId in the request. *

* * @param dataSourceId * The ID assigned to the DataSource at creation. This value should be identical to the value of * the DataSourceId in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withDataSourceId(String dataSourceId) { setDataSourceId(dataSourceId); return this; } /** *

* The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). *

* * @param dataLocationS3 * The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). */ public void setDataLocationS3(String dataLocationS3) { this.dataLocationS3 = dataLocationS3; } /** *

* The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). *

* * @return The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). */ public String getDataLocationS3() { return this.dataLocationS3; } /** *

* The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). *

* * @param dataLocationS3 * The location of the data file or directory in Amazon Simple Storage Service (Amazon S3). * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withDataLocationS3(String dataLocationS3) { setDataLocationS3(dataLocationS3); return this; } /** *

* A JSON string that represents the splitting and rearrangement requirement used when this DataSource * was created. *

* * @param dataRearrangement * A JSON string that represents the splitting and rearrangement requirement used when this * DataSource was created. */ public void setDataRearrangement(String dataRearrangement) { this.dataRearrangement = dataRearrangement; } /** *

* A JSON string that represents the splitting and rearrangement requirement used when this DataSource * was created. *

* * @return A JSON string that represents the splitting and rearrangement requirement used when this * DataSource was created. */ public String getDataRearrangement() { return this.dataRearrangement; } /** *

* A JSON string that represents the splitting and rearrangement requirement used when this DataSource * was created. *

* * @param dataRearrangement * A JSON string that represents the splitting and rearrangement requirement used when this * DataSource was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withDataRearrangement(String dataRearrangement) { setDataRearrangement(dataRearrangement); return this; } /** *

* 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. *

* * @param 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 void setCreatedByIamUser(String createdByIamUser) { this.createdByIamUser = 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. *

* * @return 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 getCreatedByIamUser() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withCreatedByIamUser(String createdByIamUser) { setCreatedByIamUser(createdByIamUser); return this; } /** *

* The time that the DataSource was created. The time is expressed in epoch time. *

* * @param createdAt * The time that the DataSource was created. The time is expressed in epoch time. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The time that the DataSource was created. The time is expressed in epoch time. *

* * @return The time that the DataSource was created. The time is expressed in epoch time. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The time that the DataSource was created. The time is expressed in epoch time. *

* * @param createdAt * The time that the DataSource was created. The time is expressed in epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The time of the most recent edit to the DataSource. The time is expressed in epoch time. *

* * @param lastUpdatedAt * The time of the most recent edit to the DataSource. The time is expressed in epoch time. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* The time of the most recent edit to the DataSource. The time is expressed in epoch time. *

* * @return The time of the most recent edit to the DataSource. The time is expressed in epoch time. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* The time of the most recent edit to the DataSource. The time is expressed in epoch time. *

* * @param lastUpdatedAt * The time of the most recent edit to the DataSource. The time is expressed in epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** *

* The total size of observations in the data files. *

* * @param dataSizeInBytes * The total size of observations in the data files. */ public void setDataSizeInBytes(Long dataSizeInBytes) { this.dataSizeInBytes = dataSizeInBytes; } /** *

* The total size of observations in the data files. *

* * @return The total size of observations in the data files. */ public Long getDataSizeInBytes() { return this.dataSizeInBytes; } /** *

* The total size of observations in the data files. *

* * @param dataSizeInBytes * The total size of observations in the data files. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withDataSizeInBytes(Long dataSizeInBytes) { setDataSizeInBytes(dataSizeInBytes); return this; } /** *

* The number of data files referenced by the DataSource. *

* * @param numberOfFiles * The number of data files referenced by the DataSource. */ public void setNumberOfFiles(Long numberOfFiles) { this.numberOfFiles = numberOfFiles; } /** *

* The number of data files referenced by the DataSource. *

* * @return The number of data files referenced by the DataSource. */ public Long getNumberOfFiles() { return this.numberOfFiles; } /** *

* The number of data files referenced by the DataSource. *

* * @param numberOfFiles * The number of data files referenced by the DataSource. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withNumberOfFiles(Long numberOfFiles) { setNumberOfFiles(numberOfFiles); return this; } /** *

* A user-supplied name or description of the DataSource. *

* * @param name * A user-supplied name or description of the DataSource. */ public void setName(String name) { this.name = name; } /** *

* A user-supplied name or description of the DataSource. *

* * @return A user-supplied name or description of the DataSource. */ public String getName() { return this.name; } /** *

* A user-supplied name or description of the DataSource. *

* * @param name * A user-supplied name or description of the DataSource. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataSourceResult withName(String name) { setName(name); return this; } /** *

* The current status of the DataSource. This element can have one of the following values: *

* * * @param status * The current status of the DataSource. This element can have one of the following values:

*