/* * 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; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents the output of the GetDataSource operation. *

*

* The content consists of the detailed metadata and data file information and the current status of the * DataSource. *

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

* The ID that is assigned to the DataSource during creation. *

*/ private String dataSourceId; /** *

* The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a * DataSource. *

*/ 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 BatchPrediction. The time is expressed in epoch time. *

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

* The total number of observations contained in the data files that the DataSource references. *

*/ 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 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; private Long computeTime; private java.util.Date finishedAt; private java.util.Date startedAt; /** *

* The ID that is assigned to the DataSource during creation. *

* * @param dataSourceId * The ID that is assigned to the DataSource during creation. */ public void setDataSourceId(String dataSourceId) { this.dataSourceId = dataSourceId; } /** *

* The ID that is assigned to the DataSource during creation. *

* * @return The ID that is assigned to the DataSource during creation. */ public String getDataSourceId() { return this.dataSourceId; } /** *

* The ID that is assigned to the DataSource during creation. *

* * @param dataSourceId * The ID that is assigned to the DataSource during creation. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withDataSourceId(String dataSourceId) { setDataSourceId(dataSourceId); return this; } /** *

* The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a * DataSource. *

* * @param dataLocationS3 * The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a * DataSource. */ public void setDataLocationS3(String dataLocationS3) { this.dataLocationS3 = dataLocationS3; } /** *

* The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a * DataSource. *

* * @return The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a * DataSource. */ public String getDataLocationS3() { return this.dataLocationS3; } /** *

* The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a * DataSource. *

* * @param dataLocationS3 * The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a * DataSource. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource 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 DataSource 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 DataSource 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 DataSource withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

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

* * @param lastUpdatedAt * The time of the most recent edit to the BatchPrediction. 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 BatchPrediction. The time is expressed in epoch time. *

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

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

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

* The total number of observations contained in the data files that the DataSource references. *

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

* The total number of observations contained in the data files that the DataSource references. *

* * @return The total number of observations contained in the data files that the DataSource references. */ public Long getDataSizeInBytes() { return this.dataSizeInBytes; } /** *

* The total number of observations contained in the data files that the DataSource references. *

* * @param dataSizeInBytes * The total number of observations contained in the data files that the DataSource references. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource 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 DataSource 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 DataSource 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:

*