Class Schedule
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.Schedule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Schedule>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcount()Get the count property: User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.days()Get the days property: User has to set the days where schedule has to be set for autoscale operation.endTime()Get the endTime property: User has to set the end time of current schedule configuration, format like 10:30 (HH:MM).static SchedulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Schedule from the JsonReader.Get the startTime property: User has to set the start time of current schedule configuration, format like 10:30 (HH:MM).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCount(int count) Set the count property: User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.withDays(List<ScheduleDay> days) Set the days property: User has to set the days where schedule has to be set for autoscale operation.withEndTime(String endTime) Set the endTime property: User has to set the end time of current schedule configuration, format like 10:30 (HH:MM).withStartTime(String startTime) Set the startTime property: User has to set the start time of current schedule configuration, format like 10:30 (HH:MM).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
-
Schedule
public Schedule()Creates an instance of Schedule class.
-
-
Method Details
-
startTime
Get the startTime property: User has to set the start time of current schedule configuration, format like 10:30 (HH:MM).- Returns:
- the startTime value.
-
withStartTime
-
endTime
Get the endTime property: User has to set the end time of current schedule configuration, format like 10:30 (HH:MM).- Returns:
- the endTime value.
-
withEndTime
-
count
public int count()Get the count property: User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.- Returns:
- the count value.
-
withCount
Set the count property: User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.- Parameters:
count- the count value to set.- Returns:
- the Schedule object itself.
-
days
Get the days property: User has to set the days where schedule has to be set for autoscale operation.- Returns:
- the days value.
-
withDays
Set the days property: User has to set the days where schedule has to be set for autoscale operation.- Parameters:
days- the days value to set.- Returns:
- the Schedule 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<Schedule>- Throws:
IOException
-
fromJson
Reads an instance of Schedule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Schedule 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 Schedule.
-