Class ScheduledEventsPolicy
java.lang.Object
com.azure.resourcemanager.compute.models.ScheduledEventsPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScheduledEventsPolicy>
public final class ScheduledEventsPolicy
extends Object
implements com.azure.json.JsonSerializable<ScheduledEventsPolicy>
Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allInstancesDown property: The configuration parameters used while creating AllInstancesDown scheduled event setting creation.static ScheduledEventsPolicyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScheduledEventsPolicy from the JsonReader.Get the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.Get the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.voidvalidate()Validates the instance.withAllInstancesDown(AllInstancesDown allInstancesDown) Set the allInstancesDown property: The configuration parameters used while creating AllInstancesDown scheduled event setting creation.withScheduledEventsAdditionalPublishingTargets(ScheduledEventsAdditionalPublishingTargets scheduledEventsAdditionalPublishingTargets) Set the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.withUserInitiatedReboot(UserInitiatedReboot userInitiatedReboot) Set the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.withUserInitiatedRedeploy(UserInitiatedRedeploy userInitiatedRedeploy) Set the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.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
-
ScheduledEventsPolicy
public ScheduledEventsPolicy()Creates an instance of ScheduledEventsPolicy class.
-
-
Method Details
-
userInitiatedRedeploy
Get the userInitiatedRedeploy property: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.- Returns:
- the userInitiatedRedeploy value.
-
withUserInitiatedRedeploy
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.
-
userInitiatedReboot
Get the userInitiatedReboot property: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.- Returns:
- the userInitiatedReboot value.
-
withUserInitiatedReboot
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.
-
scheduledEventsAdditionalPublishingTargets
Get the scheduledEventsAdditionalPublishingTargets property: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.- Returns:
- the scheduledEventsAdditionalPublishingTargets value.
-
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.
-
allInstancesDown
Get the allInstancesDown property: The configuration parameters used while creating AllInstancesDown scheduled event setting creation.- Returns:
- the allInstancesDown value.
-
withAllInstancesDown
Set the allInstancesDown property: The configuration parameters used while creating AllInstancesDown scheduled event setting creation.- Parameters:
allInstancesDown- the allInstancesDown value to set.- Returns:
- the ScheduledEventsPolicy 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<ScheduledEventsPolicy>- Throws:
IOException
-
fromJson
public static ScheduledEventsPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-