Share via


SAPVirtualInstanceIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.workloadssapvirtualinstance.models.SAPVirtualInstanceIdentity

Implements

public final class SAPVirtualInstanceIdentity
implements JsonSerializable<SAPVirtualInstanceIdentity>

Managed service identity (user assigned identities).

Constructor Summary

Constructor Description
SAPVirtualInstanceIdentity()

Creates an instance of SAPVirtualInstanceIdentity class.

Method Summary

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

Reads an instance of SAPVirtualInstanceIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
SAPVirtualInstanceIdentityType type()

Get the type property: The type of managed identity assigned to this resource.

Map<String,UserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: The identities assigned to this resource by the user.

void validate()

Validates the instance.

SAPVirtualInstanceIdentity withType(SAPVirtualInstanceIdentityType type)

Set the type property: The type of managed identity assigned to this resource.

SAPVirtualInstanceIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: The identities assigned to this resource by the user.

Methods inherited from java.lang.Object

Constructor Details

SAPVirtualInstanceIdentity

public SAPVirtualInstanceIdentity()

Creates an instance of SAPVirtualInstanceIdentity class.

Method Details

fromJson

public static SAPVirtualInstanceIdentity fromJson(JsonReader jsonReader)

Reads an instance of SAPVirtualInstanceIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SAPVirtualInstanceIdentity 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 SAPVirtualInstanceIdentityType type()

Get the type property: The type of managed identity assigned to this resource.

Returns:

the type value.

userAssignedIdentities

public Map<String,UserAssignedIdentity> userAssignedIdentities()

Get the userAssignedIdentities property: The identities assigned to this resource by the user.

Returns:

the userAssignedIdentities value.

validate

public void validate()

Validates the instance.

withType

public SAPVirtualInstanceIdentity withType(SAPVirtualInstanceIdentityType type)

Set the type property: The type of managed identity assigned to this resource.

Parameters:

type - the type value to set.

Returns:

the SAPVirtualInstanceIdentity object itself.

withUserAssignedIdentities

public SAPVirtualInstanceIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)

Set the userAssignedIdentities property: The identities assigned to this resource by the user.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the SAPVirtualInstanceIdentity object itself.

Applies to