Class EventHubDataSourceProperties
- java.lang.Object
-
- com.azure.resourcemanager.streamanalytics.models.ServiceBusDataSourceProperties
-
- com.azure.resourcemanager.streamanalytics.models.EventHubDataSourceProperties
-
- Direct Known Subclasses:
EventHubOutputDataSourceProperties
,EventHubStreamInputDataSourceProperties
public class EventHubDataSourceProperties extends ServiceBusDataSourceProperties
The common properties that are associated with Event Hub data sources.
-
-
Constructor Summary
Constructors Constructor Description EventHubDataSourceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
eventHubName()
Get the eventHubName property: The name of the Event Hub.void
validate()
Validates the instance.EventHubDataSourceProperties
withAuthenticationMode(AuthenticationMode authenticationMode)
Set the authenticationMode property: Authentication Mode.EventHubDataSourceProperties
withEventHubName(String eventHubName)
Set the eventHubName property: The name of the Event Hub.EventHubDataSourceProperties
withServiceBusNamespace(String serviceBusNamespace)
Set the serviceBusNamespace property: The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc.EventHubDataSourceProperties
withSharedAccessPolicyKey(String sharedAccessPolicyKey)
Set the sharedAccessPolicyKey property: The shared access policy key for the specified shared access policy.EventHubDataSourceProperties
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.ServiceBusDataSourceProperties
authenticationMode, serviceBusNamespace, sharedAccessPolicyKey, sharedAccessPolicyName
-
-
-
-
Method Detail
-
eventHubName
public String eventHubName()
Get the eventHubName property: The name of the Event Hub. Required on PUT (CreateOrReplace) requests.- Returns:
- the eventHubName value.
-
withEventHubName
public EventHubDataSourceProperties withEventHubName(String eventHubName)
Set the eventHubName property: The name of the Event Hub. Required on PUT (CreateOrReplace) requests.- Parameters:
eventHubName
- the eventHubName value to set.- Returns:
- the EventHubDataSourceProperties object itself.
-
withServiceBusNamespace
public EventHubDataSourceProperties 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 classServiceBusDataSourceProperties
- Parameters:
serviceBusNamespace
- the serviceBusNamespace value to set.- Returns:
- the ServiceBusDataSourceProperties object itself.
-
withSharedAccessPolicyName
public EventHubDataSourceProperties 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 classServiceBusDataSourceProperties
- Parameters:
sharedAccessPolicyName
- the sharedAccessPolicyName value to set.- Returns:
- the ServiceBusDataSourceProperties object itself.
-
withSharedAccessPolicyKey
public EventHubDataSourceProperties 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 classServiceBusDataSourceProperties
- Parameters:
sharedAccessPolicyKey
- the sharedAccessPolicyKey value to set.- Returns:
- the ServiceBusDataSourceProperties object itself.
-
withAuthenticationMode
public EventHubDataSourceProperties withAuthenticationMode(AuthenticationMode authenticationMode)
Set the authenticationMode property: Authentication Mode.- Overrides:
withAuthenticationMode
in classServiceBusDataSourceProperties
- Parameters:
authenticationMode
- the authenticationMode value to set.- Returns:
- the ServiceBusDataSourceProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classServiceBusDataSourceProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-