Class EventGrid
- java.lang.Object
-
- com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResourceProperties
-
- com.azure.resourcemanager.digitaltwins.models.EventGrid
-
public final class EventGrid extends DigitalTwinsEndpointResourceProperties
Properties related to EventGrid.
-
-
Constructor Summary
Constructors Constructor Description EventGrid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
accessKey1()
Get the accessKey1 property: EventGrid secondary accesskey.String
accessKey2()
Get the accessKey2 property: EventGrid secondary accesskey.String
topicEndpoint()
Get the topicEndpoint property: EventGrid Topic Endpoint.void
validate()
Validates the instance.EventGrid
withAccessKey1(String accessKey1)
Set the accessKey1 property: EventGrid secondary accesskey.EventGrid
withAccessKey2(String accessKey2)
Set the accessKey2 property: EventGrid secondary accesskey.EventGrid
withAuthenticationType(AuthenticationType authenticationType)
Set the authenticationType property: Specifies the authentication type being used for connecting to the endpoint.EventGrid
withDeadLetterSecret(String deadLetterSecret)
Set the deadLetterSecret property: Dead letter storage secret for key-based authentication.EventGrid
withDeadLetterUri(String deadLetterUri)
Set the deadLetterUri property: Dead letter storage URL for identity-based authentication.EventGrid
withTopicEndpoint(String topicEndpoint)
Set the topicEndpoint property: EventGrid Topic Endpoint.-
Methods inherited from class com.azure.resourcemanager.digitaltwins.models.DigitalTwinsEndpointResourceProperties
authenticationType, createdTime, deadLetterSecret, deadLetterUri, provisioningState
-
-
-
-
Method Detail
-
topicEndpoint
public String topicEndpoint()
Get the topicEndpoint property: EventGrid Topic Endpoint.- Returns:
- the topicEndpoint value.
-
withTopicEndpoint
public EventGrid withTopicEndpoint(String topicEndpoint)
Set the topicEndpoint property: EventGrid Topic Endpoint.- Parameters:
topicEndpoint
- the topicEndpoint value to set.- Returns:
- the EventGrid object itself.
-
accessKey1
public String accessKey1()
Get the accessKey1 property: EventGrid secondary accesskey. Will be obfuscated during read.- Returns:
- the accessKey1 value.
-
withAccessKey1
public EventGrid withAccessKey1(String accessKey1)
Set the accessKey1 property: EventGrid secondary accesskey. Will be obfuscated during read.- Parameters:
accessKey1
- the accessKey1 value to set.- Returns:
- the EventGrid object itself.
-
accessKey2
public String accessKey2()
Get the accessKey2 property: EventGrid secondary accesskey. Will be obfuscated during read.- Returns:
- the accessKey2 value.
-
withAccessKey2
public EventGrid withAccessKey2(String accessKey2)
Set the accessKey2 property: EventGrid secondary accesskey. Will be obfuscated during read.- Parameters:
accessKey2
- the accessKey2 value to set.- Returns:
- the EventGrid object itself.
-
withAuthenticationType
public EventGrid 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:
withAuthenticationType
in classDigitalTwinsEndpointResourceProperties
- Parameters:
authenticationType
- the authenticationType value to set.- Returns:
- the DigitalTwinsEndpointResourceProperties object itself.
-
withDeadLetterSecret
public EventGrid withDeadLetterSecret(String deadLetterSecret)
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
public EventGrid withDeadLetterUri(String deadLetterUri)
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.
-
-