Share via


SyncUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.SyncUpdateProperties

Implements

public final class SyncUpdateProperties
implements JsonSerializable<SyncUpdateProperties>

The parameters for updating the sync properties of the connected registry with its parent.

Constructor Summary

Constructor Description
SyncUpdateProperties()

Creates an instance of SyncUpdateProperties class.

Method Summary

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

Reads an instance of SyncUpdateProperties from the JsonReader.

Duration messageTtl()

Get the messageTtl property: The period of time for which a message is available to sync before it is expired.

String schedule()

Get the schedule property: The cron expression indicating the schedule that the connected registry will sync with its parent.

Duration syncWindow()

Get the syncWindow property: The time window during which sync is enabled for each schedule occurrence.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SyncUpdateProperties withMessageTtl(Duration messageTtl)

Set the messageTtl property: The period of time for which a message is available to sync before it is expired.

SyncUpdateProperties withSchedule(String schedule)

Set the schedule property: The cron expression indicating the schedule that the connected registry will sync with its parent.

SyncUpdateProperties withSyncWindow(Duration syncWindow)

Set the syncWindow property: The time window during which sync is enabled for each schedule occurrence.

Methods inherited from java.lang.Object

Constructor Details

SyncUpdateProperties

public SyncUpdateProperties()

Creates an instance of SyncUpdateProperties class.

Method Details

fromJson

public static SyncUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of SyncUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

messageTtl

public Duration messageTtl()

Get the messageTtl property: The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601.

Returns:

the messageTtl value.

schedule

public String schedule()

Get the schedule property: The cron expression indicating the schedule that the connected registry will sync with its parent.

Returns:

the schedule value.

syncWindow

public Duration syncWindow()

Get the syncWindow property: The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601.

Returns:

the syncWindow value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMessageTtl

public SyncUpdateProperties withMessageTtl(Duration messageTtl)

Set the messageTtl property: The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601.

Parameters:

messageTtl - the messageTtl value to set.

Returns:

the SyncUpdateProperties object itself.

withSchedule

public SyncUpdateProperties withSchedule(String schedule)

Set the schedule property: The cron expression indicating the schedule that the connected registry will sync with its parent.

Parameters:

schedule - the schedule value to set.

Returns:

the SyncUpdateProperties object itself.

withSyncWindow

public SyncUpdateProperties withSyncWindow(Duration syncWindow)

Set the syncWindow property: The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601.

Parameters:

syncWindow - the syncWindow value to set.

Returns:

the SyncUpdateProperties object itself.

Applies to