/*
* 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 iotwireless-2020-11-22.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.IoTWireless.Model
{
///
/// Container for the parameters to the SendDataToWirelessDevice operation.
/// Sends a decrypted application data frame to a device.
///
public partial class SendDataToWirelessDeviceRequest : AmazonIoTWirelessRequest
{
private string _id;
private string _payloadData;
private int? _transmitMode;
private WirelessMetadata _wirelessMetadata;
///
/// Gets and sets the property Id.
///
/// The ID of the wireless device to receive the data.
///
///
[AWSProperty(Required=true, Max=256)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property PayloadData.
///
[AWSProperty(Required=true, Max=2048)]
public string PayloadData
{
get { return this._payloadData; }
set { this._payloadData = value; }
}
// Check to see if PayloadData property is set
internal bool IsSetPayloadData()
{
return this._payloadData != null;
}
///
/// Gets and sets the property TransmitMode.
///
/// The transmit mode to use to send data to the wireless device. Can be: 0
/// for UM (unacknowledge mode) or 1
for AM (acknowledge mode).
///
///
[AWSProperty(Required=true, Min=0, Max=1)]
public int TransmitMode
{
get { return this._transmitMode.GetValueOrDefault(); }
set { this._transmitMode = value; }
}
// Check to see if TransmitMode property is set
internal bool IsSetTransmitMode()
{
return this._transmitMode.HasValue;
}
///
/// Gets and sets the property WirelessMetadata.
///
/// Metadata about the message request.
///
///
public WirelessMetadata WirelessMetadata
{
get { return this._wirelessMetadata; }
set { this._wirelessMetadata = value; }
}
// Check to see if WirelessMetadata property is set
internal bool IsSetWirelessMetadata()
{
return this._wirelessMetadata != null;
}
}
}