VMScaleSetLifecycleHookEventTargetResource Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VMScaleSetLifecycleHookEventTargetResource
- com.
Implements
public final class VMScaleSetLifecycleHookEventTargetResource
implements JsonSerializable<VMScaleSetLifecycleHookEventTargetResource>
Define a single target ARM resource in a virtual machine scale set lifecycle hook event. Currently, this can be a virtual machine scale set resource or an individual virtual machine resource within a VMScaleSet.
Constructor Summary
| Constructor | Description |
|---|---|
| VMScaleSetLifecycleHookEventTargetResource() |
Creates an instance of VMScale |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Lifecycle |
actionState()
Get the action |
|
static
VMScale |
fromJson(JsonReader jsonReader)
Reads an instance of VMScale |
|
Api |
resource()
Get the resource property: Specifies the target ARM resource. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
VMScale |
withActionState(LifecycleHookActionState actionState)
Set the action |
|
VMScale |
withResource(ApiEntityReference resource)
Set the resource property: Specifies the target ARM resource. |
Methods inherited from java.lang.Object
Constructor Details
VMScaleSetLifecycleHookEventTargetResource
public VMScaleSetLifecycleHookEventTargetResource()
Creates an instance of VMScaleSetLifecycleHookEventTargetResource class.
Method Details
actionState
public LifecycleHookActionState actionState()
Get the actionState property: State of the lifecycle hook for the target resource. The customer can patch this property to move the lifecycle hook to a terminal state.
Returns:
fromJson
public static VMScaleSetLifecycleHookEventTargetResource fromJson(JsonReader jsonReader)
Reads an instance of VMScaleSetLifecycleHookEventTargetResource from the JsonReader.
Parameters:
Returns:
Throws:
resource
public ApiEntityReference resource()
Get the resource property: Specifies the target ARM resource. Currently, this can be a virtual machine scale set resource or an individual virtual machine resource within a VMScaleSet.
Returns:
toJson
validate
public void validate()
Validates the instance.
withActionState
public VMScaleSetLifecycleHookEventTargetResource withActionState(LifecycleHookActionState actionState)
Set the actionState property: State of the lifecycle hook for the target resource. The customer can patch this property to move the lifecycle hook to a terminal state.
Parameters:
Returns:
withResource
public VMScaleSetLifecycleHookEventTargetResource withResource(ApiEntityReference resource)
Set the resource property: Specifies the target ARM resource. Currently, this can be a virtual machine scale set resource or an individual virtual machine resource within a VMScaleSet.
Parameters:
Returns: