/*
* 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 connect-2017-08-08.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.Connect.Model
{
///
/// Information about the action to be performed when a rule is triggered.
///
public partial class RuleAction
{
private ActionType _actionType;
private AssignContactCategoryActionDefinition _assignContactCategoryAction;
private EventBridgeActionDefinition _eventBridgeAction;
private SendNotificationActionDefinition _sendNotificationAction;
private TaskActionDefinition _taskAction;
///
/// Gets and sets the property ActionType.
///
/// The type of action that creates a rule.
///
///
[AWSProperty(Required=true)]
public ActionType ActionType
{
get { return this._actionType; }
set { this._actionType = value; }
}
// Check to see if ActionType property is set
internal bool IsSetActionType()
{
return this._actionType != null;
}
///
/// Gets and sets the property AssignContactCategoryAction.
///
/// Information about the contact category action.
///
///
public AssignContactCategoryActionDefinition AssignContactCategoryAction
{
get { return this._assignContactCategoryAction; }
set { this._assignContactCategoryAction = value; }
}
// Check to see if AssignContactCategoryAction property is set
internal bool IsSetAssignContactCategoryAction()
{
return this._assignContactCategoryAction != null;
}
///
/// Gets and sets the property EventBridgeAction.
///
/// Information about the EventBridge action.
///
///
public EventBridgeActionDefinition EventBridgeAction
{
get { return this._eventBridgeAction; }
set { this._eventBridgeAction = value; }
}
// Check to see if EventBridgeAction property is set
internal bool IsSetEventBridgeAction()
{
return this._eventBridgeAction != null;
}
///
/// Gets and sets the property SendNotificationAction.
///
/// Information about the send notification action.
///
///
public SendNotificationActionDefinition SendNotificationAction
{
get { return this._sendNotificationAction; }
set { this._sendNotificationAction = value; }
}
// Check to see if SendNotificationAction property is set
internal bool IsSetSendNotificationAction()
{
return this._sendNotificationAction != null;
}
///
/// Gets and sets the property TaskAction.
///
/// Information about the task action. This field is required if TriggerEventSource
/// is one of the following values: OnZendeskTicketCreate
| OnZendeskTicketStatusUpdate
/// | OnSalesforceCaseCreate
///
///
public TaskActionDefinition TaskAction
{
get { return this._taskAction; }
set { this._taskAction = value; }
}
// Check to see if TaskAction property is set
internal bool IsSetTaskAction()
{
return this._taskAction != null;
}
}
}