/*
* 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 iotevents-2018-07-27.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.IoTEvents.Model
{
///
/// Sends information about the detector model instance and the event that triggered the
/// action to a specified asset property in AWS IoT SiteWise.
///
///
///
/// You must use expressions for all parameters in IotSiteWiseAction
. The
/// expressions accept literals, operators, functions, references, and substitutions templates.
///
/// Examples
///
///
-
///
/// For literal values, the expressions must contain single quotes. For example, the value
/// for the
propertyAlias
parameter can be '/company/windfarm/3/turbine/7/temperature'
.
///
/// -
///
/// For references, you must specify either variables or input values. For example, the
/// value for the
assetId
parameter can be $input.TurbineInput.assetId1
.
///
/// -
///
/// For a substitution template, you must use
${}
, and the template must
/// be in single quotes. A substitution template can also contain a combination of literals,
/// operators, functions, references, and substitution templates.
///
///
///
/// In the following example, the value for the propertyAlias
parameter uses
/// a substitution template.
///
///
///
/// 'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/
/// ${$input.TemperatureInput.sensorData.turbineID}/temperature'
///
///
///
/// You must specify either propertyAlias
or both assetId
and
/// propertyId
to identify the target asset property in AWS IoT SiteWise.
///
///
///
/// For more information, see Expressions
/// in the AWS IoT Events Developer Guide.
///
///
public partial class IotSiteWiseAction
{
private string _assetId;
private string _entryId;
private string _propertyAlias;
private string _propertyId;
private AssetPropertyValue _propertyValue;
///
/// Gets and sets the property AssetId.
///
/// The ID of the asset that has the specified property.
///
///
public string AssetId
{
get { return this._assetId; }
set { this._assetId = value; }
}
// Check to see if AssetId property is set
internal bool IsSetAssetId()
{
return this._assetId != null;
}
///
/// Gets and sets the property EntryId.
///
/// A unique identifier for this entry. You can use the entry ID to track which data entry
/// causes an error in case of failure. The default is a new unique identifier.
///
///
public string EntryId
{
get { return this._entryId; }
set { this._entryId = value; }
}
// Check to see if EntryId property is set
internal bool IsSetEntryId()
{
return this._entryId != null;
}
///
/// Gets and sets the property PropertyAlias.
///
/// The alias of the asset property.
///
///
public string PropertyAlias
{
get { return this._propertyAlias; }
set { this._propertyAlias = value; }
}
// Check to see if PropertyAlias property is set
internal bool IsSetPropertyAlias()
{
return this._propertyAlias != null;
}
///
/// Gets and sets the property PropertyId.
///
/// The ID of the asset property.
///
///
public string PropertyId
{
get { return this._propertyId; }
set { this._propertyId = value; }
}
// Check to see if PropertyId property is set
internal bool IsSetPropertyId()
{
return this._propertyId != null;
}
///
/// Gets and sets the property PropertyValue.
///
/// The value to send to the asset property. This value contains timestamp, quality, and
/// value (TQV) information.
///
///
public AssetPropertyValue PropertyValue
{
get { return this._propertyValue; }
set { this._propertyValue = value; }
}
// Check to see if PropertyValue property is set
internal bool IsSetPropertyValue()
{
return this._propertyValue != null;
}
}
}