Class ScheduleProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ResourceBase
com.azure.resourcemanager.machinelearning.models.ScheduleProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceBase>
Base definition of a schedule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: [Required] Specifies the action of the schedule.Get the displayName property: Display name of schedule.static SchedulePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScheduleProperties from the JsonReader.Get the isEnabled property: Is the schedule enabled?.Get the provisioningState property: Provisioning state for the schedule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) trigger()Get the trigger property: [Required] Specifies the trigger details.voidvalidate()Validates the instance.withAction(ScheduleActionBase action) Set the action property: [Required] Specifies the action of the schedule.withDescription(String description) Set the description property: The asset description text.withDisplayName(String displayName) Set the displayName property: Display name of schedule.withIsEnabled(Boolean isEnabled) Set the isEnabled property: Is the schedule enabled?.withProperties(Map<String, String> properties) Set the properties property: The asset property dictionary.Set the tags property: Tag dictionary.withTrigger(TriggerBase trigger) Set the trigger property: [Required] Specifies the trigger details.Methods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceBase
description, properties, tagsMethods 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
-
ScheduleProperties
public ScheduleProperties()Creates an instance of ScheduleProperties class.
-
-
Method Details
-
displayName
Get the displayName property: Display name of schedule.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name of schedule.- Parameters:
displayName- the displayName value to set.- Returns:
- the ScheduleProperties object itself.
-
isEnabled
Get the isEnabled property: Is the schedule enabled?.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Is the schedule enabled?.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the ScheduleProperties object itself.
-
trigger
Get the trigger property: [Required] Specifies the trigger details.- Returns:
- the trigger value.
-
withTrigger
Set the trigger property: [Required] Specifies the trigger details.- Parameters:
trigger- the trigger value to set.- Returns:
- the ScheduleProperties object itself.
-
action
Get the action property: [Required] Specifies the action of the schedule.- Returns:
- the action value.
-
withAction
Set the action property: [Required] Specifies the action of the schedule.- Parameters:
action- the action value to set.- Returns:
- the ScheduleProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state for the schedule.- Returns:
- the provisioningState value.
-
withDescription
Set the description property: The asset description text.- Overrides:
withDescriptionin classResourceBase- Parameters:
description- the description value to set.- Returns:
- the ResourceBase object itself.
-
withTags
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.- Overrides:
withTagsin classResourceBase- Parameters:
tags- the tags value to set.- Returns:
- the ResourceBase object itself.
-
withProperties
Set the properties property: The asset property dictionary.- Overrides:
withPropertiesin classResourceBase- Parameters:
properties- the properties value to set.- Returns:
- the ResourceBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceBase>- Overrides:
toJsonin classResourceBase- Throws:
IOException
-
fromJson
Reads an instance of ScheduleProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ScheduleProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ScheduleProperties.
-