/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateActionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the action to update. *
*/ private String actionName; /** ** The new description for the action. *
*/ private String description; /** ** The new status for the action. *
*/ private String status; /** ** The new list of properties. Overwrites the current property list. *
*/ private java.util.Map* A list of properties to remove. *
*/ private java.util.List* The name of the action to update. *
* * @param actionName * The name of the action to update. */ public void setActionName(String actionName) { this.actionName = actionName; } /** ** The name of the action to update. *
* * @return The name of the action to update. */ public String getActionName() { return this.actionName; } /** ** The name of the action to update. *
* * @param actionName * The name of the action to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateActionRequest withActionName(String actionName) { setActionName(actionName); return this; } /** ** The new description for the action. *
* * @param description * The new description for the action. */ public void setDescription(String description) { this.description = description; } /** ** The new description for the action. *
* * @return The new description for the action. */ public String getDescription() { return this.description; } /** ** The new description for the action. *
* * @param description * The new description for the action. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateActionRequest withDescription(String description) { setDescription(description); return this; } /** ** The new status for the action. *
* * @param status * The new status for the action. * @see ActionStatus */ public void setStatus(String status) { this.status = status; } /** ** The new status for the action. *
* * @return The new status for the action. * @see ActionStatus */ public String getStatus() { return this.status; } /** ** The new status for the action. *
* * @param status * The new status for the action. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionStatus */ public UpdateActionRequest withStatus(String status) { setStatus(status); return this; } /** ** The new status for the action. *
* * @param status * The new status for the action. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionStatus */ public UpdateActionRequest withStatus(ActionStatus status) { this.status = status.toString(); return this; } /** ** The new list of properties. Overwrites the current property list. *
* * @return The new list of properties. Overwrites the current property list. */ public java.util.Map* The new list of properties. Overwrites the current property list. *
* * @param properties * The new list of properties. Overwrites the current property list. */ public void setProperties(java.util.Map* The new list of properties. Overwrites the current property list. *
* * @param properties * The new list of properties. Overwrites the current property list. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateActionRequest withProperties(java.util.Map* A list of properties to remove. *
* * @return A list of properties to remove. */ public java.util.List* A list of properties to remove. *
* * @param propertiesToRemove * A list of properties to remove. */ public void setPropertiesToRemove(java.util.Collection* A list of properties to remove. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPropertiesToRemove(java.util.Collection)} or {@link #withPropertiesToRemove(java.util.Collection)} if * you want to override the existing values. *
* * @param propertiesToRemove * A list of properties to remove. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateActionRequest withPropertiesToRemove(String... propertiesToRemove) { if (this.propertiesToRemove == null) { setPropertiesToRemove(new java.util.ArrayList* A list of properties to remove. *
* * @param propertiesToRemove * A list of properties to remove. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateActionRequest withPropertiesToRemove(java.util.Collection