Dela via


ScheduledEventsProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ScheduledEventsProfile

Implements

public final class ScheduledEventsProfile
implements JsonSerializable<ScheduledEventsProfile>

The ScheduledEventsProfile model.

Constructor Summary

Constructor Description
ScheduledEventsProfile()

Creates an instance of ScheduledEventsProfile class.

Method Summary

Modifier and Type Method and Description
static ScheduledEventsProfile fromJson(JsonReader jsonReader)

Reads an instance of ScheduledEventsProfile from the JsonReader.

OSImageNotificationProfile osImageNotificationProfile()

Get the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.

TerminateNotificationProfile terminateNotificationProfile()

Get the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScheduledEventsProfile withOsImageNotificationProfile(OSImageNotificationProfile osImageNotificationProfile)

Set the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.

ScheduledEventsProfile withTerminateNotificationProfile(TerminateNotificationProfile terminateNotificationProfile)

Set the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.

Methods inherited from java.lang.Object

Constructor Details

ScheduledEventsProfile

public ScheduledEventsProfile()

Creates an instance of ScheduledEventsProfile class.

Method Details

fromJson

public static ScheduledEventsProfile fromJson(JsonReader jsonReader)

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.

osImageNotificationProfile

public OSImageNotificationProfile osImageNotificationProfile()

Get the osImageNotificationProfile property: Specifies OS Image Scheduled Event related configurations.

Returns:

the osImageNotificationProfile value.

terminateNotificationProfile

public TerminateNotificationProfile terminateNotificationProfile()

Get the terminateNotificationProfile property: Specifies Terminate Scheduled Event related configurations.

Returns:

the terminateNotificationProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to