Class SyncGroupInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.SyncGroupInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class SyncGroupInner
extends com.azure.core.management.ProxyResource
An Azure SQL Database 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.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.sku()Get the sku property: The name and capacity of the SKU.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.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.Set the sku property: The name and capacity of the SKU.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 com.azure.core.management.ProxyResource
fromJson, id, name, toJson, type
-
Constructor Details
-
SyncGroupInner
public SyncGroupInner()Creates an instance of SyncGroupInner class.
-
-
Method Details
-
sku
Get the sku property: The name and capacity of the SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: The name and capacity of the SKU.- Parameters:
sku- the sku value to set.- Returns:
- the SyncGroupInner object itself.
-
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 SyncGroupInner 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 SyncGroupInner withConflictResolutionPolicy(SyncConflictResolutionPolicy conflictResolutionPolicy) Set the conflictResolutionPolicy property: Conflict resolution policy of the sync group.- Parameters:
conflictResolutionPolicy- the conflictResolutionPolicy value to set.- Returns:
- the SyncGroupInner 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 SyncGroupInner 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 SyncGroupInner 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 SyncGroupInner 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 SyncGroupInner 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 SyncGroupInner object itself.
-
conflictLoggingRetentionInDays
Get the conflictLoggingRetentionInDays property: Conflict logging retention period.- Returns:
- the conflictLoggingRetentionInDays value.
-
withConflictLoggingRetentionInDays
Set the conflictLoggingRetentionInDays property: Conflict logging retention period.- Parameters:
conflictLoggingRetentionInDays- the conflictLoggingRetentionInDays value to set.- Returns:
- the SyncGroupInner 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 SyncGroupInner 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.
-