@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Solution extends Object implements Serializable, Cloneable, StructuredPojo
After you create a solution, you can’t change its configuration. By default, all new solutions use automatic training. With automatic training, you incur training costs while your solution is active. You can't stop automatic training for a solution. To avoid unnecessary costs, make sure to delete the solution when you are finished. For information about training costs, see Amazon Personalize pricing.
An object that provides information about a solution. A solution includes the custom recipe, customized parameters, and trained models (Solution Versions) that Amazon Personalize uses to generate recommendations.
After you create a solution, you can’t change its configuration. If you need to make changes, you can clone the solution with the Amazon Personalize console or create a new one.
Constructor and Description |
---|
Solution() |
Modifier and Type | Method and Description |
---|---|
Solution |
clone() |
boolean |
equals(Object obj) |
AutoMLResult |
getAutoMLResult()
When
performAutoML is true, specifies the best recipe found. |
Date |
getCreationDateTime()
The creation date and time (in Unix time) of the solution.
|
String |
getDatasetGroupArn()
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
|
String |
getEventType()
The event type (for example, 'click' or 'like') that is used for training the model.
|
Date |
getLastUpdatedDateTime()
The date and time (in Unix time) that the solution was last updated.
|
SolutionVersionSummary |
getLatestSolutionVersion()
Describes the latest version of the solution, including the status and the ARN.
|
String |
getName()
The name of the solution.
|
Boolean |
getPerformAutoML()
|
Boolean |
getPerformAutoTraining()
Specifies whether the solution automatically creates solution versions.
|
Boolean |
getPerformHPO()
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
|
String |
getRecipeArn()
The ARN of the recipe used to create the solution.
|
String |
getSolutionArn()
The ARN of the solution.
|
SolutionConfig |
getSolutionConfig()
Describes the configuration properties for the solution.
|
String |
getStatus()
The status of the solution.
|
int |
hashCode() |
Boolean |
isPerformAutoML()
|
Boolean |
isPerformAutoTraining()
Specifies whether the solution automatically creates solution versions.
|
Boolean |
isPerformHPO()
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutoMLResult(AutoMLResult autoMLResult)
When
performAutoML is true, specifies the best recipe found. |
void |
setCreationDateTime(Date creationDateTime)
The creation date and time (in Unix time) of the solution.
|
void |
setDatasetGroupArn(String datasetGroupArn)
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
|
void |
setEventType(String eventType)
The event type (for example, 'click' or 'like') that is used for training the model.
|
void |
setLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix time) that the solution was last updated.
|
void |
setLatestSolutionVersion(SolutionVersionSummary latestSolutionVersion)
Describes the latest version of the solution, including the status and the ARN.
|
void |
setName(String name)
The name of the solution.
|
void |
setPerformAutoML(Boolean performAutoML)
|
void |
setPerformAutoTraining(Boolean performAutoTraining)
Specifies whether the solution automatically creates solution versions.
|
void |
setPerformHPO(Boolean performHPO)
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
|
void |
setRecipeArn(String recipeArn)
The ARN of the recipe used to create the solution.
|
void |
setSolutionArn(String solutionArn)
The ARN of the solution.
|
void |
setSolutionConfig(SolutionConfig solutionConfig)
Describes the configuration properties for the solution.
|
void |
setStatus(String status)
The status of the solution.
|
String |
toString()
Returns a string representation of this object.
|
Solution |
withAutoMLResult(AutoMLResult autoMLResult)
When
performAutoML is true, specifies the best recipe found. |
Solution |
withCreationDateTime(Date creationDateTime)
The creation date and time (in Unix time) of the solution.
|
Solution |
withDatasetGroupArn(String datasetGroupArn)
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
|
Solution |
withEventType(String eventType)
The event type (for example, 'click' or 'like') that is used for training the model.
|
Solution |
withLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix time) that the solution was last updated.
|
Solution |
withLatestSolutionVersion(SolutionVersionSummary latestSolutionVersion)
Describes the latest version of the solution, including the status and the ARN.
|
Solution |
withName(String name)
The name of the solution.
|
Solution |
withPerformAutoML(Boolean performAutoML)
|
Solution |
withPerformAutoTraining(Boolean performAutoTraining)
Specifies whether the solution automatically creates solution versions.
|
Solution |
withPerformHPO(Boolean performHPO)
Whether to perform hyperparameter optimization (HPO) on the chosen recipe.
|
Solution |
withRecipeArn(String recipeArn)
The ARN of the recipe used to create the solution.
|
Solution |
withSolutionArn(String solutionArn)
The ARN of the solution.
|
Solution |
withSolutionConfig(SolutionConfig solutionConfig)
Describes the configuration properties for the solution.
|
Solution |
withStatus(String status)
The status of the solution.
|
public void setName(String name)
The name of the solution.
name
- The name of the solution.public String getName()
The name of the solution.
public Solution withName(String name)
The name of the solution.
name
- The name of the solution.public void setSolutionArn(String solutionArn)
The ARN of the solution.
solutionArn
- The ARN of the solution.public String getSolutionArn()
The ARN of the solution.
public Solution withSolutionArn(String solutionArn)
The ARN of the solution.
solutionArn
- The ARN of the solution.public void setPerformHPO(Boolean performHPO)
Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is false
.
performHPO
- Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is
false
.public Boolean getPerformHPO()
Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is false
.
false
.public Solution withPerformHPO(Boolean performHPO)
Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is false
.
performHPO
- Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is
false
.public Boolean isPerformHPO()
Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is false
.
false
.public void setPerformAutoML(Boolean performAutoML)
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified
in the solution configuration (recipeArn
must not be specified). When false (the default), Amazon
Personalize uses recipeArn
for training.
performAutoML
- We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list
specified in the solution configuration (recipeArn
must not be specified). When false (the
default), Amazon Personalize uses recipeArn
for training.
public Boolean getPerformAutoML()
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified
in the solution configuration (recipeArn
must not be specified). When false (the default), Amazon
Personalize uses recipeArn
for training.
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list
specified in the solution configuration (recipeArn
must not be specified). When false (the
default), Amazon Personalize uses recipeArn
for training.
public Solution withPerformAutoML(Boolean performAutoML)
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified
in the solution configuration (recipeArn
must not be specified). When false (the default), Amazon
Personalize uses recipeArn
for training.
performAutoML
- We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list
specified in the solution configuration (recipeArn
must not be specified). When false (the
default), Amazon Personalize uses recipeArn
for training.
public Boolean isPerformAutoML()
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified
in the solution configuration (recipeArn
must not be specified). When false (the default), Amazon
Personalize uses recipeArn
for training.
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list
specified in the solution configuration (recipeArn
must not be specified). When false (the
default), Amazon Personalize uses recipeArn
for training.
public void setPerformAutoTraining(Boolean performAutoTraining)
Specifies whether the solution automatically creates solution versions. The default is True
and the
solution automatically creates new solution versions every 7 days.
For more information about auto training, see Creating and configuring a solution.
performAutoTraining
- Specifies whether the solution automatically creates solution versions. The default is True
and the solution automatically creates new solution versions every 7 days.
For more information about auto training, see Creating and configuring a solution.
public Boolean getPerformAutoTraining()
Specifies whether the solution automatically creates solution versions. The default is True
and the
solution automatically creates new solution versions every 7 days.
For more information about auto training, see Creating and configuring a solution.
True
and the solution automatically creates new solution versions every 7 days.
For more information about auto training, see Creating and configuring a solution.
public Solution withPerformAutoTraining(Boolean performAutoTraining)
Specifies whether the solution automatically creates solution versions. The default is True
and the
solution automatically creates new solution versions every 7 days.
For more information about auto training, see Creating and configuring a solution.
performAutoTraining
- Specifies whether the solution automatically creates solution versions. The default is True
and the solution automatically creates new solution versions every 7 days.
For more information about auto training, see Creating and configuring a solution.
public Boolean isPerformAutoTraining()
Specifies whether the solution automatically creates solution versions. The default is True
and the
solution automatically creates new solution versions every 7 days.
For more information about auto training, see Creating and configuring a solution.
True
and the solution automatically creates new solution versions every 7 days.
For more information about auto training, see Creating and configuring a solution.
public void setRecipeArn(String recipeArn)
The ARN of the recipe used to create the solution. This is required when performAutoML
is false.
recipeArn
- The ARN of the recipe used to create the solution. This is required when performAutoML
is
false.public String getRecipeArn()
The ARN of the recipe used to create the solution. This is required when performAutoML
is false.
performAutoML
is
false.public Solution withRecipeArn(String recipeArn)
The ARN of the recipe used to create the solution. This is required when performAutoML
is false.
recipeArn
- The ARN of the recipe used to create the solution. This is required when performAutoML
is
false.public void setDatasetGroupArn(String datasetGroupArn)
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
datasetGroupArn
- The Amazon Resource Name (ARN) of the dataset group that provides the training data.public String getDatasetGroupArn()
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
public Solution withDatasetGroupArn(String datasetGroupArn)
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
datasetGroupArn
- The Amazon Resource Name (ARN) of the dataset group that provides the training data.public void setEventType(String eventType)
The event type (for example, 'click' or 'like') that is used for training the model. If no eventType
is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.
eventType
- The event type (for example, 'click' or 'like') that is used for training the model. If no
eventType
is provided, Amazon Personalize uses all interactions for training with equal
weight regardless of type.public String getEventType()
The event type (for example, 'click' or 'like') that is used for training the model. If no eventType
is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.
eventType
is provided, Amazon Personalize uses all interactions for training with equal
weight regardless of type.public Solution withEventType(String eventType)
The event type (for example, 'click' or 'like') that is used for training the model. If no eventType
is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.
eventType
- The event type (for example, 'click' or 'like') that is used for training the model. If no
eventType
is provided, Amazon Personalize uses all interactions for training with equal
weight regardless of type.public void setSolutionConfig(SolutionConfig solutionConfig)
Describes the configuration properties for the solution.
solutionConfig
- Describes the configuration properties for the solution.public SolutionConfig getSolutionConfig()
Describes the configuration properties for the solution.
public Solution withSolutionConfig(SolutionConfig solutionConfig)
Describes the configuration properties for the solution.
solutionConfig
- Describes the configuration properties for the solution.public void setAutoMLResult(AutoMLResult autoMLResult)
When performAutoML
is true, specifies the best recipe found.
autoMLResult
- When performAutoML
is true, specifies the best recipe found.public AutoMLResult getAutoMLResult()
When performAutoML
is true, specifies the best recipe found.
performAutoML
is true, specifies the best recipe found.public Solution withAutoMLResult(AutoMLResult autoMLResult)
When performAutoML
is true, specifies the best recipe found.
autoMLResult
- When performAutoML
is true, specifies the best recipe found.public void setStatus(String status)
The status of the solution.
A solution can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
status
- The status of the solution.
A solution can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
public String getStatus()
The status of the solution.
A solution can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
A solution can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
public Solution withStatus(String status)
The status of the solution.
A solution can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
status
- The status of the solution.
A solution can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
public void setCreationDateTime(Date creationDateTime)
The creation date and time (in Unix time) of the solution.
creationDateTime
- The creation date and time (in Unix time) of the solution.public Date getCreationDateTime()
The creation date and time (in Unix time) of the solution.
public Solution withCreationDateTime(Date creationDateTime)
The creation date and time (in Unix time) of the solution.
creationDateTime
- The creation date and time (in Unix time) of the solution.public void setLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix time) that the solution was last updated.
lastUpdatedDateTime
- The date and time (in Unix time) that the solution was last updated.public Date getLastUpdatedDateTime()
The date and time (in Unix time) that the solution was last updated.
public Solution withLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix time) that the solution was last updated.
lastUpdatedDateTime
- The date and time (in Unix time) that the solution was last updated.public void setLatestSolutionVersion(SolutionVersionSummary latestSolutionVersion)
Describes the latest version of the solution, including the status and the ARN.
latestSolutionVersion
- Describes the latest version of the solution, including the status and the ARN.public SolutionVersionSummary getLatestSolutionVersion()
Describes the latest version of the solution, including the status and the ARN.
public Solution withLatestSolutionVersion(SolutionVersionSummary latestSolutionVersion)
Describes the latest version of the solution, including the status and the ARN.
latestSolutionVersion
- Describes the latest version of the solution, including the status and the ARN.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.