/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the quicksight-2018-04-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.QuickSight.Model
{
///
/// A custom action defined on a visual.
///
public partial class VisualCustomAction
{
private List _actionOperations = new List();
private string _customActionId;
private string _name;
private WidgetStatus _status;
private VisualCustomActionTrigger _trigger;
///
/// Gets and sets the property ActionOperations.
///
/// A list of VisualCustomActionOperations
.
///
///
///
/// This is a union type structure. For this structure to be valid, only one of the attributes
/// can be defined.
///
///
[AWSProperty(Required=true, Min=1, Max=2)]
public List ActionOperations
{
get { return this._actionOperations; }
set { this._actionOperations = value; }
}
// Check to see if ActionOperations property is set
internal bool IsSetActionOperations()
{
return this._actionOperations != null && this._actionOperations.Count > 0;
}
///
/// Gets and sets the property CustomActionId.
///
/// The ID of the VisualCustomAction
.
///
///
[AWSProperty(Required=true, Min=1, Max=512)]
public string CustomActionId
{
get { return this._customActionId; }
set { this._customActionId = value; }
}
// Check to see if CustomActionId property is set
internal bool IsSetCustomActionId()
{
return this._customActionId != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the VisualCustomAction
.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the VisualCustomAction
.
///
///
public WidgetStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Trigger.
///
/// 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.
///
///
///
[AWSProperty(Required=true)]
public VisualCustomActionTrigger Trigger
{
get { return this._trigger; }
set { this._trigger = value; }
}
// Check to see if Trigger property is set
internal bool IsSetTrigger()
{
return this._trigger != null;
}
}
}