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