Class IoTHubEventSourceUpdateParameters
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.EventSourceUpdateParameters
com.azure.resourcemanager.timeseriesinsights.models.IoTHubEventSourceUpdateParameters
Parameters supplied to the Update Event Source operation to update an IoTHub event source.
-
Constructor Summary
ConstructorDescriptionCreates an instance of IoTHubEventSourceUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the sharedAccessKey property: The value of the shared access key that grants the Time Series Insights service read access to the iot hub.Get the timestampPropertyName property: The event property that will be used as the event source's timestamp.void
validate()
Validates the instance.withSharedAccessKey
(String sharedAccessKey) Set the sharedAccessKey property: The value of the shared access key that grants the Time Series Insights service read access to the iot hub.Set the tags property: Key-value pairs of additional properties for the event source.withTimestampPropertyName
(String timestampPropertyName) Set the timestampPropertyName property: The event property that will be used as the event source's timestamp.Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.EventSourceUpdateParameters
tags
-
Constructor Details
-
IoTHubEventSourceUpdateParameters
public IoTHubEventSourceUpdateParameters()Creates an instance of IoTHubEventSourceUpdateParameters class.
-
-
Method Details
-
withTags
Set the tags property: Key-value pairs of additional properties for the event source.- Overrides:
withTags
in classEventSourceUpdateParameters
- Parameters:
tags
- the tags value to set.- Returns:
- the EventSourceUpdateParameters object itself.
-
timestampPropertyName
Get the timestampPropertyName property: The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.- Returns:
- the timestampPropertyName value.
-
withTimestampPropertyName
Set the timestampPropertyName property: The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.- Parameters:
timestampPropertyName
- the timestampPropertyName value to set.- Returns:
- the IoTHubEventSourceUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classEventSourceUpdateParameters
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-