VMScaleSetLifecycleHookEventAdditionalContext Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VMScaleSetLifecycleHookEventAdditionalContext
- com.
Implements
public final class VMScaleSetLifecycleHookEventAdditionalContext
implements JsonSerializable<VMScaleSetLifecycleHookEventAdditionalContext>
Additional key-value pairs set on the lifecycle hook event that gives customer some useful context/data. The keys in this dictionary are specific to the lifecycle hook type. Different lifecycle hook events can have different sets of keys in the additional context depending on the lifecycle hook type. For example, for a lifecycle hook event with UpgradeAutoOSScheduling type, the additional context can contain the key "priority" that helps customer identify the priority of the Auto OS Upgrade operation triggered on the virtual machine scale set.
Constructor Summary
| Constructor | Description |
|---|---|
| VMScaleSetLifecycleHookEventAdditionalContext() |
Creates an instance of VMScale |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
VMScale |
fromJson(JsonReader jsonReader)
Reads an instance of VMScale |
| String |
priority()
Get the priority property: Can only be present for a lifecycle hook event of type "Upgrade |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
VMScale |
withPriority(String priority)
Set the priority property: Can only be present for a lifecycle hook event of type "Upgrade |
Methods inherited from java.lang.Object
Constructor Details
VMScaleSetLifecycleHookEventAdditionalContext
public VMScaleSetLifecycleHookEventAdditionalContext()
Creates an instance of VMScaleSetLifecycleHookEventAdditionalContext class.
Method Details
fromJson
public static VMScaleSetLifecycleHookEventAdditionalContext fromJson(JsonReader jsonReader)
Reads an instance of VMScaleSetLifecycleHookEventAdditionalContext from the JsonReader.
Parameters:
Returns:
Throws:
priority
public String priority()
Get the priority property: Can only be present for a lifecycle hook event of type "UpgradeAutoOSScheduling". Denotes the priority of the virtual machine scale set lifecycle hook event for the Auto OS Upgrade scheduled on the virtual machine scale set.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPriority
public VMScaleSetLifecycleHookEventAdditionalContext withPriority(String priority)
Set the priority property: Can only be present for a lifecycle hook event of type "UpgradeAutoOSScheduling". Denotes the priority of the virtual machine scale set lifecycle hook event for the Auto OS Upgrade scheduled on the virtual machine scale set.
Parameters:
Returns: