Aracılığıyla paylaş


EventGrid Class

public final class EventGrid
extends DigitalTwinsEndpointResourceProperties

Properties related to EventGrid.

Constructor Summary

Constructor Description
EventGrid()

Creates an instance of EventGrid class.

Method Summary

Modifier and Type Method and Description
String accessKey1()

Get the accessKey1 property: EventGrid secondary accesskey.

String accessKey2()

Get the accessKey2 property: EventGrid secondary accesskey.

OffsetDateTime createdTime()

Get the createdTime property: Time when the Endpoint was added to DigitalTwinsInstance.

EndpointType endpointType()

Get the endpointType property: The type of Digital Twins endpoint.

static EventGrid fromJson(JsonReader jsonReader)

Reads an instance of EventGrid from the JsonReader.

EndpointProvisioningState provisioningState()

Get the provisioningState property: The provisioning state.

JsonWriter toJson(JsonWriter jsonWriter)
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 withIdentity(ManagedIdentityReference identity)

Set the identity property: Managed identity properties for the endpoint.

EventGrid withTopicEndpoint(String topicEndpoint)

Set the topicEndpoint property: EventGrid Topic Endpoint.

Methods inherited from DigitalTwinsEndpointResourceProperties

Methods inherited from java.lang.Object

Constructor Details

EventGrid

public EventGrid()

Creates an instance of EventGrid class.

Method Details

accessKey1

public String accessKey1()

Get the accessKey1 property: EventGrid secondary accesskey. Will be obfuscated during read.

Returns:

the accessKey1 value.

accessKey2

public String accessKey2()

Get the accessKey2 property: EventGrid secondary accesskey. Will be obfuscated during read.

Returns:

the accessKey2 value.

createdTime

public OffsetDateTime createdTime()

Get the createdTime property: Time when the Endpoint was added to DigitalTwinsInstance.

Overrides:

EventGrid.createdTime()

Returns:

the createdTime value.

endpointType

public EndpointType endpointType()

Get the endpointType property: The type of Digital Twins endpoint.

Overrides:

EventGrid.endpointType()

Returns:

the endpointType value.

fromJson

public static EventGrid fromJson(JsonReader jsonReader)

Reads an instance of EventGrid from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EventGrid if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

provisioningState

public EndpointProvisioningState provisioningState()

Get the provisioningState property: The provisioning state.

Overrides:

EventGrid.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

EventGrid.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

topicEndpoint

public String topicEndpoint()

Get the topicEndpoint property: EventGrid Topic Endpoint.

Returns:

the topicEndpoint value.

validate

public void validate()

Validates the instance.

Overrides:

EventGrid.validate()

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.

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:

EventGrid.withAuthenticationType(AuthenticationType authenticationType)

Parameters:

authenticationType

withDeadLetterSecret

public EventGrid withDeadLetterSecret(String deadLetterSecret)

Set the deadLetterSecret property: Dead letter storage secret for key-based authentication. Will be obfuscated during read.

Overrides:

EventGrid.withDeadLetterSecret(String deadLetterSecret)

Parameters:

deadLetterSecret

withDeadLetterUri

public EventGrid withDeadLetterUri(String deadLetterUri)

Set the deadLetterUri property: Dead letter storage URL for identity-based authentication.

Overrides:

EventGrid.withDeadLetterUri(String deadLetterUri)

Parameters:

deadLetterUri

withIdentity

public EventGrid withIdentity(ManagedIdentityReference identity)

Set the identity property: Managed identity properties for the endpoint.

Overrides:

EventGrid.withIdentity(ManagedIdentityReference identity)

Parameters:

identity

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.

Applies to