TerminateNotificationProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. TerminateNotificationProfile
- com.
Implements
public final class TerminateNotificationProfile
implements JsonSerializable<TerminateNotificationProfile>
The TerminateNotificationProfile model.
Constructor Summary
Constructor | Description |
---|---|
TerminateNotificationProfile() |
Creates an instance of Terminate |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enable()
Get the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled. |
static
Terminate |
fromJson(JsonReader jsonReader)
Reads an instance of Terminate |
String |
notBeforeTimeout()
Get the not |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Terminate |
withEnable(Boolean enable)
Set the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled. |
Terminate |
withNotBeforeTimeout(String notBeforeTimeout)
Set the not |
Methods inherited from java.lang.Object
Constructor Details
TerminateNotificationProfile
public TerminateNotificationProfile()
Creates an instance of TerminateNotificationProfile class.
Method Details
enable
public Boolean enable()
Get the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.
Returns:
fromJson
public static TerminateNotificationProfile fromJson(JsonReader jsonReader)
Reads an instance of TerminateNotificationProfile from the JsonReader.
Parameters:
Returns:
Throws:
notBeforeTimeout
public String 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:
toJson
validate
public void validate()
Validates the instance.
withEnable
public TerminateNotificationProfile withEnable(Boolean enable)
Set the enable property: Specifies whether the Terminate Scheduled event is enabled or disabled.
Parameters:
Returns:
withNotBeforeTimeout
public TerminateNotificationProfile 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). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M).
Parameters:
Returns:
Applies to
Azure SDK for Java