/* * 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.sagemakeredgemanager.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the result of a deployment on an edge device that is registered with SageMaker Edge Manager. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DeploymentResult implements Serializable, Cloneable, StructuredPojo { /** ** The name and unique ID of the deployment. *
*/ private String deploymentName; /** ** Returns the bucket error code. *
*/ private String deploymentStatus; /** ** Returns the detailed error message. *
*/ private String deploymentStatusMessage; /** ** The timestamp of when the deployment was started on the agent. *
*/ private java.util.Date deploymentStartTime; /** ** The timestamp of when the deployment was ended, and the agent got the deployment results. *
*/ private java.util.Date deploymentEndTime; /** ** Returns a list of models deployed on the agent. *
*/ private java.util.List* The name and unique ID of the deployment. *
* * @param deploymentName * The name and unique ID of the deployment. */ public void setDeploymentName(String deploymentName) { this.deploymentName = deploymentName; } /** ** The name and unique ID of the deployment. *
* * @return The name and unique ID of the deployment. */ public String getDeploymentName() { return this.deploymentName; } /** ** The name and unique ID of the deployment. *
* * @param deploymentName * The name and unique ID of the deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentResult withDeploymentName(String deploymentName) { setDeploymentName(deploymentName); return this; } /** ** Returns the bucket error code. *
* * @param deploymentStatus * Returns the bucket error code. */ public void setDeploymentStatus(String deploymentStatus) { this.deploymentStatus = deploymentStatus; } /** ** Returns the bucket error code. *
* * @return Returns the bucket error code. */ public String getDeploymentStatus() { return this.deploymentStatus; } /** ** Returns the bucket error code. *
* * @param deploymentStatus * Returns the bucket error code. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentResult withDeploymentStatus(String deploymentStatus) { setDeploymentStatus(deploymentStatus); return this; } /** ** Returns the detailed error message. *
* * @param deploymentStatusMessage * Returns the detailed error message. */ public void setDeploymentStatusMessage(String deploymentStatusMessage) { this.deploymentStatusMessage = deploymentStatusMessage; } /** ** Returns the detailed error message. *
* * @return Returns the detailed error message. */ public String getDeploymentStatusMessage() { return this.deploymentStatusMessage; } /** ** Returns the detailed error message. *
* * @param deploymentStatusMessage * Returns the detailed error message. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentResult withDeploymentStatusMessage(String deploymentStatusMessage) { setDeploymentStatusMessage(deploymentStatusMessage); return this; } /** ** The timestamp of when the deployment was started on the agent. *
* * @param deploymentStartTime * The timestamp of when the deployment was started on the agent. */ public void setDeploymentStartTime(java.util.Date deploymentStartTime) { this.deploymentStartTime = deploymentStartTime; } /** ** The timestamp of when the deployment was started on the agent. *
* * @return The timestamp of when the deployment was started on the agent. */ public java.util.Date getDeploymentStartTime() { return this.deploymentStartTime; } /** ** The timestamp of when the deployment was started on the agent. *
* * @param deploymentStartTime * The timestamp of when the deployment was started on the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentResult withDeploymentStartTime(java.util.Date deploymentStartTime) { setDeploymentStartTime(deploymentStartTime); return this; } /** ** The timestamp of when the deployment was ended, and the agent got the deployment results. *
* * @param deploymentEndTime * The timestamp of when the deployment was ended, and the agent got the deployment results. */ public void setDeploymentEndTime(java.util.Date deploymentEndTime) { this.deploymentEndTime = deploymentEndTime; } /** ** The timestamp of when the deployment was ended, and the agent got the deployment results. *
* * @return The timestamp of when the deployment was ended, and the agent got the deployment results. */ public java.util.Date getDeploymentEndTime() { return this.deploymentEndTime; } /** ** The timestamp of when the deployment was ended, and the agent got the deployment results. *
* * @param deploymentEndTime * The timestamp of when the deployment was ended, and the agent got the deployment results. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentResult withDeploymentEndTime(java.util.Date deploymentEndTime) { setDeploymentEndTime(deploymentEndTime); return this; } /** ** Returns a list of models deployed on the agent. *
* * @return Returns a list of models deployed on the agent. */ public java.util.List* Returns a list of models deployed on the agent. *
* * @param deploymentModels * Returns a list of models deployed on the agent. */ public void setDeploymentModels(java.util.Collection* Returns a list of models deployed on the agent. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDeploymentModels(java.util.Collection)} or {@link #withDeploymentModels(java.util.Collection)} if you * want to override the existing values. *
* * @param deploymentModels * Returns a list of models deployed on the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentResult withDeploymentModels(DeploymentModel... deploymentModels) { if (this.deploymentModels == null) { setDeploymentModels(new java.util.ArrayList* Returns a list of models deployed on the agent. *
* * @param deploymentModels * Returns a list of models deployed on the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public DeploymentResult withDeploymentModels(java.util.Collection