SyncUpdateProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. SyncUpdateProperties
- com.
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 Sync |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sync |
fromJson(JsonReader jsonReader)
Reads an instance of Sync |
| Duration |
messageTtl()
Get the message |
| 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 sync |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Sync |
withMessageTtl(Duration messageTtl)
Set the message |
|
Sync |
withSchedule(String schedule)
Set the schedule property: The cron expression indicating the schedule that the connected registry will sync with its parent. |
|
Sync |
withSyncWindow(Duration syncWindow)
Set the sync |
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:
Returns:
Throws:
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:
schedule
public String schedule()
Get the schedule property: The cron expression indicating the schedule that the connected registry will sync with its parent.
Returns:
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:
toJson
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:
Returns:
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:
Returns:
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:
Returns: