
com.amazonaws.services.sagemaker.model.DescribeEndpointResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker Show documentation
/*
* Copyright 2019-2024 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeEndpointResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Name of the endpoint.
*
*/
private String endpointName;
/**
*
* The Amazon Resource Name (ARN) of the endpoint.
*
*/
private String endpointArn;
/**
*
* The name of the endpoint configuration associated with this endpoint.
*
*/
private String endpointConfigName;
/**
*
* An array of
* ProductionVariantSummary objects, one for each model hosted behind this endpoint.
*
*/
private java.util.List productionVariants;
private DataCaptureConfigSummary dataCaptureConfig;
/**
*
* The status of the endpoint.
*
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is
* executing.
*
*
* -
*
* Updating
: UpdateEndpoint or
* UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or re-scaled
* until it has completed. This maintenance operation does not change any customer-specified values such as VPC
* config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the process
* of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an
* InService
status. This transitional status only applies to an endpoint that has autoscaling enabled
* and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is
* executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the FailureReason
* value returned by DescribeEndpoint
* for information about the failure. DeleteEndpoint is
* the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is in
* service with a mix of the old and new endpoint configurations. For information about how to remedy this issue and
* restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
*
*/
private String endpointStatus;
/**
*
* If the status of the endpoint is Failed
, the reason why it failed.
*
*/
private String failureReason;
/**
*
* A timestamp that shows when the endpoint was created.
*
*/
private java.util.Date creationTime;
/**
*
* A timestamp that shows when the endpoint was last modified.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* The most recent deployment configuration for the endpoint.
*
*/
private DeploymentConfig lastDeploymentConfig;
/**
*
* Returns the description of an endpoint configuration created using the
* CreateEndpointConfig
API.
*
*/
private AsyncInferenceConfig asyncInferenceConfig;
/**
*
* Returns the summary of an in-progress deployment. This field is only returned when the endpoint is creating or
* updating with a new endpoint configuration.
*
*/
private PendingDeploymentSummary pendingDeploymentSummary;
/**
*
* The configuration parameters for an explainer.
*
*/
private ExplainerConfig explainerConfig;
/**
*
* An array of
* ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow mode
* with production traffic replicated from the model specified on ProductionVariants
.
*
*/
private java.util.List shadowProductionVariants;
/**
*
* Name of the endpoint.
*
*
* @param endpointName
* Name of the endpoint.
*/
public void setEndpointName(String endpointName) {
this.endpointName = endpointName;
}
/**
*
* Name of the endpoint.
*
*
* @return Name of the endpoint.
*/
public String getEndpointName() {
return this.endpointName;
}
/**
*
* Name of the endpoint.
*
*
* @param endpointName
* Name of the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult 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 DescribeEndpointResult withEndpointArn(String endpointArn) {
setEndpointArn(endpointArn);
return this;
}
/**
*
* The name of the endpoint configuration associated with this endpoint.
*
*
* @param endpointConfigName
* The name of the endpoint configuration associated with this endpoint.
*/
public void setEndpointConfigName(String endpointConfigName) {
this.endpointConfigName = endpointConfigName;
}
/**
*
* The name of the endpoint configuration associated with this endpoint.
*
*
* @return The name of the endpoint configuration associated with this endpoint.
*/
public String getEndpointConfigName() {
return this.endpointConfigName;
}
/**
*
* The name of the endpoint configuration associated with this endpoint.
*
*
* @param endpointConfigName
* The name of the endpoint configuration associated with this endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withEndpointConfigName(String endpointConfigName) {
setEndpointConfigName(endpointConfigName);
return this;
}
/**
*
* An array of
* ProductionVariantSummary objects, one for each model hosted behind this endpoint.
*
*
* @return An array of ProductionVariantSummary objects, one for each model hosted behind this endpoint.
*/
public java.util.List getProductionVariants() {
return productionVariants;
}
/**
*
* An array of
* ProductionVariantSummary objects, one for each model hosted behind this endpoint.
*
*
* @param productionVariants
* An array of ProductionVariantSummary objects, one for each model hosted behind this endpoint.
*/
public void setProductionVariants(java.util.Collection productionVariants) {
if (productionVariants == null) {
this.productionVariants = null;
return;
}
this.productionVariants = new java.util.ArrayList(productionVariants);
}
/**
*
* An array of
* ProductionVariantSummary objects, one for each model hosted behind this endpoint.
*
*
* 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
* An array of ProductionVariantSummary objects, one for each model hosted behind this endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withProductionVariants(ProductionVariantSummary... productionVariants) {
if (this.productionVariants == null) {
setProductionVariants(new java.util.ArrayList(productionVariants.length));
}
for (ProductionVariantSummary ele : productionVariants) {
this.productionVariants.add(ele);
}
return this;
}
/**
*
* An array of
* ProductionVariantSummary objects, one for each model hosted behind this endpoint.
*
*
* @param productionVariants
* An array of ProductionVariantSummary objects, one for each model hosted behind this endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withProductionVariants(java.util.Collection productionVariants) {
setProductionVariants(productionVariants);
return this;
}
/**
* @param dataCaptureConfig
*/
public void setDataCaptureConfig(DataCaptureConfigSummary dataCaptureConfig) {
this.dataCaptureConfig = dataCaptureConfig;
}
/**
* @return
*/
public DataCaptureConfigSummary getDataCaptureConfig() {
return this.dataCaptureConfig;
}
/**
* @param dataCaptureConfig
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withDataCaptureConfig(DataCaptureConfigSummary dataCaptureConfig) {
setDataCaptureConfig(dataCaptureConfig);
return this;
}
/**
*
* The status of the endpoint.
*
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is
* executing.
*
*
* -
*
* Updating
: UpdateEndpoint or
* UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or re-scaled
* until it has completed. This maintenance operation does not change any customer-specified values such as VPC
* config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the process
* of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an
* InService
status. This transitional status only applies to an endpoint that has autoscaling enabled
* and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is
* executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the FailureReason
* value returned by DescribeEndpoint
* for information about the failure. DeleteEndpoint is
* the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is in
* service with a mix of the old and new endpoint configurations. For information about how to remedy this issue and
* restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
*
*
* @param endpointStatus
* The status of the endpoint.
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is executing.
*
*
* -
*
* Updating
: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or
* re-scaled until it has completed. This maintenance operation does not change any customer-specified values
* such as VPC config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the
* process of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an
* InService
status. This transitional status only applies to an endpoint that has autoscaling
* enabled and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the
* FailureReason
value returned by DescribeEndpoint for information about the failure. DeleteEndpoint is the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is
* in service with a mix of the old and new endpoint configurations. For information about how to remedy this
* issue and restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
* @see EndpointStatus
*/
public void setEndpointStatus(String endpointStatus) {
this.endpointStatus = endpointStatus;
}
/**
*
* The status of the endpoint.
*
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is
* executing.
*
*
* -
*
* Updating
: UpdateEndpoint or
* UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or re-scaled
* until it has completed. This maintenance operation does not change any customer-specified values such as VPC
* config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the process
* of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an
* InService
status. This transitional status only applies to an endpoint that has autoscaling enabled
* and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is
* executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the FailureReason
* value returned by DescribeEndpoint
* for information about the failure. DeleteEndpoint is
* the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is in
* service with a mix of the old and new endpoint configurations. For information about how to remedy this issue and
* restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
*
*
* @return The status of the endpoint.
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is executing.
*
*
* -
*
* Updating
: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or
* re-scaled until it has completed. This maintenance operation does not change any customer-specified
* values such as VPC config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the
* process of rolling back to its previous configuration. Once the rollback completes, endpoint returns to
* an InService
status. This transitional status only applies to an endpoint that has
* autoscaling enabled and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the
* FailureReason
value returned by DescribeEndpoint for information about the failure. DeleteEndpoint is the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is
* in service with a mix of the old and new endpoint configurations. For information about how to remedy
* this issue and restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
* @see EndpointStatus
*/
public String getEndpointStatus() {
return this.endpointStatus;
}
/**
*
* The status of the endpoint.
*
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is
* executing.
*
*
* -
*
* Updating
: UpdateEndpoint or
* UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or re-scaled
* until it has completed. This maintenance operation does not change any customer-specified values such as VPC
* config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the process
* of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an
* InService
status. This transitional status only applies to an endpoint that has autoscaling enabled
* and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is
* executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the FailureReason
* value returned by DescribeEndpoint
* for information about the failure. DeleteEndpoint is
* the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is in
* service with a mix of the old and new endpoint configurations. For information about how to remedy this issue and
* restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
*
*
* @param endpointStatus
* The status of the endpoint.
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is executing.
*
*
* -
*
* Updating
: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or
* re-scaled until it has completed. This maintenance operation does not change any customer-specified values
* such as VPC config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the
* process of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an
* InService
status. This transitional status only applies to an endpoint that has autoscaling
* enabled and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the
* FailureReason
value returned by DescribeEndpoint for information about the failure. DeleteEndpoint is the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is
* in service with a mix of the old and new endpoint configurations. For information about how to remedy this
* issue and restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see EndpointStatus
*/
public DescribeEndpointResult withEndpointStatus(String endpointStatus) {
setEndpointStatus(endpointStatus);
return this;
}
/**
*
* The status of the endpoint.
*
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is
* executing.
*
*
* -
*
* Updating
: UpdateEndpoint or
* UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or re-scaled
* until it has completed. This maintenance operation does not change any customer-specified values such as VPC
* config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the process
* of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an
* InService
status. This transitional status only applies to an endpoint that has autoscaling enabled
* and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is
* executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the FailureReason
* value returned by DescribeEndpoint
* for information about the failure. DeleteEndpoint is
* the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is in
* service with a mix of the old and new endpoint configurations. For information about how to remedy this issue and
* restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
*
*
* @param endpointStatus
* The status of the endpoint.
*
* -
*
* OutOfService
: Endpoint is not available to take incoming requests.
*
*
* -
*
* Creating
: CreateEndpoint is executing.
*
*
* -
*
* Updating
: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.
*
*
* -
*
* SystemUpdating
: Endpoint is undergoing maintenance and cannot be updated or deleted or
* re-scaled until it has completed. This maintenance operation does not change any customer-specified values
* such as VPC config, KMS encryption, model, instance type, or instance count.
*
*
* -
*
* RollingBack
: Endpoint fails to scale up or down or change its variant weight and is in the
* process of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an
* InService
status. This transitional status only applies to an endpoint that has autoscaling
* enabled and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.
*
*
* -
*
* InService
: Endpoint is available to process incoming requests.
*
*
* -
*
* Deleting
: DeleteEndpoint is executing.
*
*
* -
*
* Failed
: Endpoint could not be created, updated, or re-scaled. Use the
* FailureReason
value returned by DescribeEndpoint for information about the failure. DeleteEndpoint is the only operation that can be performed on a failed endpoint.
*
*
* -
*
* UpdateRollbackFailed
: Both the rolling deployment and auto-rollback failed. Your endpoint is
* in service with a mix of the old and new endpoint configurations. For information about how to remedy this
* issue and restore the endpoint's status to InService
, see Rolling
* Deployments.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see EndpointStatus
*/
public DescribeEndpointResult withEndpointStatus(EndpointStatus endpointStatus) {
this.endpointStatus = endpointStatus.toString();
return this;
}
/**
*
* If the status of the endpoint is Failed
, the reason why it failed.
*
*
* @param failureReason
* If the status of the endpoint is Failed
, the reason why it failed.
*/
public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
/**
*
* If the status of the endpoint is Failed
, the reason why it failed.
*
*
* @return If the status of the endpoint is Failed
, the reason why it failed.
*/
public String getFailureReason() {
return this.failureReason;
}
/**
*
* If the status of the endpoint is Failed
, the reason why it failed.
*
*
* @param failureReason
* If the status of the endpoint is Failed
, the reason why it failed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withFailureReason(String failureReason) {
setFailureReason(failureReason);
return this;
}
/**
*
* A timestamp that shows when the endpoint was created.
*
*
* @param creationTime
* A timestamp that shows when the endpoint was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* A timestamp that shows when the endpoint was created.
*
*
* @return A timestamp that shows when the endpoint was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* A timestamp that shows when the endpoint was created.
*
*
* @param creationTime
* A timestamp that shows when the endpoint was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* A timestamp that shows when the endpoint was last modified.
*
*
* @param lastModifiedTime
* A timestamp that shows when the endpoint was last modified.
*/
public void setLastModifiedTime(java.util.Date lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
/**
*
* A timestamp that shows when the endpoint was last modified.
*
*
* @return A timestamp that shows when the endpoint was last modified.
*/
public java.util.Date getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
*
* A timestamp that shows when the endpoint was last modified.
*
*
* @param lastModifiedTime
* A timestamp that shows when the endpoint was last modified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
return this;
}
/**
*
* The most recent deployment configuration for the endpoint.
*
*
* @param lastDeploymentConfig
* The most recent deployment configuration for the endpoint.
*/
public void setLastDeploymentConfig(DeploymentConfig lastDeploymentConfig) {
this.lastDeploymentConfig = lastDeploymentConfig;
}
/**
*
* The most recent deployment configuration for the endpoint.
*
*
* @return The most recent deployment configuration for the endpoint.
*/
public DeploymentConfig getLastDeploymentConfig() {
return this.lastDeploymentConfig;
}
/**
*
* The most recent deployment configuration for the endpoint.
*
*
* @param lastDeploymentConfig
* The most recent deployment configuration for the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withLastDeploymentConfig(DeploymentConfig lastDeploymentConfig) {
setLastDeploymentConfig(lastDeploymentConfig);
return this;
}
/**
*
* Returns the description of an endpoint configuration created using the
* CreateEndpointConfig
API.
*
*
* @param asyncInferenceConfig
* Returns the description of an endpoint configuration created using the
* CreateEndpointConfig
API.
*/
public void setAsyncInferenceConfig(AsyncInferenceConfig asyncInferenceConfig) {
this.asyncInferenceConfig = asyncInferenceConfig;
}
/**
*
* Returns the description of an endpoint configuration created using the
* CreateEndpointConfig
API.
*
*
* @return Returns the description of an endpoint configuration created using the
* CreateEndpointConfig
API.
*/
public AsyncInferenceConfig getAsyncInferenceConfig() {
return this.asyncInferenceConfig;
}
/**
*
* Returns the description of an endpoint configuration created using the
* CreateEndpointConfig
API.
*
*
* @param asyncInferenceConfig
* Returns the description of an endpoint configuration created using the
* CreateEndpointConfig
API.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withAsyncInferenceConfig(AsyncInferenceConfig asyncInferenceConfig) {
setAsyncInferenceConfig(asyncInferenceConfig);
return this;
}
/**
*
* Returns the summary of an in-progress deployment. This field is only returned when the endpoint is creating or
* updating with a new endpoint configuration.
*
*
* @param pendingDeploymentSummary
* Returns the summary of an in-progress deployment. This field is only returned when the endpoint is
* creating or updating with a new endpoint configuration.
*/
public void setPendingDeploymentSummary(PendingDeploymentSummary pendingDeploymentSummary) {
this.pendingDeploymentSummary = pendingDeploymentSummary;
}
/**
*
* Returns the summary of an in-progress deployment. This field is only returned when the endpoint is creating or
* updating with a new endpoint configuration.
*
*
* @return Returns the summary of an in-progress deployment. This field is only returned when the endpoint is
* creating or updating with a new endpoint configuration.
*/
public PendingDeploymentSummary getPendingDeploymentSummary() {
return this.pendingDeploymentSummary;
}
/**
*
* Returns the summary of an in-progress deployment. This field is only returned when the endpoint is creating or
* updating with a new endpoint configuration.
*
*
* @param pendingDeploymentSummary
* Returns the summary of an in-progress deployment. This field is only returned when the endpoint is
* creating or updating with a new endpoint configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withPendingDeploymentSummary(PendingDeploymentSummary pendingDeploymentSummary) {
setPendingDeploymentSummary(pendingDeploymentSummary);
return this;
}
/**
*
* The configuration parameters for an explainer.
*
*
* @param explainerConfig
* The configuration parameters for an explainer.
*/
public void setExplainerConfig(ExplainerConfig explainerConfig) {
this.explainerConfig = explainerConfig;
}
/**
*
* The configuration parameters for an explainer.
*
*
* @return The configuration parameters for an explainer.
*/
public ExplainerConfig getExplainerConfig() {
return this.explainerConfig;
}
/**
*
* The configuration parameters for an explainer.
*
*
* @param explainerConfig
* The configuration parameters for an explainer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withExplainerConfig(ExplainerConfig explainerConfig) {
setExplainerConfig(explainerConfig);
return this;
}
/**
*
* An array of
* ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow mode
* with production traffic replicated from the model specified on ProductionVariants
.
*
*
* @return An array of ProductionVariantSummary objects, one for each model that you want to host at this endpoint in
* shadow mode with production traffic replicated from the model specified on
* ProductionVariants
.
*/
public java.util.List getShadowProductionVariants() {
return shadowProductionVariants;
}
/**
*
* An array of
* ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow mode
* with production traffic replicated from the model specified on ProductionVariants
.
*
*
* @param shadowProductionVariants
* An array of ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow
* mode with production traffic replicated from the model specified on ProductionVariants
.
*/
public void setShadowProductionVariants(java.util.Collection shadowProductionVariants) {
if (shadowProductionVariants == null) {
this.shadowProductionVariants = null;
return;
}
this.shadowProductionVariants = new java.util.ArrayList(shadowProductionVariants);
}
/**
*
* An array of
* ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow mode
* with production traffic replicated from the model specified on ProductionVariants
.
*
*
* 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
* An array of ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow
* mode with production traffic replicated from the model specified on ProductionVariants
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withShadowProductionVariants(ProductionVariantSummary... shadowProductionVariants) {
if (this.shadowProductionVariants == null) {
setShadowProductionVariants(new java.util.ArrayList(shadowProductionVariants.length));
}
for (ProductionVariantSummary ele : shadowProductionVariants) {
this.shadowProductionVariants.add(ele);
}
return this;
}
/**
*
* An array of
* ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow mode
* with production traffic replicated from the model specified on ProductionVariants
.
*
*
* @param shadowProductionVariants
* An array of ProductionVariantSummary objects, one for each model that you want to host at this endpoint in shadow
* mode with production traffic replicated from the model specified on ProductionVariants
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeEndpointResult withShadowProductionVariants(java.util.Collection shadowProductionVariants) {
setShadowProductionVariants(shadowProductionVariants);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getEndpointName() != null)
sb.append("EndpointName: ").append(getEndpointName()).append(",");
if (getEndpointArn() != null)
sb.append("EndpointArn: ").append(getEndpointArn()).append(",");
if (getEndpointConfigName() != null)
sb.append("EndpointConfigName: ").append(getEndpointConfigName()).append(",");
if (getProductionVariants() != null)
sb.append("ProductionVariants: ").append(getProductionVariants()).append(",");
if (getDataCaptureConfig() != null)
sb.append("DataCaptureConfig: ").append(getDataCaptureConfig()).append(",");
if (getEndpointStatus() != null)
sb.append("EndpointStatus: ").append(getEndpointStatus()).append(",");
if (getFailureReason() != null)
sb.append("FailureReason: ").append(getFailureReason()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
if (getLastDeploymentConfig() != null)
sb.append("LastDeploymentConfig: ").append(getLastDeploymentConfig()).append(",");
if (getAsyncInferenceConfig() != null)
sb.append("AsyncInferenceConfig: ").append(getAsyncInferenceConfig()).append(",");
if (getPendingDeploymentSummary() != null)
sb.append("PendingDeploymentSummary: ").append(getPendingDeploymentSummary()).append(",");
if (getExplainerConfig() != null)
sb.append("ExplainerConfig: ").append(getExplainerConfig()).append(",");
if (getShadowProductionVariants() != null)
sb.append("ShadowProductionVariants: ").append(getShadowProductionVariants());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeEndpointResult == false)
return false;
DescribeEndpointResult other = (DescribeEndpointResult) obj;
if (other.getEndpointName() == null ^ this.getEndpointName() == null)
return false;
if (other.getEndpointName() != null && other.getEndpointName().equals(this.getEndpointName()) == false)
return false;
if (other.getEndpointArn() == null ^ this.getEndpointArn() == null)
return false;
if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == false)
return false;
if (other.getEndpointConfigName() == null ^ this.getEndpointConfigName() == null)
return false;
if (other.getEndpointConfigName() != null && other.getEndpointConfigName().equals(this.getEndpointConfigName()) == false)
return false;
if (other.getProductionVariants() == null ^ this.getProductionVariants() == null)
return false;
if (other.getProductionVariants() != null && other.getProductionVariants().equals(this.getProductionVariants()) == false)
return false;
if (other.getDataCaptureConfig() == null ^ this.getDataCaptureConfig() == null)
return false;
if (other.getDataCaptureConfig() != null && other.getDataCaptureConfig().equals(this.getDataCaptureConfig()) == false)
return false;
if (other.getEndpointStatus() == null ^ this.getEndpointStatus() == null)
return false;
if (other.getEndpointStatus() != null && other.getEndpointStatus().equals(this.getEndpointStatus()) == false)
return false;
if (other.getFailureReason() == null ^ this.getFailureReason() == null)
return false;
if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false)
return false;
if (other.getLastDeploymentConfig() == null ^ this.getLastDeploymentConfig() == null)
return false;
if (other.getLastDeploymentConfig() != null && other.getLastDeploymentConfig().equals(this.getLastDeploymentConfig()) == false)
return false;
if (other.getAsyncInferenceConfig() == null ^ this.getAsyncInferenceConfig() == null)
return false;
if (other.getAsyncInferenceConfig() != null && other.getAsyncInferenceConfig().equals(this.getAsyncInferenceConfig()) == false)
return false;
if (other.getPendingDeploymentSummary() == null ^ this.getPendingDeploymentSummary() == null)
return false;
if (other.getPendingDeploymentSummary() != null && other.getPendingDeploymentSummary().equals(this.getPendingDeploymentSummary()) == false)
return false;
if (other.getExplainerConfig() == null ^ this.getExplainerConfig() == null)
return false;
if (other.getExplainerConfig() != null && other.getExplainerConfig().equals(this.getExplainerConfig()) == false)
return false;
if (other.getShadowProductionVariants() == null ^ this.getShadowProductionVariants() == null)
return false;
if (other.getShadowProductionVariants() != null && other.getShadowProductionVariants().equals(this.getShadowProductionVariants()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEndpointName() == null) ? 0 : getEndpointName().hashCode());
hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode());
hashCode = prime * hashCode + ((getEndpointConfigName() == null) ? 0 : getEndpointConfigName().hashCode());
hashCode = prime * hashCode + ((getProductionVariants() == null) ? 0 : getProductionVariants().hashCode());
hashCode = prime * hashCode + ((getDataCaptureConfig() == null) ? 0 : getDataCaptureConfig().hashCode());
hashCode = prime * hashCode + ((getEndpointStatus() == null) ? 0 : getEndpointStatus().hashCode());
hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
hashCode = prime * hashCode + ((getLastDeploymentConfig() == null) ? 0 : getLastDeploymentConfig().hashCode());
hashCode = prime * hashCode + ((getAsyncInferenceConfig() == null) ? 0 : getAsyncInferenceConfig().hashCode());
hashCode = prime * hashCode + ((getPendingDeploymentSummary() == null) ? 0 : getPendingDeploymentSummary().hashCode());
hashCode = prime * hashCode + ((getExplainerConfig() == null) ? 0 : getExplainerConfig().hashCode());
hashCode = prime * hashCode + ((getShadowProductionVariants() == null) ? 0 : getShadowProductionVariants().hashCode());
return hashCode;
}
@Override
public DescribeEndpointResult clone() {
try {
return (DescribeEndpointResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}