EncryptionPropertiesIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.loadtesting.models.EncryptionPropertiesIdentity

Implements

public final class EncryptionPropertiesIdentity
implements JsonSerializable<EncryptionPropertiesIdentity>

All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.

Constructor Summary

Constructor Description
EncryptionPropertiesIdentity()

Creates an instance of EncryptionPropertiesIdentity class.

Method Summary

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

Reads an instance of EncryptionPropertiesIdentity from the JsonReader.

String resourceId()

Get the resourceId property: User assigned identity to use for accessing key encryption key Url.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

Get the type property: Managed identity type to use for accessing encryption key Url.

void validate()

Validates the instance.

EncryptionPropertiesIdentity withResourceId(String resourceId)

Set the resourceId property: User assigned identity to use for accessing key encryption key Url.

EncryptionPropertiesIdentity withType(Type type)

Set the type property: Managed identity type to use for accessing encryption key Url.

Methods inherited from java.lang.Object

Constructor Details

EncryptionPropertiesIdentity

public EncryptionPropertiesIdentity()

Creates an instance of EncryptionPropertiesIdentity class.

Method Details

fromJson

public static EncryptionPropertiesIdentity fromJson(JsonReader jsonReader)

Reads an instance of EncryptionPropertiesIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EncryptionPropertiesIdentity 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 EncryptionPropertiesIdentity.

resourceId

public String resourceId()

Get the resourceId property: User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

Get the type property: Managed identity type to use for accessing encryption key Url.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withResourceId

public EncryptionPropertiesIdentity withResourceId(String resourceId)

Set the resourceId property: User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId.

Parameters:

resourceId - the resourceId value to set.

Returns:

the EncryptionPropertiesIdentity object itself.

withType

public EncryptionPropertiesIdentity withType(Type type)

Set the type property: Managed identity type to use for accessing encryption key Url.

Parameters:

type - the type value to set.

Returns:

the EncryptionPropertiesIdentity object itself.

Applies to