ManagedIdentityReference Class
- java.
lang. Object - com.
azure. resourcemanager. digitaltwins. models. ManagedIdentityReference
- com.
Implements
public final class ManagedIdentityReference
implements JsonSerializable<ManagedIdentityReference>
The properties of the Managed Identity.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagedIdentityReference() |
Creates an instance of Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Identity |
type()
Get the type property: The type of managed identity used. |
| String |
userAssignedIdentity()
Get the user |
| void |
validate()
Validates the instance. |
|
Managed |
withType(IdentityType type)
Set the type property: The type of managed identity used. |
|
Managed |
withUserAssignedIdentity(String userAssignedIdentity)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
ManagedIdentityReference
public ManagedIdentityReference()
Creates an instance of ManagedIdentityReference class.
Method Details
fromJson
public static ManagedIdentityReference fromJson(JsonReader jsonReader)
Reads an instance of ManagedIdentityReference from the JsonReader.
Parameters:
Returns:
Throws:
toJson
type
public IdentityType type()
Get the type property: The type of managed identity used.
Returns:
userAssignedIdentity
public String userAssignedIdentity()
Get the userAssignedIdentity property: The user identity ARM resource id if the managed identity type is 'UserAssigned'.
Returns:
validate
public void validate()
Validates the instance.
withType
public ManagedIdentityReference withType(IdentityType type)
Set the type property: The type of managed identity used.
Parameters:
Returns:
withUserAssignedIdentity
public ManagedIdentityReference withUserAssignedIdentity(String userAssignedIdentity)
Set the userAssignedIdentity property: The user identity ARM resource id if the managed identity type is 'UserAssigned'.
Parameters:
Returns: