SyncProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. SyncProperties
- com.
Implements
public final class SyncProperties
implements JsonSerializable<SyncProperties>
The sync properties of the connected registry with its parent.
Constructor Summary
| Constructor | Description |
|---|---|
| SyncProperties() |
Creates an instance of Sync |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sync |
fromJson(JsonReader jsonReader)
Reads an instance of Sync |
| String |
gatewayEndpoint()
Get the gateway |
|
Offset |
lastSyncTime()
Get the last |
| 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) |
| String |
tokenId()
Get the token |
| 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 |
|
Sync |
withTokenId(String tokenId)
Set the token |
Methods inherited from java.lang.Object
Constructor Details
SyncProperties
public SyncProperties()
Creates an instance of SyncProperties class.
Method Details
fromJson
public static SyncProperties fromJson(JsonReader jsonReader)
Reads an instance of SyncProperties from the JsonReader.
Parameters:
Returns:
Throws:
gatewayEndpoint
public String gatewayEndpoint()
Get the gatewayEndpoint property: The gateway endpoint used by the connected registry to communicate with its parent.
Returns:
lastSyncTime
public OffsetDateTime lastSyncTime()
Get the lastSyncTime property: The last time a sync occurred between the connected registry and its parent.
Returns:
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
tokenId
public String tokenId()
Get the tokenId property: The resource ID of the ACR token used to authenticate the connected registry to its parent during sync.
Returns:
validate
public void validate()
Validates the instance.
withMessageTtl
public SyncProperties 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 SyncProperties 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 SyncProperties 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:
withTokenId
public SyncProperties withTokenId(String tokenId)
Set the tokenId property: The resource ID of the ACR token used to authenticate the connected registry to its parent during sync.
Parameters:
Returns: