/* * 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
.
*
* The name of the VisualCustomAction
.
*
* The status of the VisualCustomAction
.
*
* The trigger of the VisualCustomAction
.
*
* Valid values are defined as follows: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
* 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
* The ID of the VisualCustomAction
.
*
VisualCustomAction
.
*/
public void setCustomActionId(String customActionId) {
this.customActionId = customActionId;
}
/**
*
* The ID of the VisualCustomAction
.
*
VisualCustomAction
.
*/
public String getCustomActionId() {
return this.customActionId;
}
/**
*
* The ID of the VisualCustomAction
.
*
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
.
*
VisualCustomAction
.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the VisualCustomAction
.
*
VisualCustomAction
.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the VisualCustomAction
.
*
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
.
*
VisualCustomAction
.
* @see WidgetStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the VisualCustomAction
.
*
VisualCustomAction
.
* @see WidgetStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the VisualCustomAction
.
*
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
.
*
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: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
VisualCustomAction
.
* * Valid values are defined as follows: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
* The trigger of the VisualCustomAction
.
*
* Valid values are defined as follows: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
VisualCustomAction
.
* * Valid values are defined as follows: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
* The trigger of the VisualCustomAction
.
*
* Valid values are defined as follows: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
VisualCustomAction
.
* * Valid values are defined as follows: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
* The trigger of the VisualCustomAction
.
*
* Valid values are defined as follows: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
VisualCustomAction
.
* * Valid values are defined as follows: *
*
* DATA_POINT_CLICK
: Initiates a custom action by a left pointer click on a data point.
*
* DATA_POINT_MENU
: Initiates a custom action by right pointer click from the menu.
*
* A list of VisualCustomActionOperations
.
*
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined. *
* * @return A list ofVisualCustomActionOperations
.
*
* This is a union type structure. For this structure to be valid, only one of the attributes can be
* defined.
*/
public java.util.List
* A list of
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
* VisualCustomActionOperations
.
* VisualCustomActionOperations
.
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
*/
public void setActionOperations(java.util.Collection
* A list of
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setActionOperations(java.util.Collection)} or {@link #withActionOperations(java.util.Collection)} if you
* want to override the existing values.
* VisualCustomActionOperations
.
* VisualCustomActionOperations
.
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VisualCustomAction withActionOperations(VisualCustomActionOperation... actionOperations) {
if (this.actionOperations == null) {
setActionOperations(new java.util.ArrayList
* A list of
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
* VisualCustomActionOperations
.
* VisualCustomActionOperations
.
* This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VisualCustomAction withActionOperations(java.util.Collection