LifecycleHook Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. LifecycleHook
- com.
Implements
public final class LifecycleHook
implements JsonSerializable<LifecycleHook>
Describes a lifecycle hook.
Constructor Summary
| Constructor | Description |
|---|---|
| LifecycleHook() |
Creates an instance of Lifecycle |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Lifecycle |
defaultAction()
Get the default |
|
static
Lifecycle |
fromJson(JsonReader jsonReader)
Reads an instance of Lifecycle |
|
Json |
toJson(JsonWriter jsonWriter) |
|
VMScale |
type()
Get the type property: Specifies the type of the lifecycle hook. |
| void |
validate()
Validates the instance. |
| Duration |
waitDuration()
Get the wait |
|
Lifecycle |
withDefaultAction(LifecycleHookAction defaultAction)
Set the default |
|
Lifecycle |
withType(VMScaleSetLifecycleHookEventType type)
Set the type property: Specifies the type of the lifecycle hook. |
|
Lifecycle |
withWaitDuration(Duration waitDuration)
Set the wait |
Methods inherited from java.lang.Object
Constructor Details
LifecycleHook
public LifecycleHook()
Creates an instance of LifecycleHook class.
Method Details
defaultAction
public LifecycleHookAction defaultAction()
Get the defaultAction property: Specifies the action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil.
Returns:
fromJson
public static LifecycleHook fromJson(JsonReader jsonReader)
Reads an instance of LifecycleHook from the JsonReader.
Parameters:
Returns:
Throws:
toJson
type
public VMScaleSetLifecycleHookEventType type()
Get the type property: Specifies the type of the lifecycle hook.
Returns:
validate
public void validate()
Validates the instance.
waitDuration
public Duration waitDuration()
Get the waitDuration property: Specifies the time duration a virtual machine scale set lifecycle hook event sent to the customer waits for a response from the customer. It should be in ISO 8601 format.
Returns:
withDefaultAction
public LifecycleHook withDefaultAction(LifecycleHookAction defaultAction)
Set the defaultAction property: Specifies the action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil.
Parameters:
Returns:
withType
public LifecycleHook withType(VMScaleSetLifecycleHookEventType type)
Set the type property: Specifies the type of the lifecycle hook.
Parameters:
Returns:
withWaitDuration
public LifecycleHook withWaitDuration(Duration waitDuration)
Set the waitDuration property: Specifies the time duration a virtual machine scale set lifecycle hook event sent to the customer waits for a response from the customer. It should be in ISO 8601 format.
Parameters:
Returns: