Dela via


ScheduledEventsPolicy Class

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

Implements

public final class ScheduledEventsPolicy
implements JsonSerializable<ScheduledEventsPolicy>

Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations.

Constructor Summary

Constructor Description
ScheduledEventsPolicy()

Creates an instance of ScheduledEventsPolicy class.

Method Summary

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

Reads an instance of ScheduledEventsPolicy from the JsonReader.

ScheduledEventsAdditionalPublishingTargets scheduledEventsAdditionalPublishingTargets()

Get the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.

JsonWriter toJson(JsonWriter jsonWriter)
UserInitiatedReboot userInitiatedReboot()

Get the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.

UserInitiatedRedeploy userInitiatedRedeploy()

Get the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.

void validate()

Validates the instance.

ScheduledEventsPolicy withScheduledEventsAdditionalPublishingTargets(ScheduledEventsAdditionalPublishingTargets scheduledEventsAdditionalPublishingTargets)

Set the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.

ScheduledEventsPolicy withUserInitiatedReboot(UserInitiatedReboot userInitiatedReboot)

Set the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.

ScheduledEventsPolicy withUserInitiatedRedeploy(UserInitiatedRedeploy userInitiatedRedeploy)

Set the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.

Methods inherited from java.lang.Object

Constructor Details

ScheduledEventsPolicy

public ScheduledEventsPolicy()

Creates an instance of ScheduledEventsPolicy class.

Method Details

fromJson

public static ScheduledEventsPolicy fromJson(JsonReader jsonReader)

Reads an instance of ScheduledEventsPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScheduledEventsPolicy 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 ScheduledEventsPolicy.

scheduledEventsAdditionalPublishingTargets

public ScheduledEventsAdditionalPublishingTargets scheduledEventsAdditionalPublishingTargets()

Get the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.

Returns:

the scheduledEventsAdditionalPublishingTargets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userInitiatedReboot

public UserInitiatedReboot userInitiatedReboot()

Get the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.

Returns:

the userInitiatedReboot value.

userInitiatedRedeploy

public UserInitiatedRedeploy userInitiatedRedeploy()

Get the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.

Returns:

the userInitiatedRedeploy value.

validate

public void validate()

Validates the instance.

withScheduledEventsAdditionalPublishingTargets

public ScheduledEventsPolicy withScheduledEventsAdditionalPublishingTargets(ScheduledEventsAdditionalPublishingTargets scheduledEventsAdditionalPublishingTargets)

Set the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.

Parameters:

scheduledEventsAdditionalPublishingTargets - the scheduledEventsAdditionalPublishingTargets value to set.

Returns:

the ScheduledEventsPolicy object itself.

withUserInitiatedReboot

public ScheduledEventsPolicy withUserInitiatedReboot(UserInitiatedReboot userInitiatedReboot)

Set the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.

Parameters:

userInitiatedReboot - the userInitiatedReboot value to set.

Returns:

the ScheduledEventsPolicy object itself.

withUserInitiatedRedeploy

public ScheduledEventsPolicy withUserInitiatedRedeploy(UserInitiatedRedeploy userInitiatedRedeploy)

Set the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.

Parameters:

userInitiatedRedeploy - the userInitiatedRedeploy value to set.

Returns:

the ScheduledEventsPolicy object itself.

Applies to