/* * 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; /** *
* The summary of an in-progress deployment when an endpoint is creating or updating with a new endpoint configuration. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PendingDeploymentSummary implements Serializable, Cloneable, StructuredPojo { /** ** The name of the endpoint configuration used in the deployment. *
*/ private String endpointConfigName; /** ** An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the in-progress * deployment. *
*/ private java.util.List* The start time of the deployment. *
*/ private java.util.Date startTime; /** *
* An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint in shadow mode with
* production traffic replicated from the model specified on ProductionVariants
for the in-progress
* deployment.
*
* The name of the endpoint configuration used in the deployment. *
* * @param endpointConfigName * The name of the endpoint configuration used in the deployment. */ public void setEndpointConfigName(String endpointConfigName) { this.endpointConfigName = endpointConfigName; } /** ** The name of the endpoint configuration used in the deployment. *
* * @return The name of the endpoint configuration used in the deployment. */ public String getEndpointConfigName() { return this.endpointConfigName; } /** ** The name of the endpoint configuration used in the deployment. *
* * @param endpointConfigName * The name of the endpoint configuration used in the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingDeploymentSummary withEndpointConfigName(String endpointConfigName) { setEndpointConfigName(endpointConfigName); return this; } /** ** An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the in-progress * deployment. *
* * @return An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the * in-progress deployment. */ public java.util.List* An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the in-progress * deployment. *
* * @param productionVariants * An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the * in-progress deployment. */ public void setProductionVariants(java.util.Collection* An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the in-progress * deployment. *
** 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 PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the * in-progress deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingDeploymentSummary withProductionVariants(PendingProductionVariantSummary... productionVariants) { if (this.productionVariants == null) { setProductionVariants(new java.util.ArrayList* An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the in-progress * deployment. *
* * @param productionVariants * An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint for the * in-progress deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingDeploymentSummary withProductionVariants(java.util.Collection* The start time of the deployment. *
* * @param startTime * The start time of the deployment. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The start time of the deployment. *
* * @return The start time of the deployment. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The start time of the deployment. *
* * @param startTime * The start time of the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingDeploymentSummary withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *
* An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint in shadow mode with
* production traffic replicated from the model specified on ProductionVariants
for the in-progress
* deployment.
*
ProductionVariants
for
* the in-progress deployment.
*/
public java.util.List
* An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint in shadow mode with
* production traffic replicated from the model specified on ProductionVariants
for the in-progress
* deployment.
*
ProductionVariants
for
* the in-progress deployment.
*/
public void setShadowProductionVariants(java.util.Collection
* An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint in shadow mode with
* production traffic replicated from the model specified on ProductionVariants
for the in-progress
* deployment.
*
* 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 PendingProductionVariantSummary objects, one for each model hosted behind this endpoint in shadow * mode with production traffic replicated from the model specified onProductionVariants
for
* the in-progress deployment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PendingDeploymentSummary withShadowProductionVariants(PendingProductionVariantSummary... shadowProductionVariants) {
if (this.shadowProductionVariants == null) {
setShadowProductionVariants(new java.util.ArrayList
* An array of PendingProductionVariantSummary objects, one for each model hosted behind this endpoint in shadow mode with
* production traffic replicated from the model specified on ProductionVariants
for the in-progress
* deployment.
*
ProductionVariants
for
* the in-progress deployment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PendingDeploymentSummary withShadowProductionVariants(java.util.Collection