Class LifecycleHooksProfile

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

public final class LifecycleHooksProfile extends Object implements com.azure.json.JsonSerializable<LifecycleHooksProfile>
Specifies the lifecycle hooks profile for the virtual machine scale set.
  • Constructor Details

    • LifecycleHooksProfile

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

    • lifecycleHooks

      public List<LifecycleHook> lifecycleHooks()
      Get the lifecycleHooks property: Specifies the lifecycle hooks configured for the virtual machine scale set.
      Returns:
      the lifecycleHooks value.
    • withLifecycleHooks

      public LifecycleHooksProfile withLifecycleHooks(List<LifecycleHook> lifecycleHooks)
      Set the lifecycleHooks property: Specifies the lifecycle hooks configured for the virtual machine scale set.
      Parameters:
      lifecycleHooks - the lifecycleHooks value to set.
      Returns:
      the LifecycleHooksProfile 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<LifecycleHooksProfile>
      Throws:
      IOException
    • fromJson

      public static LifecycleHooksProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LifecycleHooksProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LifecycleHooksProfile 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 LifecycleHooksProfile.