CaptureIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.eventhubs.models.CaptureIdentity

Implements

public final class CaptureIdentity
implements JsonSerializable<CaptureIdentity>

A value that indicates whether capture description is enabled.

Constructor Summary

Constructor Description
CaptureIdentity()

Creates an instance of CaptureIdentity class.

Method Summary

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

Reads an instance of CaptureIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
CaptureIdentityType type()

Get the type property: Type of Azure Active Directory Managed Identity.

String userAssignedIdentity()

Get the userAssignedIdentity property: ARM ID of Managed User Identity.

void validate()

Validates the instance.

CaptureIdentity withType(CaptureIdentityType type)

Set the type property: Type of Azure Active Directory Managed Identity.

CaptureIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: ARM ID of Managed User Identity.

Methods inherited from java.lang.Object

Constructor Details

CaptureIdentity

public CaptureIdentity()

Creates an instance of CaptureIdentity class.

Method Details

fromJson

public static CaptureIdentity fromJson(JsonReader jsonReader)

Reads an instance of CaptureIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the CaptureIdentity.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public CaptureIdentityType type()

Get the type property: Type of Azure Active Directory Managed Identity.

Returns:

the type value.

userAssignedIdentity

public String userAssignedIdentity()

Get the userAssignedIdentity property: ARM ID of Managed User Identity. This property is required is the type is UserAssignedIdentity. If type is SystemAssigned, then the System Assigned Identity Associated with the namespace will be used.

Returns:

the userAssignedIdentity value.

validate

public void validate()

Validates the instance.

withType

public CaptureIdentity withType(CaptureIdentityType type)

Set the type property: Type of Azure Active Directory Managed Identity.

Parameters:

type - the type value to set.

Returns:

the CaptureIdentity object itself.

withUserAssignedIdentity

public CaptureIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: ARM ID of Managed User Identity. This property is required is the type is UserAssignedIdentity. If type is SystemAssigned, then the System Assigned Identity Associated with the namespace will be used.

Parameters:

userAssignedIdentity - the userAssignedIdentity value to set.

Returns:

the CaptureIdentity object itself.

Applies to