Time Class
- java.
lang. Object - com.
azure. resourcemanager. desktopvirtualization. models. Time
- com.
Implements
public final class Time
implements JsonSerializable<Time>
The time for a scaling action to occur.
Constructor Summary
| Constructor | Description |
|---|---|
| Time() |
Creates an instance of Time class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Time |
fromJson(JsonReader jsonReader)
Reads an instance of Time from the Json |
| int |
hour()
Get the hour property: The hour. |
| int |
minute()
Get the minute property: The minute. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Time |
withHour(int hour)
Set the hour property: The hour. |
| Time |
withMinute(int minute)
Set the minute property: The minute. |
Methods inherited from java.lang.Object
Constructor Details
Time
public Time()
Creates an instance of Time class.
Method Details
fromJson
public static Time fromJson(JsonReader jsonReader)
Reads an instance of Time from the JsonReader.
Parameters:
Returns:
Throws:
hour
public int hour()
Get the hour property: The hour.
Returns:
minute
public int minute()
Get the minute property: The minute.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHour
public Time withHour(int hour)
Set the hour property: The hour.
Parameters:
Returns:
withMinute
public Time withMinute(int minute)
Set the minute property: The minute.
Parameters:
Returns: