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

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

*/ private String mLModelId; /** *

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

*/ private String mLModelName; /** *

* The category of supervised learning that this MLModel will address. Choose from the following types: *

* *

* For more information, see the Amazon Machine * Learning Developer Guide. *

*/ private String mLModelType; /** *

* A list of the training parameters in the MLModel. The list is implemented as a map of key-value * pairs. *

*

* The following is the current set of training parameters: *

* */ private com.amazonaws.internal.SdkInternalMap parameters; /** *

* The DataSource that points to the training data. *

*/ private String trainingDataSourceId; /** *

* The data recipe for creating the MLModel. You must specify either the recipe or its URI. If you * don't specify a recipe or its URI, Amazon ML creates a default. *

*/ private String recipe; /** *

* The Amazon Simple Storage Service (Amazon S3) location and file name that contains the MLModel * recipe. You must specify either the recipe or its URI. If you don't specify a recipe or its URI, Amazon ML * creates a default. *

*/ private String recipeUri; /** *

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

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

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

* * @return A user-supplied ID that uniquely identifies the MLModel. */ public String getMLModelId() { return this.mLModelId; } /** *

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

* * @param mLModelId * A user-supplied ID that uniquely identifies the MLModel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMLModelRequest withMLModelId(String mLModelId) { setMLModelId(mLModelId); return this; } /** *

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

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

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

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

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

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

* The category of supervised learning that this MLModel will address. Choose from the following types: *

* *

* For more information, see the Amazon Machine * Learning Developer Guide. *

* * @param mLModelType * The category of supervised learning that this MLModel will address. Choose from the following * types:

* *

* For more information, see the Amazon * Machine Learning Developer Guide. * @see MLModelType */ public void setMLModelType(String mLModelType) { this.mLModelType = mLModelType; } /** *

* The category of supervised learning that this MLModel will address. Choose from the following types: *

* *

* For more information, see the Amazon Machine * Learning Developer Guide. *

* * @return The category of supervised learning that this MLModel will address. Choose from the * following types:

* *

* For more information, see the Amazon * Machine Learning Developer Guide. * @see MLModelType */ public String getMLModelType() { return this.mLModelType; } /** *

* The category of supervised learning that this MLModel will address. Choose from the following types: *

* *

* For more information, see the Amazon Machine * Learning Developer Guide. *

* * @param mLModelType * The category of supervised learning that this MLModel will address. Choose from the following * types:

* *

* For more information, see the Amazon * Machine Learning Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see MLModelType */ public CreateMLModelRequest withMLModelType(String mLModelType) { setMLModelType(mLModelType); return this; } /** *

* The category of supervised learning that this MLModel will address. Choose from the following types: *

* *

* For more information, see the Amazon Machine * Learning Developer Guide. *

* * @param mLModelType * The category of supervised learning that this MLModel will address. Choose from the following * types:

* *

* For more information, see the Amazon * Machine Learning Developer Guide. * @see MLModelType */ public void setMLModelType(MLModelType mLModelType) { withMLModelType(mLModelType); } /** *

* The category of supervised learning that this MLModel will address. Choose from the following types: *

* *

* For more information, see the Amazon Machine * Learning Developer Guide. *

* * @param mLModelType * The category of supervised learning that this MLModel will address. Choose from the following * types:

* *

* For more information, see the Amazon * Machine Learning Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see MLModelType */ public CreateMLModelRequest withMLModelType(MLModelType mLModelType) { this.mLModelType = mLModelType.toString(); return this; } /** *

* A list of the training parameters in the MLModel. The list is implemented as a map of key-value * pairs. *

*

* The following is the current set of training parameters: *

* * * @return A list of the training parameters in the MLModel. The list is implemented as a map of * key-value pairs.

*

* The following is the current set of training parameters: *

*