Class ScheduledEventsProfile
java.lang.Object
com.azure.resourcemanager.compute.models.ScheduledEventsProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScheduledEventsProfile>
public final class ScheduledEventsProfile
extends Object
implements com.azure.json.JsonSerializable<ScheduledEventsProfile>
The ScheduledEventsProfile model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ScheduledEventsProfile class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledEventsProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScheduledEventsProfile from the JsonReader.Get the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.Get the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOsImageNotificationProfile(OSImageNotificationProfile osImageNotificationProfile) Set the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.withTerminateNotificationProfile(TerminateNotificationProfile terminateNotificationProfile) Set the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.Methods inherited from class java.lang.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
-
ScheduledEventsProfile
public ScheduledEventsProfile()Creates an instance of ScheduledEventsProfile class.
-
-
Method Details
-
terminateNotificationProfile
Get the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.- Returns:
- the terminateNotificationProfile value.
-
withTerminateNotificationProfile
public ScheduledEventsProfile withTerminateNotificationProfile(TerminateNotificationProfile terminateNotificationProfile) Set the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.- Parameters:
terminateNotificationProfile- the terminateNotificationProfile value to set.- Returns:
- the ScheduledEventsProfile object itself.
-
osImageNotificationProfile
Get the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.- Returns:
- the osImageNotificationProfile value.
-
withOsImageNotificationProfile
public ScheduledEventsProfile withOsImageNotificationProfile(OSImageNotificationProfile osImageNotificationProfile) Set the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.- Parameters:
osImageNotificationProfile- the osImageNotificationProfile value to set.- Returns:
- the ScheduledEventsProfile 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<ScheduledEventsProfile>- Throws:
IOException
-
fromJson
public static ScheduledEventsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ScheduledEventsProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ScheduledEventsProfile 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 ScheduledEventsProfile.
-