Class CaptureIdentity

java.lang.Object
com.azure.resourcemanager.eventhubs.models.CaptureIdentity
All Implemented Interfaces:
com.azure.json.JsonSerializable<CaptureIdentity>

public final class CaptureIdentity extends Object implements com.azure.json.JsonSerializable<CaptureIdentity>
A value that indicates whether capture description is enabled.
  • Constructor Details

    • CaptureIdentity

      public CaptureIdentity()
      Creates an instance of CaptureIdentity class.
  • Method Details

    • type

      public CaptureIdentityType type()
      Get the type property: Type of Azure Active Directory Managed Identity.
      Returns:
      the type value.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CaptureIdentity>
      Throws:
      IOException
    • fromJson

      public static CaptureIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.