Time Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.models.Time

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 JsonReader.

int hour()

Get the hour property: The hour.

int minute()

Get the minute property: The minute.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of Time if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hour

public int hour()

Get the hour property: The hour.

Returns:

the hour value.

minute

public int minute()

Get the minute property: The minute.

Returns:

the minute value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHour

public Time withHour(int hour)

Set the hour property: The hour.

Parameters:

hour - the hour value to set.

Returns:

the Time object itself.

withMinute

public Time withMinute(int minute)

Set the minute property: The minute.

Parameters:

minute - the minute value to set.

Returns:

the Time object itself.

Applies to