Freigeben über


HourlySchedule Class

  • java.lang.Object
    • com.azure.resourcemanager.netapp.models.HourlySchedule

Implements

public final class HourlySchedule
implements JsonSerializable<HourlySchedule>

Hourly Schedule properties.

Constructor Summary

Constructor Description
HourlySchedule()

Creates an instance of HourlySchedule class.

Method Summary

Modifier and Type Method and Description
static HourlySchedule fromJson(JsonReader jsonReader)

Reads an instance of HourlySchedule from the JsonReader.

Integer minute()

Get the minute property: Indicates which minute snapshot should be taken.

Integer snapshotsToKeep()

Get the snapshotsToKeep property: Hourly snapshot count to keep.

JsonWriter toJson(JsonWriter jsonWriter)
Long usedBytes()

Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.

void validate()

Validates the instance.

HourlySchedule withMinute(Integer minute)

Set the minute property: Indicates which minute snapshot should be taken.

HourlySchedule withSnapshotsToKeep(Integer snapshotsToKeep)

Set the snapshotsToKeep property: Hourly snapshot count to keep.

HourlySchedule withUsedBytes(Long usedBytes)

Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.

Methods inherited from java.lang.Object

Constructor Details

HourlySchedule

public HourlySchedule()

Creates an instance of HourlySchedule class.

Method Details

fromJson

public static HourlySchedule fromJson(JsonReader jsonReader)

Reads an instance of HourlySchedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HourlySchedule 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 HourlySchedule.

minute

public Integer minute()

Get the minute property: Indicates which minute snapshot should be taken.

Returns:

the minute value.

snapshotsToKeep

public Integer snapshotsToKeep()

Get the snapshotsToKeep property: Hourly snapshot count to keep.

Returns:

the snapshotsToKeep value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usedBytes

public Long usedBytes()

Get the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.

Returns:

the usedBytes value.

validate

public void validate()

Validates the instance.

withMinute

public HourlySchedule withMinute(Integer minute)

Set the minute property: Indicates which minute snapshot should be taken.

Parameters:

minute - the minute value to set.

Returns:

the HourlySchedule object itself.

withSnapshotsToKeep

public HourlySchedule withSnapshotsToKeep(Integer snapshotsToKeep)

Set the snapshotsToKeep property: Hourly snapshot count to keep.

Parameters:

snapshotsToKeep - the snapshotsToKeep value to set.

Returns:

the HourlySchedule object itself.

withUsedBytes

public HourlySchedule withUsedBytes(Long usedBytes)

Set the usedBytes property: Resource size in bytes, current storage usage for the volume in bytes.

Parameters:

usedBytes - the usedBytes value to set.

Returns:

the HourlySchedule object itself.

Applies to