LifecycleHooksProfile Class

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

Implements

public final class LifecycleHooksProfile
implements JsonSerializable<LifecycleHooksProfile>

Specifies the lifecycle hooks profile for the virtual machine scale set.

Constructor Summary

Constructor Description
LifecycleHooksProfile()

Creates an instance of LifecycleHooksProfile class.

Method Summary

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

Reads an instance of LifecycleHooksProfile from the JsonReader.

List<LifecycleHook> lifecycleHooks()

Get the lifecycleHooks property: Specifies the lifecycle hooks configured for the virtual machine scale set.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LifecycleHooksProfile withLifecycleHooks(List<LifecycleHook> lifecycleHooks)

Set the lifecycleHooks property: Specifies the lifecycle hooks configured for the virtual machine scale set.

Methods inherited from java.lang.Object

Constructor Details

LifecycleHooksProfile

public LifecycleHooksProfile()

Creates an instance of LifecycleHooksProfile class.

Method Details

fromJson

public static LifecycleHooksProfile fromJson(JsonReader jsonReader)

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.

lifecycleHooks

public List<LifecycleHook> lifecycleHooks()

Get the lifecycleHooks property: Specifies the lifecycle hooks configured for the virtual machine scale set.

Returns:

the lifecycleHooks value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

Applies to