Class EventHubEventSourceResource
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.timeseriesinsights.fluent.models.EventSourceResourceInner
com.azure.resourcemanager.timeseriesinsights.models.EventHubEventSourceResource
An event source that receives its data from an Azure EventHub.
-
Constructor Summary
ConstructorDescriptionCreates an instance of EventHubEventSourceResource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the consumerGroupName property: The name of the event hub's consumer group that holds the partitions from which events will be read.Get the creationTime property: The time the resource was created.Get the eventHubName property: The name of the event hub.Get the eventSourceResourceId property: The resource id of the event source in Azure Resource Manager.keyName()
Get the keyName property: The name of the SAS key that grants the Time Series Insights service access to the event hub.Get the localTimestamp property: An object that represents the local timestamp property.Get the provisioningState property: Provisioning state of the resource.Get the serviceBusNamespace property: The name of the service bus that contains the event hub.time()
Get 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.Get the timestampPropertyName property: The event property that will be used as the event source's timestamp.Get the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".void
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.withLocation
(String location) 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.Set the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
EventHubEventSourceResource
public EventHubEventSourceResource()Creates an instance of EventHubEventSourceResource class.
-
-
Method Details
-
withLocation
- Overrides:
withLocation
in classEventSourceResourceInner
-
withTags
- Overrides:
withTags
in classEventSourceResourceInner
-
serviceBusNamespace
Get the serviceBusNamespace property: The name of the service bus that contains the event hub.- Returns:
- the serviceBusNamespace value.
-
withServiceBusNamespace
Set the serviceBusNamespace property: The name of the service bus that contains the event hub.- Parameters:
serviceBusNamespace
- the serviceBusNamespace value to set.- Returns:
- the EventHubEventSourceResource object itself.
-
eventHubName
Get the eventHubName property: The name of the event hub.- Returns:
- the eventHubName value.
-
withEventHubName
Set the eventHubName property: The name of the event hub.- Parameters:
eventHubName
- the eventHubName value to set.- Returns:
- the EventHubEventSourceResource object itself.
-
consumerGroupName
Get the consumerGroupName property: The name of the event hub's consumer group that holds the partitions from which events will be read.- Returns:
- the consumerGroupName value.
-
withConsumerGroupName
Set the consumerGroupName property: The name of the event hub's consumer group that holds the partitions from which events will be read.- Parameters:
consumerGroupName
- the consumerGroupName value to set.- Returns:
- the EventHubEventSourceResource object itself.
-
keyName
Get 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.- Returns:
- the keyName value.
-
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.- Parameters:
keyName
- the keyName value to set.- Returns:
- the EventHubEventSourceResource object itself.
-
eventSourceResourceId
Get the eventSourceResourceId property: The resource id of the event source in Azure Resource Manager.- Returns:
- the eventSourceResourceId value.
-
withEventSourceResourceId
Set the eventSourceResourceId property: The resource id of the event source in Azure Resource Manager.- Parameters:
eventSourceResourceId
- the eventSourceResourceId value to set.- Returns:
- the EventHubEventSourceResource 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 EventHubEventSourceResource object itself.
-
localTimestamp
Get 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.- Returns:
- the localTimestamp value.
-
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.- Parameters:
localTimestamp
- the localTimestamp value to set.- Returns:
- the EventHubEventSourceResource object itself.
-
typePropertiesType
Get the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".- Returns:
- the type value.
-
withTypePropertiesType
Set the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".- Parameters:
type
- the type value to set.- Returns:
- the EventHubEventSourceResource object itself.
-
time
Get 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.- Returns:
- the time value.
-
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.- Parameters:
time
- the time value to set.- Returns:
- the EventHubEventSourceResource object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the resource.- Returns:
- the provisioningState value.
-
creationTime
Get the creationTime property: The time the resource was created.- Returns:
- the creationTime value.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classEventSourceResourceInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-