Class EventGridDataConnection
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner
-
- com.azure.resourcemanager.synapse.models.EventGridDataConnection
-
public final class EventGridDataConnection extends DataConnectionInner
Class representing an Event Grid data connection.
-
-
Constructor Summary
Constructors Constructor Description EventGridDataConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobStorageEventType
blobStorageEventType()
Get the blobStorageEventType property: The name of blob storage event type to process.String
consumerGroup()
Get the consumerGroup property: The event hub consumer group.EventGridDataFormat
dataFormat()
Get the dataFormat property: The data format of the message.String
eventHubResourceId()
Get the eventHubResourceId property: The resource ID where the event grid is configured to send events.Boolean
ignoreFirstRecord()
Get the ignoreFirstRecord property: A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file.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
storageAccountResourceId()
Get the storageAccountResourceId property: The resource ID of the storage account where the data resides.String
tableName()
Get the tableName property: The table where the data should be ingested.void
validate()
Validates the instance.EventGridDataConnection
withBlobStorageEventType(BlobStorageEventType blobStorageEventType)
Set the blobStorageEventType property: The name of blob storage event type to process.EventGridDataConnection
withConsumerGroup(String consumerGroup)
Set the consumerGroup property: The event hub consumer group.EventGridDataConnection
withDataFormat(EventGridDataFormat dataFormat)
Set the dataFormat property: The data format of the message.EventGridDataConnection
withEventHubResourceId(String eventHubResourceId)
Set the eventHubResourceId property: The resource ID where the event grid is configured to send events.EventGridDataConnection
withIgnoreFirstRecord(Boolean ignoreFirstRecord)
Set the ignoreFirstRecord property: A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file.EventGridDataConnection
withLocation(String location)
Set the location property: Resource location.EventGridDataConnection
withMappingRuleName(String mappingRuleName)
Set the mappingRuleName property: The mapping rule to be used to ingest the data.EventGridDataConnection
withStorageAccountResourceId(String storageAccountResourceId)
Set the storageAccountResourceId property: The resource ID of the storage account where the data resides.EventGridDataConnection
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 EventGridDataConnection 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.
-
storageAccountResourceId
public String storageAccountResourceId()
Get the storageAccountResourceId property: The resource ID of the storage account where the data resides.- Returns:
- the storageAccountResourceId value.
-
withStorageAccountResourceId
public EventGridDataConnection withStorageAccountResourceId(String storageAccountResourceId)
Set the storageAccountResourceId property: The resource ID of the storage account where the data resides.- Parameters:
storageAccountResourceId
- the storageAccountResourceId value to set.- Returns:
- the EventGridDataConnection object itself.
-
eventHubResourceId
public String eventHubResourceId()
Get the eventHubResourceId property: The resource ID where the event grid is configured to send events.- Returns:
- the eventHubResourceId value.
-
withEventHubResourceId
public EventGridDataConnection withEventHubResourceId(String eventHubResourceId)
Set the eventHubResourceId property: The resource ID where the event grid is configured to send events.- Parameters:
eventHubResourceId
- the eventHubResourceId value to set.- Returns:
- the EventGridDataConnection object itself.
-
consumerGroup
public String consumerGroup()
Get the consumerGroup property: The event hub consumer group.- Returns:
- the consumerGroup value.
-
withConsumerGroup
public EventGridDataConnection withConsumerGroup(String consumerGroup)
Set the consumerGroup property: The event hub consumer group.- Parameters:
consumerGroup
- the consumerGroup value to set.- Returns:
- the EventGridDataConnection 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 EventGridDataConnection 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 EventGridDataConnection 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 EventGridDataConnection 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 EventGridDataConnection object itself.
-
dataFormat
public EventGridDataFormat 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 EventGridDataConnection withDataFormat(EventGridDataFormat 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 EventGridDataConnection object itself.
-
ignoreFirstRecord
public Boolean ignoreFirstRecord()
Get the ignoreFirstRecord property: A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file.- Returns:
- the ignoreFirstRecord value.
-
withIgnoreFirstRecord
public EventGridDataConnection withIgnoreFirstRecord(Boolean ignoreFirstRecord)
Set the ignoreFirstRecord property: A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file.- Parameters:
ignoreFirstRecord
- the ignoreFirstRecord value to set.- Returns:
- the EventGridDataConnection object itself.
-
blobStorageEventType
public BlobStorageEventType blobStorageEventType()
Get the blobStorageEventType property: The name of blob storage event type to process.- Returns:
- the blobStorageEventType value.
-
withBlobStorageEventType
public EventGridDataConnection withBlobStorageEventType(BlobStorageEventType blobStorageEventType)
Set the blobStorageEventType property: The name of blob storage event type to process.- Parameters:
blobStorageEventType
- the blobStorageEventType value to set.- Returns:
- the EventGridDataConnection object itself.
-
provisioningState
public ResourceProvisioningState provisioningState()
Get the provisioningState property: The provisioned state of the resource.- Returns:
- the provisioningState value.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classDataConnectionInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-