Class SyncGroupProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.SyncGroupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SyncGroupProperties>
public final class SyncGroupProperties
extends Object
implements com.azure.json.JsonSerializable<SyncGroupProperties>
Properties of a sync group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the conflictLoggingRetentionInDays property: Conflict logging retention period.Get the conflictResolutionPolicy property: Conflict resolution policy of the sync group.Get the enableConflictLogging property: If conflict logging is enabled.static SyncGroupPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SyncGroupProperties from the JsonReader.Get the hubDatabasePassword property: Password for the sync group hub database credential.Get the hubDatabaseUsername property: User name for the sync group hub database credential.interval()Get the interval property: Sync interval of the sync group.Get the lastSyncTime property: Last sync time of the sync group.Get the privateEndpointName property: Private endpoint name of the sync group if use private link connection is enabled.schema()Get the schema property: Sync schema of the sync group.Get the syncDatabaseId property: ARM resource id of the sync database in the sync group.Get the syncState property: Sync state of the sync group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the usePrivateLinkConnection property: If use private link connection is enabled.voidvalidate()Validates the instance.withConflictLoggingRetentionInDays(Integer conflictLoggingRetentionInDays) Set the conflictLoggingRetentionInDays property: Conflict logging retention period.withConflictResolutionPolicy(SyncConflictResolutionPolicy conflictResolutionPolicy) Set the conflictResolutionPolicy property: Conflict resolution policy of the sync group.withEnableConflictLogging(Boolean enableConflictLogging) Set the enableConflictLogging property: If conflict logging is enabled.withHubDatabasePassword(String hubDatabasePassword) Set the hubDatabasePassword property: Password for the sync group hub database credential.withHubDatabaseUsername(String hubDatabaseUsername) Set the hubDatabaseUsername property: User name for the sync group hub database credential.withInterval(Integer interval) Set the interval property: Sync interval of the sync group.withSchema(SyncGroupSchema schema) Set the schema property: Sync schema of the sync group.withSyncDatabaseId(String syncDatabaseId) Set the syncDatabaseId property: ARM resource id of the sync database in the sync group.withUsePrivateLinkConnection(Boolean usePrivateLinkConnection) Set the usePrivateLinkConnection property: If use private link connection is enabled.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SyncGroupProperties
public SyncGroupProperties()Creates an instance of SyncGroupProperties class.
-
-
Method Details
-
interval
Get the interval property: Sync interval of the sync group.- Returns:
- the interval value.
-
withInterval
Set the interval property: Sync interval of the sync group.- Parameters:
interval- the interval value to set.- Returns:
- the SyncGroupProperties object itself.
-
lastSyncTime
Get the lastSyncTime property: Last sync time of the sync group.- Returns:
- the lastSyncTime value.
-
conflictResolutionPolicy
Get the conflictResolutionPolicy property: Conflict resolution policy of the sync group.- Returns:
- the conflictResolutionPolicy value.
-
withConflictResolutionPolicy
public SyncGroupProperties withConflictResolutionPolicy(SyncConflictResolutionPolicy conflictResolutionPolicy) Set the conflictResolutionPolicy property: Conflict resolution policy of the sync group.- Parameters:
conflictResolutionPolicy- the conflictResolutionPolicy value to set.- Returns:
- the SyncGroupProperties object itself.
-
syncDatabaseId
Get the syncDatabaseId property: ARM resource id of the sync database in the sync group.- Returns:
- the syncDatabaseId value.
-
withSyncDatabaseId
Set the syncDatabaseId property: ARM resource id of the sync database in the sync group.- Parameters:
syncDatabaseId- the syncDatabaseId value to set.- Returns:
- the SyncGroupProperties object itself.
-
hubDatabaseUsername
Get the hubDatabaseUsername property: User name for the sync group hub database credential.- Returns:
- the hubDatabaseUsername value.
-
withHubDatabaseUsername
Set the hubDatabaseUsername property: User name for the sync group hub database credential.- Parameters:
hubDatabaseUsername- the hubDatabaseUsername value to set.- Returns:
- the SyncGroupProperties object itself.
-
hubDatabasePassword
Get the hubDatabasePassword property: Password for the sync group hub database credential.- Returns:
- the hubDatabasePassword value.
-
withHubDatabasePassword
Set the hubDatabasePassword property: Password for the sync group hub database credential.- Parameters:
hubDatabasePassword- the hubDatabasePassword value to set.- Returns:
- the SyncGroupProperties object itself.
-
syncState
Get the syncState property: Sync state of the sync group.- Returns:
- the syncState value.
-
schema
Get the schema property: Sync schema of the sync group.- Returns:
- the schema value.
-
withSchema
Set the schema property: Sync schema of the sync group.- Parameters:
schema- the schema value to set.- Returns:
- the SyncGroupProperties object itself.
-
enableConflictLogging
Get the enableConflictLogging property: If conflict logging is enabled.- Returns:
- the enableConflictLogging value.
-
withEnableConflictLogging
Set the enableConflictLogging property: If conflict logging is enabled.- Parameters:
enableConflictLogging- the enableConflictLogging value to set.- Returns:
- the SyncGroupProperties object itself.
-
conflictLoggingRetentionInDays
Get the conflictLoggingRetentionInDays property: Conflict logging retention period.- Returns:
- the conflictLoggingRetentionInDays value.
-
withConflictLoggingRetentionInDays
public SyncGroupProperties withConflictLoggingRetentionInDays(Integer conflictLoggingRetentionInDays) Set the conflictLoggingRetentionInDays property: Conflict logging retention period.- Parameters:
conflictLoggingRetentionInDays- the conflictLoggingRetentionInDays value to set.- Returns:
- the SyncGroupProperties object itself.
-
usePrivateLinkConnection
Get the usePrivateLinkConnection property: If use private link connection is enabled.- Returns:
- the usePrivateLinkConnection value.
-
withUsePrivateLinkConnection
Set the usePrivateLinkConnection property: If use private link connection is enabled.- Parameters:
usePrivateLinkConnection- the usePrivateLinkConnection value to set.- Returns:
- the SyncGroupProperties object itself.
-
privateEndpointName
Get the privateEndpointName property: Private endpoint name of the sync group if use private link connection is enabled.- Returns:
- the privateEndpointName value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SyncGroupProperties>- Throws:
IOException
-
fromJson
Reads an instance of SyncGroupProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SyncGroupProperties 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 SyncGroupProperties.
-