Class EventHub
java.lang.Object
com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResourceProperties
com.azure.resourcemanager.digitaltwins.models.EventHub
Properties related to EventHub.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the connectionStringPrimaryKey property: PrimaryConnectionString of the endpoint for key-based authentication.Get the connectionStringSecondaryKey property: SecondaryConnectionString of the endpoint for key-based authentication.Get the endpointUri property: The URL of the EventHub namespace for identity-based authentication.Get the entityPath property: The EventHub name in the EventHub namespace for identity-based authentication.void
validate()
Validates the instance.withAuthenticationType
(AuthenticationType authenticationType) Set the authenticationType property: Specifies the authentication type being used for connecting to the endpoint.withConnectionStringPrimaryKey
(String connectionStringPrimaryKey) Set the connectionStringPrimaryKey property: PrimaryConnectionString of the endpoint for key-based authentication.withConnectionStringSecondaryKey
(String connectionStringSecondaryKey) Set the connectionStringSecondaryKey property: SecondaryConnectionString of the endpoint for key-based authentication.withDeadLetterSecret
(String deadLetterSecret) Set the deadLetterSecret property: Dead letter storage secret for key-based authentication.withDeadLetterUri
(String deadLetterUri) Set the deadLetterUri property: Dead letter storage URL for identity-based authentication.withEndpointUri
(String endpointUri) Set the endpointUri property: The URL of the EventHub namespace for identity-based authentication.withEntityPath
(String entityPath) Set the entityPath property: The EventHub name in the EventHub namespace for identity-based authentication.Methods inherited from class com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResourceProperties
authenticationType, createdTime, deadLetterSecret, deadLetterUri, provisioningState
-
Constructor Details
-
EventHub
public EventHub()
-
-
Method Details
-
connectionStringPrimaryKey
Get the connectionStringPrimaryKey property: PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.- Returns:
- the connectionStringPrimaryKey value.
-
withConnectionStringPrimaryKey
Set the connectionStringPrimaryKey property: PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.- Parameters:
connectionStringPrimaryKey
- the connectionStringPrimaryKey value to set.- Returns:
- the EventHub object itself.
-
connectionStringSecondaryKey
Get the connectionStringSecondaryKey property: SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.- Returns:
- the connectionStringSecondaryKey value.
-
withConnectionStringSecondaryKey
Set the connectionStringSecondaryKey property: SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.- Parameters:
connectionStringSecondaryKey
- the connectionStringSecondaryKey value to set.- Returns:
- the EventHub object itself.
-
endpointUri
Get the endpointUri property: The URL of the EventHub namespace for identity-based authentication. It must include the protocol 'sb://'.- Returns:
- the endpointUri value.
-
withEndpointUri
Set the endpointUri property: The URL of the EventHub namespace for identity-based authentication. It must include the protocol 'sb://'.- Parameters:
endpointUri
- the endpointUri value to set.- Returns:
- the EventHub object itself.
-
entityPath
Get the entityPath property: The EventHub name in the EventHub namespace for identity-based authentication.- Returns:
- the entityPath value.
-
withEntityPath
Set the entityPath property: The EventHub name in the EventHub namespace for identity-based authentication.- Parameters:
entityPath
- the entityPath value to set.- Returns:
- the EventHub object itself.
-
withAuthenticationType
Set the authenticationType property: Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.- Overrides:
withAuthenticationType
in classDigitalTwinsEndpointResourceProperties
- Parameters:
authenticationType
- the authenticationType value to set.- Returns:
- the DigitalTwinsEndpointResourceProperties object itself.
-
withDeadLetterSecret
Set the deadLetterSecret property: Dead letter storage secret for key-based authentication. Will be obfuscated during read.- Overrides:
withDeadLetterSecret
in classDigitalTwinsEndpointResourceProperties
- Parameters:
deadLetterSecret
- the deadLetterSecret value to set.- Returns:
- the DigitalTwinsEndpointResourceProperties object itself.
-
withDeadLetterUri
Set the deadLetterUri property: Dead letter storage URL for identity-based authentication.- Overrides:
withDeadLetterUri
in classDigitalTwinsEndpointResourceProperties
- Parameters:
deadLetterUri
- the deadLetterUri value to set.- Returns:
- the DigitalTwinsEndpointResourceProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classDigitalTwinsEndpointResourceProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-