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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LifecycleHooksProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LifecycleHooksProfile from the JsonReader.Get the lifecycleHooks property: Specifies the lifecycle hooks configured for the virtual machine scale set.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLifecycleHooks(List<LifecycleHook> lifecycleHooks) Set the lifecycleHooks property: Specifies the lifecycle hooks configured for the virtual machine scale set.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LifecycleHooksProfile
public LifecycleHooksProfile()Creates an instance of LifecycleHooksProfile class.
-
-
Method Details
-
lifecycleHooks
Get the lifecycleHooks property: Specifies the lifecycle hooks configured for the virtual machine scale set.- Returns:
- the lifecycleHooks value.
-
withLifecycleHooks
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
- Specified by:
toJsonin interfacecom.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.
-