Class IoTHubEventSourceMutableProperties

java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.EventSourceMutableProperties
com.azure.resourcemanager.timeseriesinsights.fluent.models.IoTHubEventSourceMutableProperties

public final class IoTHubEventSourceMutableProperties extends EventSourceMutableProperties
An object that represents a set of mutable IoTHub event source resource properties.
  • Constructor Details

    • IoTHubEventSourceMutableProperties

      public IoTHubEventSourceMutableProperties()
      Creates an instance of IoTHubEventSourceMutableProperties class.
  • Method Details

    • 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 IoTHubEventSourceMutableProperties 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 IoTHubEventSourceMutableProperties object itself.
    • withTimestampPropertyName

      public IoTHubEventSourceMutableProperties 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.
      Overrides:
      withTimestampPropertyName in class EventSourceMutableProperties
      Parameters:
      timestampPropertyName - the timestampPropertyName value to set.
      Returns:
      the EventSourceMutableProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class EventSourceMutableProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.