/* * 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 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 EdgeDeployment implements Serializable, Cloneable, StructuredPojo { /** ** The name and unique ID of the deployment. *
*/ private String deploymentName; /** ** The type of the deployment. *
*/ private String type; /** ** Determines whether to rollback to previous configuration if deployment fails. *
*/ private String failureHandlingPolicy; /** ** Returns a list of Definition objects. *
*/ 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 EdgeDeployment withDeploymentName(String deploymentName) { setDeploymentName(deploymentName); return this; } /** ** The type of the deployment. *
* * @param type * The type of the deployment. * @see DeploymentType */ public void setType(String type) { this.type = type; } /** ** The type of the deployment. *
* * @return The type of the deployment. * @see DeploymentType */ public String getType() { return this.type; } /** ** The type of the deployment. *
* * @param type * The type of the deployment. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentType */ public EdgeDeployment withType(String type) { setType(type); return this; } /** ** The type of the deployment. *
* * @param type * The type of the deployment. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentType */ public EdgeDeployment withType(DeploymentType type) { this.type = type.toString(); return this; } /** ** Determines whether to rollback to previous configuration if deployment fails. *
* * @param failureHandlingPolicy * Determines whether to rollback to previous configuration if deployment fails. * @see FailureHandlingPolicy */ public void setFailureHandlingPolicy(String failureHandlingPolicy) { this.failureHandlingPolicy = failureHandlingPolicy; } /** ** Determines whether to rollback to previous configuration if deployment fails. *
* * @return Determines whether to rollback to previous configuration if deployment fails. * @see FailureHandlingPolicy */ public String getFailureHandlingPolicy() { return this.failureHandlingPolicy; } /** ** Determines whether to rollback to previous configuration if deployment fails. *
* * @param failureHandlingPolicy * Determines whether to rollback to previous configuration if deployment fails. * @return Returns a reference to this object so that method calls can be chained together. * @see FailureHandlingPolicy */ public EdgeDeployment withFailureHandlingPolicy(String failureHandlingPolicy) { setFailureHandlingPolicy(failureHandlingPolicy); return this; } /** ** Determines whether to rollback to previous configuration if deployment fails. *
* * @param failureHandlingPolicy * Determines whether to rollback to previous configuration if deployment fails. * @return Returns a reference to this object so that method calls can be chained together. * @see FailureHandlingPolicy */ public EdgeDeployment withFailureHandlingPolicy(FailureHandlingPolicy failureHandlingPolicy) { this.failureHandlingPolicy = failureHandlingPolicy.toString(); return this; } /** ** Returns a list of Definition objects. *
* * @return Returns a list of Definition objects. */ public java.util.List* Returns a list of Definition objects. *
* * @param definitions * Returns a list of Definition objects. */ public void setDefinitions(java.util.Collection* Returns a list of Definition objects. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDefinitions(java.util.Collection)} or {@link #withDefinitions(java.util.Collection)} if you want to * override the existing values. *
* * @param definitions * Returns a list of Definition objects. * @return Returns a reference to this object so that method calls can be chained together. */ public EdgeDeployment withDefinitions(Definition... definitions) { if (this.definitions == null) { setDefinitions(new java.util.ArrayList* Returns a list of Definition objects. *
* * @param definitions * Returns a list of Definition objects. * @return Returns a reference to this object so that method calls can be chained together. */ public EdgeDeployment withDefinitions(java.util.Collection