Share via


CustomWebhookAuthenticationManagedIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.CustomWebhookAuthenticationManagedIdentity

Implements

public final class CustomWebhookAuthenticationManagedIdentity
implements JsonSerializable<CustomWebhookAuthenticationManagedIdentity>

The identity configuration required for authenticating a custom webhook.

Constructor Summary

Constructor Description
CustomWebhookAuthenticationManagedIdentity()

Creates an instance of CustomWebhookAuthenticationManagedIdentity class.

Method Summary

Modifier and Type Method and Description
static CustomWebhookAuthenticationManagedIdentity fromJson(JsonReader jsonReader)

Reads an instance of CustomWebhookAuthenticationManagedIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
CustomWebhookAuthenticationManagedIdentityType type()

Get the type property: The type of managed identity used.

String userAssignedIdentity()

Get the userAssignedIdentity property: The user identity associated with the resource.

void validate()

Validates the instance.

CustomWebhookAuthenticationManagedIdentity withType(CustomWebhookAuthenticationManagedIdentityType type)

Set the type property: The type of managed identity used.

CustomWebhookAuthenticationManagedIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The user identity associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

CustomWebhookAuthenticationManagedIdentity

public CustomWebhookAuthenticationManagedIdentity()

Creates an instance of CustomWebhookAuthenticationManagedIdentity class.

Method Details

fromJson

public static CustomWebhookAuthenticationManagedIdentity fromJson(JsonReader jsonReader)

Reads an instance of CustomWebhookAuthenticationManagedIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomWebhookAuthenticationManagedIdentity 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public CustomWebhookAuthenticationManagedIdentityType type()

Get the type property: The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.

Returns:

the type value.

userAssignedIdentity

public String userAssignedIdentity()

Get the userAssignedIdentity property: The user identity associated with the resource.

Returns:

the userAssignedIdentity value.

validate

public void validate()

Validates the instance.

withType

public CustomWebhookAuthenticationManagedIdentity withType(CustomWebhookAuthenticationManagedIdentityType type)

Set the type property: The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.

Parameters:

type - the type value to set.

Returns:

the CustomWebhookAuthenticationManagedIdentity object itself.

withUserAssignedIdentity

public CustomWebhookAuthenticationManagedIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The user identity associated with the resource.

Parameters:

userAssignedIdentity - the userAssignedIdentity value to set.

Returns:

the CustomWebhookAuthenticationManagedIdentity object itself.

Applies to