/*
 * 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 chime-sdk-messaging-2021-05-15.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.ChimeSDKMessaging.Model
{
    /// 
    /// Container for the parameters to the ChannelFlowCallback operation.
    /// Calls back Amazon Chime SDK messaging with a processing response message. This should
    /// be invoked from the processor Lambda. This is a developer API.
    /// 
    ///  
    /// 
    /// You can return one of the following processing responses:
    /// 
    ///   -  
    /// 
    /// Update message content or metadata
    /// 
    ///  
  -  
    /// 
    /// Deny a message
    /// 
    ///  
  -  
    /// 
    /// Make no changes to the message
    /// 
    ///  
  
    /// 
    public partial class ChannelFlowCallbackRequest : AmazonChimeSDKMessagingRequest
    {
        private string _callbackId;
        private string _channelArn;
        private ChannelMessageCallback _channelMessage;
        private bool? _deleteResource;
        /// 
        /// Gets and sets the property CallbackId. 
        /// 
        /// The identifier passed to the processor by the service when invoked. Use the identifier
        /// to call back the service.
        /// 
        /// 
        [AWSProperty(Min=32, Max=64)]
        public string CallbackId
        {
            get { return this._callbackId; }
            set { this._callbackId = value; }
        }
        // Check to see if CallbackId property is set
        internal bool IsSetCallbackId()
        {
            return this._callbackId != null;
        }
        /// 
        /// Gets and sets the property ChannelArn. 
        /// 
        /// The ARN of the channel.
        /// 
        /// 
        [AWSProperty(Required=true, Min=5, Max=1600)]
        public string ChannelArn
        {
            get { return this._channelArn; }
            set { this._channelArn = value; }
        }
        // Check to see if ChannelArn property is set
        internal bool IsSetChannelArn()
        {
            return this._channelArn != null;
        }
        /// 
        /// Gets and sets the property ChannelMessage. 
        /// 
        /// Stores information about the processed message.
        /// 
        /// 
        [AWSProperty(Required=true)]
        public ChannelMessageCallback ChannelMessage
        {
            get { return this._channelMessage; }
            set { this._channelMessage = value; }
        }
        // Check to see if ChannelMessage property is set
        internal bool IsSetChannelMessage()
        {
            return this._channelMessage != null;
        }
        /// 
        /// Gets and sets the property DeleteResource. 
        /// 
        /// When a processor determines that a message needs to be DENIED, pass this
        /// parameter with a value of true.
        /// 
        /// 
        public bool DeleteResource
        {
            get { return this._deleteResource.GetValueOrDefault(); }
            set { this._deleteResource = value; }
        }
        // Check to see if DeleteResource property is set
        internal bool IsSetDeleteResource()
        {
            return this._deleteResource.HasValue; 
        }
    }
}