Class EventHubDataConnection
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner
-
- com.azure.resourcemanager.synapse.models.EventHubDataConnection
-
public final class EventHubDataConnection extends DataConnectionInner
Class representing an event hub data connection.
-
-
Constructor Summary
Constructors Constructor Description EventHubDataConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Compression
compression()
Get the compression property: The event hub messages compression type.String
consumerGroup()
Get the consumerGroup property: The event hub consumer group.EventHubDataFormat
dataFormat()
Get the dataFormat property: The data format of the message.String
eventHubResourceId()
Get the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection.List<String>
eventSystemProperties()
Get the eventSystemProperties property: System properties of the event hub.String
managedIdentityResourceId()
Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub.String
mappingRuleName()
Get the mappingRuleName property: The mapping rule to be used to ingest the data.ResourceProvisioningState
provisioningState()
Get the provisioningState property: The provisioned state of the resource.String
tableName()
Get the tableName property: The table where the data should be ingested.void
validate()
Validates the instance.EventHubDataConnection
withCompression(Compression compression)
Set the compression property: The event hub messages compression type.EventHubDataConnection
withConsumerGroup(String consumerGroup)
Set the consumerGroup property: The event hub consumer group.EventHubDataConnection
withDataFormat(EventHubDataFormat dataFormat)
Set the dataFormat property: The data format of the message.EventHubDataConnection
withEventHubResourceId(String eventHubResourceId)
Set the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection.EventHubDataConnection
withEventSystemProperties(List<String> eventSystemProperties)
Set the eventSystemProperties property: System properties of the event hub.EventHubDataConnection
withLocation(String location)
Set the location property: Resource location.EventHubDataConnection
withManagedIdentityResourceId(String managedIdentityResourceId)
Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub.EventHubDataConnection
withMappingRuleName(String mappingRuleName)
Set the mappingRuleName property: The mapping rule to be used to ingest the data.EventHubDataConnection
withTableName(String tableName)
Set the tableName property: The table where the data should be ingested.-
Methods inherited from class com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner
location, systemData
-
-
-
-
Method Detail
-
withLocation
public EventHubDataConnection withLocation(String location)
Set the location property: Resource location.- Overrides:
withLocation
in classDataConnectionInner
- Parameters:
location
- the location value to set.- Returns:
- the DataConnectionInner object itself.
-
eventHubResourceId
public String eventHubResourceId()
Get the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection.- Returns:
- the eventHubResourceId value.
-
withEventHubResourceId
public EventHubDataConnection withEventHubResourceId(String eventHubResourceId)
Set the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection.- Parameters:
eventHubResourceId
- the eventHubResourceId value to set.- Returns:
- the EventHubDataConnection object itself.
-
consumerGroup
public String consumerGroup()
Get the consumerGroup property: The event hub consumer group.- Returns:
- the consumerGroup value.
-
withConsumerGroup
public EventHubDataConnection withConsumerGroup(String consumerGroup)
Set the consumerGroup property: The event hub consumer group.- Parameters:
consumerGroup
- the consumerGroup value to set.- Returns:
- the EventHubDataConnection object itself.
-
tableName
public String tableName()
Get the tableName property: The table where the data should be ingested. Optionally the table information can be added to each message.- Returns:
- the tableName value.
-
withTableName
public EventHubDataConnection withTableName(String tableName)
Set the tableName property: The table where the data should be ingested. Optionally the table information can be added to each message.- Parameters:
tableName
- the tableName value to set.- Returns:
- the EventHubDataConnection object itself.
-
mappingRuleName
public String mappingRuleName()
Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.- Returns:
- the mappingRuleName value.
-
withMappingRuleName
public EventHubDataConnection withMappingRuleName(String mappingRuleName)
Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.- Parameters:
mappingRuleName
- the mappingRuleName value to set.- Returns:
- the EventHubDataConnection object itself.
-
dataFormat
public EventHubDataFormat dataFormat()
Get the dataFormat property: The data format of the message. Optionally the data format can be added to each message.- Returns:
- the dataFormat value.
-
withDataFormat
public EventHubDataConnection withDataFormat(EventHubDataFormat dataFormat)
Set the dataFormat property: The data format of the message. Optionally the data format can be added to each message.- Parameters:
dataFormat
- the dataFormat value to set.- Returns:
- the EventHubDataConnection object itself.
-
eventSystemProperties
public List<String> eventSystemProperties()
Get the eventSystemProperties property: System properties of the event hub.- Returns:
- the eventSystemProperties value.
-
withEventSystemProperties
public EventHubDataConnection withEventSystemProperties(List<String> eventSystemProperties)
Set the eventSystemProperties property: System properties of the event hub.- Parameters:
eventSystemProperties
- the eventSystemProperties value to set.- Returns:
- the EventHubDataConnection object itself.
-
compression
public Compression compression()
Get the compression property: The event hub messages compression type.- Returns:
- the compression value.
-
withCompression
public EventHubDataConnection withCompression(Compression compression)
Set the compression property: The event hub messages compression type.- Parameters:
compression
- the compression value to set.- Returns:
- the EventHubDataConnection object itself.
-
provisioningState
public ResourceProvisioningState provisioningState()
Get the provisioningState property: The provisioned state of the resource.- Returns:
- the provisioningState value.
-
managedIdentityResourceId
public String managedIdentityResourceId()
Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub.- Returns:
- the managedIdentityResourceId value.
-
withManagedIdentityResourceId
public EventHubDataConnection withManagedIdentityResourceId(String managedIdentityResourceId)
Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub.- Parameters:
managedIdentityResourceId
- the managedIdentityResourceId value to set.- Returns:
- the EventHubDataConnection object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classDataConnectionInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-