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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CaptureIdentityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CaptureIdentity from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of Azure Active Directory Managed Identity.Get the userAssignedIdentity property: ARM ID of Managed User Identity.voidvalidate()Validates the instance.withType(CaptureIdentityType type) Set the type property: Type of Azure Active Directory Managed Identity.withUserAssignedIdentity(String userAssignedIdentity) Set the userAssignedIdentity property: ARM ID of Managed User Identity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CaptureIdentity
public CaptureIdentity()Creates an instance of CaptureIdentity class.
-
-
Method Details
-
type
Get the type property: Type of Azure Active Directory Managed Identity.- Returns:
- the type value.
-
withType
Set the type property: Type of Azure Active Directory Managed Identity.- Parameters:
type- the type value to set.- Returns:
- the CaptureIdentity object itself.
-
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CaptureIdentity>- Throws:
IOException
-
fromJson
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.
-