Class EventHubStreamInputDataSourceProperties
- java.lang.Object
-
- com.azure.resourcemanager.streamanalytics.models.ServiceBusDataSourceProperties
-
- com.azure.resourcemanager.streamanalytics.models.EventHubDataSourceProperties
-
- com.azure.resourcemanager.streamanalytics.fluent.models.EventHubStreamInputDataSourceProperties
-
public final class EventHubStreamInputDataSourceProperties extends EventHubDataSourceProperties
The properties that are associated with a Event Hub input containing stream data.
-
-
Constructor Summary
Constructors Constructor Description EventHubStreamInputDataSourceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
consumerGroupName()
Get the consumerGroupName property: The name of an Event Hub Consumer Group that should be used to read events from the Event Hub.void
validate()
Validates the instance.EventHubStreamInputDataSourceProperties
withAuthenticationMode(AuthenticationMode authenticationMode)
Set the authenticationMode property: Authentication Mode.EventHubStreamInputDataSourceProperties
withConsumerGroupName(String consumerGroupName)
Set the consumerGroupName property: The name of an Event Hub Consumer Group that should be used to read events from the Event Hub.EventHubStreamInputDataSourceProperties
withEventHubName(String eventHubName)
Set the eventHubName property: The name of the Event Hub.EventHubStreamInputDataSourceProperties
withServiceBusNamespace(String serviceBusNamespace)
Set the serviceBusNamespace property: The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.EventHubStreamInputDataSourceProperties
withSharedAccessPolicyKey(String sharedAccessPolicyKey)
Set the sharedAccessPolicyKey property: The shared access policy key for the specified shared access policy.EventHubStreamInputDataSourceProperties
withSharedAccessPolicyName(String sharedAccessPolicyName)
Set the sharedAccessPolicyName property: The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc.-
Methods inherited from class com.azure.resourcemanager.streamanalytics.models.EventHubDataSourceProperties
eventHubName
-
Methods inherited from class com.azure.resourcemanager.streamanalytics.models.ServiceBusDataSourceProperties
authenticationMode, serviceBusNamespace, sharedAccessPolicyKey, sharedAccessPolicyName
-
-
-
-
Method Detail
-
consumerGroupName
public String consumerGroupName()
Get the consumerGroupName property: The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group.- Returns:
- the consumerGroupName value.
-
withConsumerGroupName
public EventHubStreamInputDataSourceProperties withConsumerGroupName(String consumerGroupName)
Set the consumerGroupName property: The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group.- Parameters:
consumerGroupName
- the consumerGroupName value to set.- Returns:
- the EventHubStreamInputDataSourceProperties object itself.
-
withEventHubName
public EventHubStreamInputDataSourceProperties withEventHubName(String eventHubName)
Set the eventHubName property: The name of the Event Hub. Required on PUT (CreateOrReplace) requests.- Overrides:
withEventHubName
in classEventHubDataSourceProperties
- Parameters:
eventHubName
- the eventHubName value to set.- Returns:
- the EventHubDataSourceProperties object itself.
-
withServiceBusNamespace
public EventHubStreamInputDataSourceProperties withServiceBusNamespace(String serviceBusNamespace)
Set the serviceBusNamespace property: The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.- Overrides:
withServiceBusNamespace
in classEventHubDataSourceProperties
- Parameters:
serviceBusNamespace
- the serviceBusNamespace value to set.- Returns:
- the ServiceBusDataSourceProperties object itself.
-
withSharedAccessPolicyName
public EventHubStreamInputDataSourceProperties withSharedAccessPolicyName(String sharedAccessPolicyName)
Set the sharedAccessPolicyName property: The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.- Overrides:
withSharedAccessPolicyName
in classEventHubDataSourceProperties
- Parameters:
sharedAccessPolicyName
- the sharedAccessPolicyName value to set.- Returns:
- the ServiceBusDataSourceProperties object itself.
-
withSharedAccessPolicyKey
public EventHubStreamInputDataSourceProperties withSharedAccessPolicyKey(String sharedAccessPolicyKey)
Set the sharedAccessPolicyKey property: The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.- Overrides:
withSharedAccessPolicyKey
in classEventHubDataSourceProperties
- Parameters:
sharedAccessPolicyKey
- the sharedAccessPolicyKey value to set.- Returns:
- the ServiceBusDataSourceProperties object itself.
-
withAuthenticationMode
public EventHubStreamInputDataSourceProperties withAuthenticationMode(AuthenticationMode authenticationMode)
Set the authenticationMode property: Authentication Mode.- Overrides:
withAuthenticationMode
in classEventHubDataSourceProperties
- Parameters:
authenticationMode
- the authenticationMode value to set.- Returns:
- the ServiceBusDataSourceProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classEventHubDataSourceProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-