/* * 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.quicksight.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* A custom action defined on a visual. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class VisualCustomAction implements Serializable, Cloneable, StructuredPojo { /** *

* The ID of the VisualCustomAction. *

*/ private String customActionId; /** *

* The name of the VisualCustomAction. *

*/ private String name; /** *

* The status of the VisualCustomAction. *

*/ private String status; /** *

* The trigger of the VisualCustomAction. *

*

* Valid values are defined as follows: *

* */ private String trigger; /** *

* A list of VisualCustomActionOperations. *

*

* This is a union type structure. For this structure to be valid, only one of the attributes can be defined. *

*/ private java.util.List actionOperations; /** *

* The ID of the VisualCustomAction. *

* * @param customActionId * The ID of the VisualCustomAction. */ public void setCustomActionId(String customActionId) { this.customActionId = customActionId; } /** *

* The ID of the VisualCustomAction. *

* * @return The ID of the VisualCustomAction. */ public String getCustomActionId() { return this.customActionId; } /** *

* The ID of the VisualCustomAction. *

* * @param customActionId * The ID of the VisualCustomAction. * @return Returns a reference to this object so that method calls can be chained together. */ public VisualCustomAction withCustomActionId(String customActionId) { setCustomActionId(customActionId); return this; } /** *

* The name of the VisualCustomAction. *

* * @param name * The name of the VisualCustomAction. */ public void setName(String name) { this.name = name; } /** *

* The name of the VisualCustomAction. *

* * @return The name of the VisualCustomAction. */ public String getName() { return this.name; } /** *

* The name of the VisualCustomAction. *

* * @param name * The name of the VisualCustomAction. * @return Returns a reference to this object so that method calls can be chained together. */ public VisualCustomAction withName(String name) { setName(name); return this; } /** *

* The status of the VisualCustomAction. *

* * @param status * The status of the VisualCustomAction. * @see WidgetStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the VisualCustomAction. *

* * @return The status of the VisualCustomAction. * @see WidgetStatus */ public String getStatus() { return this.status; } /** *

* The status of the VisualCustomAction. *

* * @param status * The status of the VisualCustomAction. * @return Returns a reference to this object so that method calls can be chained together. * @see WidgetStatus */ public VisualCustomAction withStatus(String status) { setStatus(status); return this; } /** *

* The status of the VisualCustomAction. *

* * @param status * The status of the VisualCustomAction. * @return Returns a reference to this object so that method calls can be chained together. * @see WidgetStatus */ public VisualCustomAction withStatus(WidgetStatus status) { this.status = status.toString(); return this; } /** *

* The trigger of the VisualCustomAction. *

*

* Valid values are defined as follows: *

* * * @param trigger * The trigger of the VisualCustomAction.

*

* Valid values are defined as follows: *

*