/* * 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 CreateDataSourceFromRedshiftRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* A user-supplied ID that uniquely identifies the DataSource. *

*/ private String dataSourceId; /** *

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

*/ private String dataSourceName; /** *

* The data specification of an Amazon Redshift DataSource: *

* */ private RedshiftDataSpec dataSpec; /** *

* A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the role on behalf of the user to create the * following: *

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

* * @param dataSourceId * A user-supplied ID that uniquely identifies the DataSource. */ public void setDataSourceId(String dataSourceId) { this.dataSourceId = dataSourceId; } /** *

* A user-supplied ID that uniquely identifies the DataSource. *

* * @return A user-supplied ID that uniquely identifies the DataSource. */ public String getDataSourceId() { return this.dataSourceId; } /** *

* A user-supplied ID that uniquely identifies the DataSource. *

* * @param dataSourceId * A user-supplied ID that uniquely identifies the DataSource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSourceFromRedshiftRequest 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 CreateDataSourceFromRedshiftRequest withDataSourceName(String dataSourceName) { setDataSourceName(dataSourceName); return this; } /** *

* The data specification of an Amazon Redshift DataSource: *

* * * @param dataSpec * The data specification of an Amazon Redshift DataSource:

*