/* * 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.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A set of recommended deployment configurations for the model. To get more advanced recommendations, see CreateInferenceRecommendationsJob to create an inference recommendation job. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeploymentRecommendation implements Serializable, Cloneable, StructuredPojo { /** *
* Status of the deployment recommendation. The status NOT_APPLICABLE
means that SageMaker is unable to
* provide a default recommendation for the model using the information provided. If the deployment status is
* IN_PROGRESS
, retry your API call after a few seconds to get a COMPLETED
deployment
* recommendation.
*
* A list of RealTimeInferenceRecommendation items. *
*/ private java.util.List
* Status of the deployment recommendation. The status NOT_APPLICABLE
means that SageMaker is unable to
* provide a default recommendation for the model using the information provided. If the deployment status is
* IN_PROGRESS
, retry your API call after a few seconds to get a COMPLETED
deployment
* recommendation.
*
NOT_APPLICABLE
means that SageMaker is
* unable to provide a default recommendation for the model using the information provided. If the deployment
* status is IN_PROGRESS
, retry your API call after a few seconds to get a
* COMPLETED
deployment recommendation.
* @see RecommendationStatus
*/
public void setRecommendationStatus(String recommendationStatus) {
this.recommendationStatus = recommendationStatus;
}
/**
*
* Status of the deployment recommendation. The status NOT_APPLICABLE
means that SageMaker is unable to
* provide a default recommendation for the model using the information provided. If the deployment status is
* IN_PROGRESS
, retry your API call after a few seconds to get a COMPLETED
deployment
* recommendation.
*
NOT_APPLICABLE
means that SageMaker is
* unable to provide a default recommendation for the model using the information provided. If the
* deployment status is IN_PROGRESS
, retry your API call after a few seconds to get a
* COMPLETED
deployment recommendation.
* @see RecommendationStatus
*/
public String getRecommendationStatus() {
return this.recommendationStatus;
}
/**
*
* Status of the deployment recommendation. The status NOT_APPLICABLE
means that SageMaker is unable to
* provide a default recommendation for the model using the information provided. If the deployment status is
* IN_PROGRESS
, retry your API call after a few seconds to get a COMPLETED
deployment
* recommendation.
*
NOT_APPLICABLE
means that SageMaker is
* unable to provide a default recommendation for the model using the information provided. If the deployment
* status is IN_PROGRESS
, retry your API call after a few seconds to get a
* COMPLETED
deployment recommendation.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RecommendationStatus
*/
public DeploymentRecommendation withRecommendationStatus(String recommendationStatus) {
setRecommendationStatus(recommendationStatus);
return this;
}
/**
*
* Status of the deployment recommendation. The status NOT_APPLICABLE
means that SageMaker is unable to
* provide a default recommendation for the model using the information provided. If the deployment status is
* IN_PROGRESS
, retry your API call after a few seconds to get a COMPLETED
deployment
* recommendation.
*
NOT_APPLICABLE
means that SageMaker is
* unable to provide a default recommendation for the model using the information provided. If the deployment
* status is IN_PROGRESS
, retry your API call after a few seconds to get a
* COMPLETED
deployment recommendation.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RecommendationStatus
*/
public DeploymentRecommendation withRecommendationStatus(RecommendationStatus recommendationStatus) {
this.recommendationStatus = recommendationStatus.toString();
return this;
}
/**
* * A list of RealTimeInferenceRecommendation items. *
* * @return A list of RealTimeInferenceRecommendation items. */ public java.util.List* A list of RealTimeInferenceRecommendation items. *
* * @param realTimeInferenceRecommendations * A list of RealTimeInferenceRecommendation items. */ public void setRealTimeInferenceRecommendations(java.util.Collection* A list of RealTimeInferenceRecommendation items. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRealTimeInferenceRecommendations(java.util.Collection)} or * {@link #withRealTimeInferenceRecommendations(java.util.Collection)} if you want to override the existing values. *
* * @param realTimeInferenceRecommendations * A list of RealTimeInferenceRecommendation items. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentRecommendation withRealTimeInferenceRecommendations(RealTimeInferenceRecommendation... realTimeInferenceRecommendations) { if (this.realTimeInferenceRecommendations == null) { setRealTimeInferenceRecommendations(new java.util.ArrayList* A list of RealTimeInferenceRecommendation items. *
* * @param realTimeInferenceRecommendations * A list of RealTimeInferenceRecommendation items. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentRecommendation withRealTimeInferenceRecommendations(java.util.Collection