/*
* 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
{
///
/// A structure that contains timestamp information. For more information, see TimeInNanos
/// in the AWS IoT SiteWise API Reference.
///
///
///
/// You must use expressions for all parameters in AssetPropertyTimestamp
.
/// The expressions accept literals, operators, functions, references, and substitution
/// templates.
///
/// Examples
///
///
-
///
/// For literal values, the expressions must contain single quotes. For example, the value
/// for the
timeInSeconds
parameter can be '1586400675'
.
///
/// -
///
/// For references, you must specify either variables or input values. For example, the
/// value for the
offsetInNanos
parameter can be $variable.time
.
///
/// -
///
/// 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 timeInSeconds
parameter uses
/// a substitution template.
///
///
///
/// '${$input.TemperatureInput.sensorData.timestamp / 1000}'
///
///
///
/// For more information, see Expressions
/// in the AWS IoT Events Developer Guide.
///
///
public partial class AssetPropertyTimestamp
{
private string _offsetInNanos;
private string _timeInSeconds;
///
/// Gets and sets the property OffsetInNanos.
///
/// The nanosecond offset converted from timeInSeconds
. The valid range is
/// between 0-999999999.
///
///
public string OffsetInNanos
{
get { return this._offsetInNanos; }
set { this._offsetInNanos = value; }
}
// Check to see if OffsetInNanos property is set
internal bool IsSetOffsetInNanos()
{
return this._offsetInNanos != null;
}
///
/// Gets and sets the property TimeInSeconds.
///
/// The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.
///
///
[AWSProperty(Required=true)]
public string TimeInSeconds
{
get { return this._timeInSeconds; }
set { this._timeInSeconds = value; }
}
// Check to see if TimeInSeconds property is set
internal bool IsSetTimeInSeconds()
{
return this._timeInSeconds != null;
}
}
}