Class ManagedHsmSku

java.lang.Object
com.azure.resourcemanager.keyvault.models.ManagedHsmSku
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedHsmSku>

public final class ManagedHsmSku extends Object implements com.azure.json.JsonSerializable<ManagedHsmSku>
SKU details.
  • Constructor Details

    • ManagedHsmSku

      public ManagedHsmSku()
      Creates an instance of ManagedHsmSku class.
  • Method Details

    • family

      public ManagedHsmSkuFamily family()
      Get the family property: SKU Family of the managed HSM Pool.
      Returns:
      the family value.
    • withFamily

      public ManagedHsmSku withFamily(ManagedHsmSkuFamily family)
      Set the family property: SKU Family of the managed HSM Pool.
      Parameters:
      family - the family value to set.
      Returns:
      the ManagedHsmSku object itself.
    • name

      public ManagedHsmSkuName name()
      Get the name property: SKU of the managed HSM Pool.
      Returns:
      the name value.
    • withName

      public ManagedHsmSku withName(ManagedHsmSkuName name)
      Set the name property: SKU of the managed HSM Pool.
      Parameters:
      name - the name value to set.
      Returns:
      the ManagedHsmSku object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ManagedHsmSku>
      Throws:
      IOException
    • fromJson

      public static ManagedHsmSku fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedHsmSku from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedHsmSku if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ManagedHsmSku.