Class IoTHubEventSourceUpdateParameters

java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.EventSourceUpdateParameters
com.azure.resourcemanager.timeseriesinsights.models.IoTHubEventSourceUpdateParameters

public final class IoTHubEventSourceUpdateParameters extends EventSourceUpdateParameters
Parameters supplied to the Update Event Source operation to update an IoTHub event source.
  • 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 class EventSourceUpdateParameters
      Parameters:
      tags - the tags value to set.
      Returns:
      the EventSourceUpdateParameters object itself.
    • sharedAccessKey

      public String sharedAccessKey()
      Get the sharedAccessKey property: The value of the shared access key that grants the Time Series Insights service read access to the iot hub. This property is not shown in event source responses.
      Returns:
      the sharedAccessKey value.
    • withSharedAccessKey

      public IoTHubEventSourceUpdateParameters 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. This property is not shown in event source responses.
      Parameters:
      sharedAccessKey - the sharedAccessKey value to set.
      Returns:
      the IoTHubEventSourceUpdateParameters object itself.
    • timestampPropertyName

      public String 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

      public IoTHubEventSourceUpdateParameters withTimestampPropertyName(String timestampPropertyName)
      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 class EventSourceUpdateParameters
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.