Delen via


CloudServiceVaultAndSecretReference Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.CloudServiceVaultAndSecretReference

Implements

public final class CloudServiceVaultAndSecretReference
implements JsonSerializable<CloudServiceVaultAndSecretReference>

Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance.

Constructor Summary

Constructor Description
CloudServiceVaultAndSecretReference()

Creates an instance of CloudServiceVaultAndSecretReference class.

Method Summary

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

Reads an instance of CloudServiceVaultAndSecretReference from the JsonReader.

String secretUrl()

Get the secretUrl property: Secret URL which contains the protected settings of the extension.

SubResource sourceVault()

Get the sourceVault property: The ARM Resource ID of the Key Vault.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudServiceVaultAndSecretReference withSecretUrl(String secretUrl)

Set the secretUrl property: Secret URL which contains the protected settings of the extension.

CloudServiceVaultAndSecretReference withSourceVault(SubResource sourceVault)

Set the sourceVault property: The ARM Resource ID of the Key Vault.

Methods inherited from java.lang.Object

Constructor Details

CloudServiceVaultAndSecretReference

public CloudServiceVaultAndSecretReference()

Creates an instance of CloudServiceVaultAndSecretReference class.

Method Details

fromJson

public static CloudServiceVaultAndSecretReference fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceVaultAndSecretReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

secretUrl

public String secretUrl()

Get the secretUrl property: Secret URL which contains the protected settings of the extension.

Returns:

the secretUrl value.

sourceVault

public SubResource sourceVault()

Get the sourceVault property: The ARM Resource ID of the Key Vault.

Returns:

the sourceVault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSecretUrl

public CloudServiceVaultAndSecretReference withSecretUrl(String secretUrl)

Set the secretUrl property: Secret URL which contains the protected settings of the extension.

Parameters:

secretUrl - the secretUrl value to set.

Returns:

the CloudServiceVaultAndSecretReference object itself.

withSourceVault

public CloudServiceVaultAndSecretReference withSourceVault(SubResource sourceVault)

Set the sourceVault property: The ARM Resource ID of the Key Vault.

Parameters:

sourceVault - the sourceVault value to set.

Returns:

the CloudServiceVaultAndSecretReference object itself.

Applies to