/* * 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.personalize.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Provides information about a recipe. Each recipe provides an algorithm that Amazon Personalize uses in model training * when you use the CreateSolution operation. *

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

* The name of the recipe. *

*/ private String name; /** *

* The Amazon Resource Name (ARN) of the recipe. *

*/ private String recipeArn; /** *

* The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses to train the model. *

*/ private String algorithmArn; /** *

* The ARN of the FeatureTransformation object. *

*/ private String featureTransformationArn; /** *

* The status of the recipe. *

*/ private String status; /** *

* The description of the recipe. *

*/ private String description; /** *

* The date and time (in Unix format) that the recipe was created. *

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

* One of the following values: *

* */ private String recipeType; /** *

* The date and time (in Unix format) that the recipe was last updated. *

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

* The name of the recipe. *

* * @param name * The name of the recipe. */ public void setName(String name) { this.name = name; } /** *

* The name of the recipe. *

* * @return The name of the recipe. */ public String getName() { return this.name; } /** *

* The name of the recipe. *

* * @param name * The name of the recipe. * @return Returns a reference to this object so that method calls can be chained together. */ public Recipe withName(String name) { setName(name); return this; } /** *

* The Amazon Resource Name (ARN) of the recipe. *

* * @param recipeArn * The Amazon Resource Name (ARN) of the recipe. */ public void setRecipeArn(String recipeArn) { this.recipeArn = recipeArn; } /** *

* The Amazon Resource Name (ARN) of the recipe. *

* * @return The Amazon Resource Name (ARN) of the recipe. */ public String getRecipeArn() { return this.recipeArn; } /** *

* The Amazon Resource Name (ARN) of the recipe. *

* * @param recipeArn * The Amazon Resource Name (ARN) of the recipe. * @return Returns a reference to this object so that method calls can be chained together. */ public Recipe withRecipeArn(String recipeArn) { setRecipeArn(recipeArn); return this; } /** *

* The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses to train the model. *

* * @param algorithmArn * The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses to train the model. */ public void setAlgorithmArn(String algorithmArn) { this.algorithmArn = algorithmArn; } /** *

* The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses to train the model. *

* * @return The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses to train the model. */ public String getAlgorithmArn() { return this.algorithmArn; } /** *

* The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses to train the model. *

* * @param algorithmArn * The Amazon Resource Name (ARN) of the algorithm that Amazon Personalize uses to train the model. * @return Returns a reference to this object so that method calls can be chained together. */ public Recipe withAlgorithmArn(String algorithmArn) { setAlgorithmArn(algorithmArn); return this; } /** *

* The ARN of the FeatureTransformation object. *

* * @param featureTransformationArn * The ARN of the FeatureTransformation object. */ public void setFeatureTransformationArn(String featureTransformationArn) { this.featureTransformationArn = featureTransformationArn; } /** *

* The ARN of the FeatureTransformation object. *

* * @return The ARN of the FeatureTransformation object. */ public String getFeatureTransformationArn() { return this.featureTransformationArn; } /** *

* The ARN of the FeatureTransformation object. *

* * @param featureTransformationArn * The ARN of the FeatureTransformation object. * @return Returns a reference to this object so that method calls can be chained together. */ public Recipe withFeatureTransformationArn(String featureTransformationArn) { setFeatureTransformationArn(featureTransformationArn); return this; } /** *

* The status of the recipe. *

* * @param status * The status of the recipe. */ public void setStatus(String status) { this.status = status; } /** *

* The status of the recipe. *

* * @return The status of the recipe. */ public String getStatus() { return this.status; } /** *

* The status of the recipe. *

* * @param status * The status of the recipe. * @return Returns a reference to this object so that method calls can be chained together. */ public Recipe withStatus(String status) { setStatus(status); return this; } /** *

* The description of the recipe. *

* * @param description * The description of the recipe. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the recipe. *

* * @return The description of the recipe. */ public String getDescription() { return this.description; } /** *

* The description of the recipe. *

* * @param description * The description of the recipe. * @return Returns a reference to this object so that method calls can be chained together. */ public Recipe withDescription(String description) { setDescription(description); return this; } /** *

* The date and time (in Unix format) that the recipe was created. *

* * @param creationDateTime * The date and time (in Unix format) that the recipe was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** *

* The date and time (in Unix format) that the recipe was created. *

* * @return The date and time (in Unix format) that the recipe was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** *

* The date and time (in Unix format) that the recipe was created. *

* * @param creationDateTime * The date and time (in Unix format) that the recipe was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Recipe withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** *

* One of the following values: *

* * * @param recipeType * One of the following values:

*