다음을 통해 공유


SourceVault Class

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

Implements

public final class SourceVault
implements JsonSerializable<SourceVault>

The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}.

Constructor Summary

Constructor Description
SourceVault()

Creates an instance of SourceVault class.

Method Summary

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

Reads an instance of SourceVault from the JsonReader.

String id()

Get the id property: Resource Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SourceVault withId(String id)

Set the id property: Resource Id.

Methods inherited from java.lang.Object

Constructor Details

SourceVault

public SourceVault()

Creates an instance of SourceVault class.

Method Details

fromJson

public static SourceVault fromJson(JsonReader jsonReader)

Reads an instance of SourceVault from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource Id.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public SourceVault withId(String id)

Set the id property: Resource Id.

Parameters:

id - the id value to set.

Returns:

the SourceVault object itself.

Applies to