Class EventHubEventSourceResourceProperties
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.ResourceProperties
com.azure.resourcemanager.timeseriesinsights.models.EventSourceCommonProperties
com.azure.resourcemanager.timeseriesinsights.models.AzureEventSourceProperties
com.azure.resourcemanager.timeseriesinsights.models.EventHubEventSourceCommonProperties
com.azure.resourcemanager.timeseriesinsights.fluent.models.EventHubEventSourceResourceProperties
public final class EventHubEventSourceResourceProperties
extends EventHubEventSourceCommonProperties
Properties of the EventHub event source resource.
-
Constructor Summary
ConstructorDescriptionCreates an instance of EventHubEventSourceResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.withConsumerGroupName
(String consumerGroupName) Set the consumerGroupName property: The name of the event hub's consumer group that holds the partitions from which events will be read.withEventHubName
(String eventHubName) Set the eventHubName property: The name of the event hub.withEventSourceResourceId
(String eventSourceResourceId) Set the eventSourceResourceId property: The resource id of the event source in Azure Resource Manager.withKeyName
(String keyName) Set the keyName property: The name of the SAS key that grants the Time Series Insights service access to the event hub.withLocalTimestamp
(LocalTimestamp localTimestamp) Set the localTimestamp property: An object that represents the local timestamp property.withServiceBusNamespace
(String serviceBusNamespace) Set the serviceBusNamespace property: The name of the service bus that contains the event hub.Set the time property: ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.withTimestampPropertyName
(String timestampPropertyName) Set the timestampPropertyName property: The event property that will be used as the event source's timestamp.withType
(IngressStartAtType type) Set the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.EventHubEventSourceCommonProperties
consumerGroupName, eventHubName, keyName, serviceBusNamespace
Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.AzureEventSourceProperties
eventSourceResourceId
Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.EventSourceCommonProperties
localTimestamp, time, timestampPropertyName, type
Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.ResourceProperties
creationTime, provisioningState
-
Constructor Details
-
EventHubEventSourceResourceProperties
public EventHubEventSourceResourceProperties()Creates an instance of EventHubEventSourceResourceProperties class.
-
-
Method Details
-
withServiceBusNamespace
Set the serviceBusNamespace property: The name of the service bus that contains the event hub.- Overrides:
withServiceBusNamespace
in classEventHubEventSourceCommonProperties
- Parameters:
serviceBusNamespace
- the serviceBusNamespace value to set.- Returns:
- the EventHubEventSourceCommonProperties object itself.
-
withEventHubName
Set the eventHubName property: The name of the event hub.- Overrides:
withEventHubName
in classEventHubEventSourceCommonProperties
- Parameters:
eventHubName
- the eventHubName value to set.- Returns:
- the EventHubEventSourceCommonProperties object itself.
-
withConsumerGroupName
Set the consumerGroupName property: The name of the event hub's consumer group that holds the partitions from which events will be read.- Overrides:
withConsumerGroupName
in classEventHubEventSourceCommonProperties
- Parameters:
consumerGroupName
- the consumerGroupName value to set.- Returns:
- the EventHubEventSourceCommonProperties object itself.
-
withKeyName
Set the keyName property: The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub.- Overrides:
withKeyName
in classEventHubEventSourceCommonProperties
- Parameters:
keyName
- the keyName value to set.- Returns:
- the EventHubEventSourceCommonProperties object itself.
-
withEventSourceResourceId
public EventHubEventSourceResourceProperties withEventSourceResourceId(String eventSourceResourceId) Set the eventSourceResourceId property: The resource id of the event source in Azure Resource Manager.- Overrides:
withEventSourceResourceId
in classEventHubEventSourceCommonProperties
- Parameters:
eventSourceResourceId
- the eventSourceResourceId value to set.- Returns:
- the AzureEventSourceProperties object itself.
-
withTimestampPropertyName
public EventHubEventSourceResourceProperties 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 classEventHubEventSourceCommonProperties
- Parameters:
timestampPropertyName
- the timestampPropertyName value to set.- Returns:
- the EventSourceCommonProperties object itself.
-
withLocalTimestamp
Set the localTimestamp property: An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.- Overrides:
withLocalTimestamp
in classEventHubEventSourceCommonProperties
- Parameters:
localTimestamp
- the localTimestamp value to set.- Returns:
- the EventSourceCommonProperties object itself.
-
withType
Set the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".- Overrides:
withType
in classEventHubEventSourceCommonProperties
- Parameters:
type
- the type value to set.- Returns:
- the EventSourceCommonProperties object itself.
-
withTime
Set the time property: ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.- Overrides:
withTime
in classEventHubEventSourceCommonProperties
- Parameters:
time
- the time value to set.- Returns:
- the EventSourceCommonProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classEventHubEventSourceCommonProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-