Class TerminateNotificationProfile
java.lang.Object
com.azure.resourcemanager.compute.models.TerminateNotificationProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TerminateNotificationProfile>
public final class TerminateNotificationProfile
extends Object
implements com.azure.json.JsonSerializable<TerminateNotificationProfile>
The TerminateNotificationProfile model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TerminateNotificationProfile class. -
Method Summary
Modifier and TypeMethodDescriptionenable()Get the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.static TerminateNotificationProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TerminateNotificationProfile from the JsonReader.Get the notBeforeTimeout property: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnable(Boolean enable) Set the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.withNotBeforeTimeout(String notBeforeTimeout) Set the notBeforeTimeout property: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out).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
-
TerminateNotificationProfile
public TerminateNotificationProfile()Creates an instance of TerminateNotificationProfile class.
-
-
Method Details
-
notBeforeTimeout
Get the notBeforeTimeout property: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M).- Returns:
- the notBeforeTimeout value.
-
withNotBeforeTimeout
Set the notBeforeTimeout property: Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M).- Parameters:
notBeforeTimeout- the notBeforeTimeout value to set.- Returns:
- the TerminateNotificationProfile object itself.
-
enable
Get the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.- Returns:
- the enable value.
-
withEnable
Set the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.- Parameters:
enable- the enable value to set.- Returns:
- the TerminateNotificationProfile 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<TerminateNotificationProfile>- Throws:
IOException
-
fromJson
public static TerminateNotificationProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TerminateNotificationProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TerminateNotificationProfile 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 TerminateNotificationProfile.
-