WeeklySchedule Class

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

public final class WeeklySchedule

Weekly Schedule properties, make a snapshot every week at a specific day or days.

Constructor Summary

Constructor Description
WeeklySchedule()

Creates an instance of WeeklySchedule class.

Method Summary

Modifier and Type Method and Description
String day()

Get the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.

Integer hour()

Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken.

Integer minute()

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

Integer snapshotsToKeep()

Get the snapshotsToKeep property: Weekly snapshot count to keep.

Long usedBytes()

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

void validate()

Validates the instance.

WeeklySchedule withDay(String day)

Set the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.

WeeklySchedule withHour(Integer hour)

Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken.

WeeklySchedule withMinute(Integer minute)

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

WeeklySchedule withSnapshotsToKeep(Integer snapshotsToKeep)

Set the snapshotsToKeep property: Weekly snapshot count to keep.

WeeklySchedule 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

WeeklySchedule

public WeeklySchedule()

Creates an instance of WeeklySchedule class.

Method Details

day

public String day()

Get the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.

Returns:

the day value.

hour

public Integer hour()

Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken.

Returns:

the hour value.

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: Weekly snapshot count to keep.

Returns:

the snapshotsToKeep value.

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.

withDay

public WeeklySchedule withDay(String day)

Set the day property: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english.

Parameters:

day - the day value to set.

Returns:

the WeeklySchedule object itself.

withHour

public WeeklySchedule withHour(Integer hour)

Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken.

Parameters:

hour - the hour value to set.

Returns:

the WeeklySchedule object itself.

withMinute

public WeeklySchedule withMinute(Integer minute)

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

Parameters:

minute - the minute value to set.

Returns:

the WeeklySchedule object itself.

withSnapshotsToKeep

public WeeklySchedule withSnapshotsToKeep(Integer snapshotsToKeep)

Set the snapshotsToKeep property: Weekly snapshot count to keep.

Parameters:

snapshotsToKeep - the snapshotsToKeep value to set.

Returns:

the WeeklySchedule object itself.

withUsedBytes

public WeeklySchedule 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 WeeklySchedule object itself.

Applies to