/* * 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 CreateActionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the action. Must be unique to your account in an Amazon Web Services Region. *
*/ private String actionName; /** ** The source type, ID, and URI. *
*/ private ActionSource source; /** ** The action type. *
*/ private String actionType; /** ** The description of the action. *
*/ private String description; /** ** The status of the action. *
*/ private String status; /** ** A list of properties to add to the action. *
*/ private java.util.Map* A list of tags to apply to the action. *
*/ private java.util.List* The name of the action. Must be unique to your account in an Amazon Web Services Region. *
* * @param actionName * The name of the action. Must be unique to your account in an Amazon Web Services Region. */ public void setActionName(String actionName) { this.actionName = actionName; } /** ** The name of the action. Must be unique to your account in an Amazon Web Services Region. *
* * @return The name of the action. Must be unique to your account in an Amazon Web Services Region. */ public String getActionName() { return this.actionName; } /** ** The name of the action. Must be unique to your account in an Amazon Web Services Region. *
* * @param actionName * The name of the action. Must be unique to your account in an Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateActionRequest withActionName(String actionName) { setActionName(actionName); return this; } /** ** The source type, ID, and URI. *
* * @param source * The source type, ID, and URI. */ public void setSource(ActionSource source) { this.source = source; } /** ** The source type, ID, and URI. *
* * @return The source type, ID, and URI. */ public ActionSource getSource() { return this.source; } /** ** The source type, ID, and URI. *
* * @param source * The source type, ID, and URI. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateActionRequest withSource(ActionSource source) { setSource(source); return this; } /** ** The action type. *
* * @param actionType * The action type. */ public void setActionType(String actionType) { this.actionType = actionType; } /** ** The action type. *
* * @return The action type. */ public String getActionType() { return this.actionType; } /** ** The action type. *
* * @param actionType * The action type. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateActionRequest withActionType(String actionType) { setActionType(actionType); return this; } /** ** The description of the action. *
* * @param description * The description of the action. */ public void setDescription(String description) { this.description = description; } /** ** The description of the action. *
* * @return The description of the action. */ public String getDescription() { return this.description; } /** ** The description of the action. *
* * @param description * The description of the action. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateActionRequest withDescription(String description) { setDescription(description); return this; } /** ** The status of the action. *
* * @param status * The status of the action. * @see ActionStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the action. *
* * @return The status of the action. * @see ActionStatus */ public String getStatus() { return this.status; } /** ** The status of the action. *
* * @param status * The status of the action. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionStatus */ public CreateActionRequest withStatus(String status) { setStatus(status); return this; } /** ** The status of the action. *
* * @param status * The status of the action. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionStatus */ public CreateActionRequest withStatus(ActionStatus status) { this.status = status.toString(); return this; } /** ** A list of properties to add to the action. *
* * @return A list of properties to add to the action. */ public java.util.Map* A list of properties to add to the action. *
* * @param properties * A list of properties to add to the action. */ public void setProperties(java.util.Map* A list of properties to add to the action. *
* * @param properties * A list of properties to add to the action. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateActionRequest withProperties(java.util.Map* A list of tags to apply to the action. *
* * @return A list of tags to apply to the action. */ public java.util.List* A list of tags to apply to the action. *
* * @param tags * A list of tags to apply to the action. */ public void setTags(java.util.Collection* A list of tags to apply to the action. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tags to apply to the action. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateActionRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of tags to apply to the action. *
* * @param tags * A list of tags to apply to the action. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateActionRequest withTags(java.util.Collection