/* * 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 hosted endpoint for real-time inference. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Endpoint implements Serializable, Cloneable, StructuredPojo { /** ** The name of the endpoint. *
*/ private String endpointName; /** ** The Amazon Resource Name (ARN) of the endpoint. *
*/ private String endpointArn; /** ** The endpoint configuration associated with the endpoint. *
*/ private String endpointConfigName; /** ** A list of the production variants hosted on the endpoint. Each production variant is a model. *
*/ private java.util.List* The status of the endpoint. *
*/ private String endpointStatus; /** ** If the endpoint failed, the reason it failed. *
*/ private String failureReason; /** ** The time that the endpoint was created. *
*/ private java.util.Date creationTime; /** ** The last time the endpoint was modified. *
*/ private java.util.Date lastModifiedTime; /** ** A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model Monitor. *
*/ private java.util.List* A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
*/ private java.util.List* A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. *
*/ private java.util.List* The name of the endpoint. *
* * @param endpointName * The name of the endpoint. */ public void setEndpointName(String endpointName) { this.endpointName = endpointName; } /** ** The name of the endpoint. *
* * @return The name of the endpoint. */ public String getEndpointName() { return this.endpointName; } /** ** The name of the endpoint. *
* * @param endpointName * The name of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withEndpointName(String endpointName) { setEndpointName(endpointName); return this; } /** ** The Amazon Resource Name (ARN) of the endpoint. *
* * @param endpointArn * The Amazon Resource Name (ARN) of the endpoint. */ public void setEndpointArn(String endpointArn) { this.endpointArn = endpointArn; } /** ** The Amazon Resource Name (ARN) of the endpoint. *
* * @return The Amazon Resource Name (ARN) of the endpoint. */ public String getEndpointArn() { return this.endpointArn; } /** ** The Amazon Resource Name (ARN) of the endpoint. *
* * @param endpointArn * The Amazon Resource Name (ARN) of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withEndpointArn(String endpointArn) { setEndpointArn(endpointArn); return this; } /** ** The endpoint configuration associated with the endpoint. *
* * @param endpointConfigName * The endpoint configuration associated with the endpoint. */ public void setEndpointConfigName(String endpointConfigName) { this.endpointConfigName = endpointConfigName; } /** ** The endpoint configuration associated with the endpoint. *
* * @return The endpoint configuration associated with the endpoint. */ public String getEndpointConfigName() { return this.endpointConfigName; } /** ** The endpoint configuration associated with the endpoint. *
* * @param endpointConfigName * The endpoint configuration associated with the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withEndpointConfigName(String endpointConfigName) { setEndpointConfigName(endpointConfigName); return this; } /** ** A list of the production variants hosted on the endpoint. Each production variant is a model. *
* * @return A list of the production variants hosted on the endpoint. Each production variant is a model. */ public java.util.List* A list of the production variants hosted on the endpoint. Each production variant is a model. *
* * @param productionVariants * A list of the production variants hosted on the endpoint. Each production variant is a model. */ public void setProductionVariants(java.util.Collection* A list of the production variants hosted on the endpoint. Each production variant is a model. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setProductionVariants(java.util.Collection)} or {@link #withProductionVariants(java.util.Collection)} if * you want to override the existing values. *
* * @param productionVariants * A list of the production variants hosted on the endpoint. Each production variant is a model. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withProductionVariants(ProductionVariantSummary... productionVariants) { if (this.productionVariants == null) { setProductionVariants(new java.util.ArrayList* A list of the production variants hosted on the endpoint. Each production variant is a model. *
* * @param productionVariants * A list of the production variants hosted on the endpoint. Each production variant is a model. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withProductionVariants(java.util.Collection* The status of the endpoint. *
* * @param endpointStatus * The status of the endpoint. * @see EndpointStatus */ public void setEndpointStatus(String endpointStatus) { this.endpointStatus = endpointStatus; } /** ** The status of the endpoint. *
* * @return The status of the endpoint. * @see EndpointStatus */ public String getEndpointStatus() { return this.endpointStatus; } /** ** The status of the endpoint. *
* * @param endpointStatus * The status of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointStatus */ public Endpoint withEndpointStatus(String endpointStatus) { setEndpointStatus(endpointStatus); return this; } /** ** The status of the endpoint. *
* * @param endpointStatus * The status of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. * @see EndpointStatus */ public Endpoint withEndpointStatus(EndpointStatus endpointStatus) { this.endpointStatus = endpointStatus.toString(); return this; } /** ** If the endpoint failed, the reason it failed. *
* * @param failureReason * If the endpoint failed, the reason it failed. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** ** If the endpoint failed, the reason it failed. *
* * @return If the endpoint failed, the reason it failed. */ public String getFailureReason() { return this.failureReason; } /** ** If the endpoint failed, the reason it failed. *
* * @param failureReason * If the endpoint failed, the reason it failed. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** ** The time that the endpoint was created. *
* * @param creationTime * The time that the endpoint was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time that the endpoint was created. *
* * @return The time that the endpoint was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time that the endpoint was created. *
* * @param creationTime * The time that the endpoint was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The last time the endpoint was modified. *
* * @param lastModifiedTime * The last time the endpoint was modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The last time the endpoint was modified. *
* * @return The last time the endpoint was modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The last time the endpoint was modified. *
* * @param lastModifiedTime * The last time the endpoint was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** ** A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model Monitor. *
* * @return A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model * Monitor. */ public java.util.List* A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model Monitor. *
* * @param monitoringSchedules * A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model * Monitor. */ public void setMonitoringSchedules(java.util.Collection* A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model Monitor. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMonitoringSchedules(java.util.Collection)} or {@link #withMonitoringSchedules(java.util.Collection)} * if you want to override the existing values. *
* * @param monitoringSchedules * A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model * Monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withMonitoringSchedules(MonitoringSchedule... monitoringSchedules) { if (this.monitoringSchedules == null) { setMonitoringSchedules(new java.util.ArrayList* A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model Monitor. *
* * @param monitoringSchedules * A list of monitoring schedules for the endpoint. For information about model monitoring, see Amazon SageMaker Model * Monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withMonitoringSchedules(java.util.Collection* A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @return A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. */ public java.util.List* A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @param tags * A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. */ public void setTags(java.util.Collection* A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services resources * in the Amazon Web Services General Reference Guide. *
* * @param tags * A list of the tags associated with the endpoint. For more information, see Tagging Amazon Web Services * resources in the Amazon Web Services General Reference Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withTags(java.util.Collection* A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. *
* * @return A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. */ public java.util.List* A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. *
* * @param shadowProductionVariants * A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. */ public void setShadowProductionVariants(java.util.Collection* A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setShadowProductionVariants(java.util.Collection)} or * {@link #withShadowProductionVariants(java.util.Collection)} if you want to override the existing values. *
* * @param shadowProductionVariants * A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withShadowProductionVariants(ProductionVariantSummary... shadowProductionVariants) { if (this.shadowProductionVariants == null) { setShadowProductionVariants(new java.util.ArrayList* A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. *
* * @param shadowProductionVariants * A list of the shadow variants hosted on the endpoint. Each shadow variant is a model in shadow mode with * production traffic replicated from the production variant. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withShadowProductionVariants(java.util.Collection