SessionRecordingIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.SessionRecordingIdentity

Implements

public final class SessionRecordingIdentity
implements JsonSerializable<SessionRecordingIdentity>

The identity to use for accessing the blob container where recordings will be stored.

Constructor Summary

Constructor Description
SessionRecordingIdentity()

Creates an instance of SessionRecordingIdentity class.

Method Summary

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

Reads an instance of SessionRecordingIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
SessionRecordingIdentityType type()

Get the type property: The type of identity to use.

String userAssignedIdentityId()

Get the userAssignedIdentityId property: User assigned identity to use for accessing blob container Uri.

void validate()

Validates the instance.

SessionRecordingIdentity withType(SessionRecordingIdentityType type)

Set the type property: The type of identity to use.

SessionRecordingIdentity withUserAssignedIdentityId(String userAssignedIdentityId)

Set the userAssignedIdentityId property: User assigned identity to use for accessing blob container Uri.

Methods inherited from java.lang.Object

Constructor Details

SessionRecordingIdentity

public SessionRecordingIdentity()

Creates an instance of SessionRecordingIdentity class.

Method Details

fromJson

public static SessionRecordingIdentity fromJson(JsonReader jsonReader)

Reads an instance of SessionRecordingIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SessionRecordingIdentity 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 SessionRecordingIdentityType type()

Get the type property: The type of identity to use.

Returns:

the type value.

userAssignedIdentityId

public String userAssignedIdentityId()

Get the userAssignedIdentityId property: User assigned identity to use for accessing blob container Uri. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identity type systemAssigned.

Returns:

the userAssignedIdentityId value.

validate

public void validate()

Validates the instance.

withType

public SessionRecordingIdentity withType(SessionRecordingIdentityType type)

Set the type property: The type of identity to use.

Parameters:

type - the type value to set.

Returns:

the SessionRecordingIdentity object itself.

withUserAssignedIdentityId

public SessionRecordingIdentity withUserAssignedIdentityId(String userAssignedIdentityId)

Set the userAssignedIdentityId property: User assigned identity to use for accessing blob container Uri. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identity type systemAssigned.

Parameters:

userAssignedIdentityId - the userAssignedIdentityId value to set.

Returns:

the SessionRecordingIdentity object itself.

Applies to