EventHub Class
- java.
lang. Object - com.
azure. resourcemanager. digitaltwins. models. DigitalTwinsEndpointResourceProperties - com.
azure. resourcemanager. digitaltwins. models. EventHub
- com.
- com.
public final class EventHub
extends DigitalTwinsEndpointResourceProperties
Properties related to EventHub.
Constructor Summary
| Constructor | Description |
|---|---|
| EventHub() |
Creates an instance of Event |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
connectionStringPrimaryKey()
Get the connection |
| String |
connectionStringSecondaryKey()
Get the connection |
|
Offset |
createdTime()
Get the created |
|
Endpoint |
endpointType()
Get the endpoint |
| String |
endpointUri()
Get the endpoint |
| String |
entityPath()
Get the entity |
|
static
Event |
fromJson(JsonReader jsonReader)
Reads an instance of Event |
|
Endpoint |
provisioningState()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Event |
withAuthenticationType(AuthenticationType authenticationType)
Set the authentication |
|
Event |
withConnectionStringPrimaryKey(String connectionStringPrimaryKey)
Set the connection |
|
Event |
withConnectionStringSecondaryKey(String connectionStringSecondaryKey)
Set the connection |
|
Event |
withDeadLetterSecret(String deadLetterSecret)
Set the dead |
|
Event |
withDeadLetterUri(String deadLetterUri)
Set the dead |
|
Event |
withEndpointUri(String endpointUri)
Set the endpoint |
|
Event |
withEntityPath(String entityPath)
Set the entity |
|
Event |
withIdentity(ManagedIdentityReference identity)
Set the identity property: Managed identity properties for the endpoint. |
Methods inherited from DigitalTwinsEndpointResourceProperties
Methods inherited from java.lang.Object
Constructor Details
EventHub
public EventHub()
Creates an instance of EventHub class.
Method Details
connectionStringPrimaryKey
public String connectionStringPrimaryKey()
Get the connectionStringPrimaryKey property: PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.
Returns:
connectionStringSecondaryKey
public String connectionStringSecondaryKey()
Get the connectionStringSecondaryKey property: SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.
Returns:
createdTime
public OffsetDateTime createdTime()
Get the createdTime property: Time when the Endpoint was added to DigitalTwinsInstance.
Overrides:
EventHub.createdTime()Returns:
endpointType
public EndpointType endpointType()
Get the endpointType property: The type of Digital Twins endpoint.
Overrides:
EventHub.endpointType()Returns:
endpointUri
public String endpointUri()
Get the endpointUri property: The URL of the EventHub namespace for identity-based authentication. It must include the protocol 'sb://'.
Returns:
entityPath
public String entityPath()
Get the entityPath property: The EventHub name in the EventHub namespace for identity-based authentication.
Returns:
fromJson
public static EventHub fromJson(JsonReader jsonReader)
Reads an instance of EventHub from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public EndpointProvisioningState provisioningState()
Get the provisioningState property: The provisioning state.
Overrides:
EventHub.provisioningState()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
EventHub.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
EventHub.validate()withAuthenticationType
public EventHub withAuthenticationType(AuthenticationType authenticationType)
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:
EventHub.withAuthenticationType(AuthenticationType authenticationType)Parameters:
withConnectionStringPrimaryKey
public EventHub withConnectionStringPrimaryKey(String connectionStringPrimaryKey)
Set the connectionStringPrimaryKey property: PrimaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.
Parameters:
Returns:
withConnectionStringSecondaryKey
public EventHub withConnectionStringSecondaryKey(String connectionStringSecondaryKey)
Set the connectionStringSecondaryKey property: SecondaryConnectionString of the endpoint for key-based authentication. Will be obfuscated during read.
Parameters:
Returns:
withDeadLetterSecret
public EventHub withDeadLetterSecret(String deadLetterSecret)
Set the deadLetterSecret property: Dead letter storage secret for key-based authentication. Will be obfuscated during read.
Overrides:
EventHub.withDeadLetterSecret(String deadLetterSecret)Parameters:
withDeadLetterUri
public EventHub withDeadLetterUri(String deadLetterUri)
Set the deadLetterUri property: Dead letter storage URL for identity-based authentication.
Overrides:
EventHub.withDeadLetterUri(String deadLetterUri)Parameters:
withEndpointUri
public EventHub withEndpointUri(String endpointUri)
Set the endpointUri property: The URL of the EventHub namespace for identity-based authentication. It must include the protocol 'sb://'.
Parameters:
Returns:
withEntityPath
public EventHub withEntityPath(String entityPath)
Set the entityPath property: The EventHub name in the EventHub namespace for identity-based authentication.
Parameters:
Returns:
withIdentity
public EventHub withIdentity(ManagedIdentityReference identity)
Set the identity property: Managed identity properties for the endpoint.
Overrides:
EventHub.withIdentity(ManagedIdentityReference identity)Parameters: