ManagedHsmResource Class

public class ManagedHsmResource
extends Resource

Managed HSM resource.

Constructor Summary

Constructor Description
ManagedHsmResource()

Creates an instance of ManagedHsmResource class.

Method Summary

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

Reads an instance of ManagedHsmResource from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ManagedServiceIdentity identity()

Get the identity property: Managed service identity (system assigned and/or user assigned identities).

String name()

Get the name property: The name of the resource.

ManagedHsmSku sku()

Get the sku property: SKU details.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the key vault resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ManagedHsmResource withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed service identity (system assigned and/or user assigned identities).

ManagedHsmResource withLocation(String location)
ManagedHsmResource withSku(ManagedHsmSku sku)

Set the sku property: SKU details.

ManagedHsmResource withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ManagedHsmResource

public ManagedHsmResource()

Creates an instance of ManagedHsmResource class.

Method Details

fromJson

public static ManagedHsmResource fromJson(JsonReader jsonReader)

Reads an instance of ManagedHsmResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ManagedHsmResource.id()

Returns:

the id value.

identity

public ManagedServiceIdentity identity()

Get the identity property: Managed service identity (system assigned and/or user assigned identities).

Returns:

the identity value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagedHsmResource.name()

Returns:

the name value.

sku

public ManagedHsmSku sku()

Get the sku property: SKU details.

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the key vault resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedHsmResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagedHsmResource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withIdentity

public ManagedHsmResource withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed service identity (system assigned and/or user assigned identities).

Parameters:

identity - the identity value to set.

Returns:

the ManagedHsmResource object itself.

withLocation

public ManagedHsmResource withLocation(String location)

Overrides:

ManagedHsmResource.withLocation(String location)

Parameters:

location

withSku

public ManagedHsmResource withSku(ManagedHsmSku sku)

Set the sku property: SKU details.

Parameters:

sku - the sku value to set.

Returns:

the ManagedHsmResource object itself.

withTags

public ManagedHsmResource withTags(Map tags)

Overrides:

ManagedHsmResource.withTags(Map<String,String> tags)

Parameters:

tags

Applies to