public VisualCustomAction withTrigger(VisualCustomActionTrigger trigger) {
        this.trigger = trigger.toString();
        return this;
    }
<p>
The trigger of the <code>VisualCustomAction</code>.
</p>
<p>
Valid values are defined as follows:
</p>
<ul>
<li>
<p>
<code>DATA_POINT_CLICK</code>: Initiates a custom action by a left pointer click on a data point.
</p>
</li>
<li>
<p>
<code>DATA_POINT_MENU</code>: Initiates a custom action by right pointer click from the menu.
</p>
</li>
</ul>

@param trigger
       The trigger of the <code>VisualCustomAction</code>.</p>
       <p>
       Valid values are defined as follows:
       </p>
       <ul>
       <li>
       <p>
       <code>DATA_POINT_CLICK</code>: Initiates a custom action by a left pointer click on a data point.
       </p>
       </li>
       <li>
       <p>
       <code>DATA_POINT_MENU</code>: Initiates a custom action by right pointer click from the menu.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see VisualCustomActionTrigger
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/VisualCustomAction.java