/* * 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.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateDataSourceFromRDSRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* A user-supplied ID that uniquely identifies the DataSource. Typically, an Amazon Resource Number * (ARN) becomes the ID for a DataSource. *

*/ private String dataSourceId; /** *

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

*/ private String dataSourceName; /** *

* The data specification of an Amazon RDS DataSource: *

* */ private RDSDataSpec rDSData; /** *

* The role that Amazon ML assumes on behalf of the user to create and activate a data pipeline in the user's * account and copy data using the SelectSqlQuery query from Amazon RDS to Amazon S3. *

*

*/ private String roleARN; /** *

* The compute statistics for a DataSource. The statistics are generated from the observation data * referenced by a DataSource. Amazon ML uses the statistics internally during MLModel * training. This parameter must be set to true if the * DataSource needs to be used for MLModel training. *

*/ private Boolean computeStatistics; /** *

* A user-supplied ID that uniquely identifies the DataSource. Typically, an Amazon Resource Number * (ARN) becomes the ID for a DataSource. *

* * @param dataSourceId * A user-supplied ID that uniquely identifies the DataSource. Typically, an Amazon Resource * Number (ARN) becomes the ID for a DataSource. */ public void setDataSourceId(String dataSourceId) { this.dataSourceId = dataSourceId; } /** *

* A user-supplied ID that uniquely identifies the DataSource. Typically, an Amazon Resource Number * (ARN) becomes the ID for a DataSource. *

* * @return A user-supplied ID that uniquely identifies the DataSource. Typically, an Amazon Resource * Number (ARN) becomes the ID for a DataSource. */ public String getDataSourceId() { return this.dataSourceId; } /** *

* A user-supplied ID that uniquely identifies the DataSource. Typically, an Amazon Resource Number * (ARN) becomes the ID for a DataSource. *

* * @param dataSourceId * A user-supplied ID that uniquely identifies the DataSource. Typically, an Amazon Resource * Number (ARN) becomes the ID for a DataSource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSourceFromRDSRequest withDataSourceId(String dataSourceId) { setDataSourceId(dataSourceId); return this; } /** *

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

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

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

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

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

* * @param dataSourceName * 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 CreateDataSourceFromRDSRequest withDataSourceName(String dataSourceName) { setDataSourceName(dataSourceName); return this; } /** *

* The data specification of an Amazon RDS DataSource: *

* * * @param rDSData * The data specification of an Amazon RDS DataSource:

*