Class SyncGroupInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.sql.fluent.models.SyncGroupInner
-
public class SyncGroupInner extends com.azure.core.management.ProxyResourceAn Azure SQL Database sync group.
-
-
Constructor Summary
Constructors Constructor Description SyncGroupInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncConflictResolutionPolicyconflictResolutionPolicy()Get the conflictResolutionPolicy property: Conflict resolution policy of the sync group.StringhubDatabasePassword()Get the hubDatabasePassword property: Password for the sync group hub database credential.StringhubDatabaseUsername()Get the hubDatabaseUsername property: User name for the sync group hub database credential.Integerinterval()Get the interval property: Sync interval of the sync group.OffsetDateTimelastSyncTime()Get the lastSyncTime property: Last sync time of the sync group.SyncGroupSchemaschema()Get the schema property: Sync schema of the sync group.StringsyncDatabaseId()Get the syncDatabaseId property: ARM resource id of the sync database in the sync group.SyncGroupStatesyncState()Get the syncState property: Sync state of the sync group.voidvalidate()Validates the instance.SyncGroupInnerwithConflictResolutionPolicy(SyncConflictResolutionPolicy conflictResolutionPolicy)Set the conflictResolutionPolicy property: Conflict resolution policy of the sync group.SyncGroupInnerwithHubDatabasePassword(String hubDatabasePassword)Set the hubDatabasePassword property: Password for the sync group hub database credential.SyncGroupInnerwithHubDatabaseUsername(String hubDatabaseUsername)Set the hubDatabaseUsername property: User name for the sync group hub database credential.SyncGroupInnerwithInterval(Integer interval)Set the interval property: Sync interval of the sync group.SyncGroupInnerwithSchema(SyncGroupSchema schema)Set the schema property: Sync schema of the sync group.SyncGroupInnerwithSyncDatabaseId(String syncDatabaseId)Set the syncDatabaseId property: ARM resource id of the sync database in the sync group.
-
-
-
Method Detail
-
interval
public Integer interval()
Get the interval property: Sync interval of the sync group.- Returns:
- the interval value.
-
withInterval
public SyncGroupInner withInterval(Integer interval)
Set the interval property: Sync interval of the sync group.- Parameters:
interval- the interval value to set.- Returns:
- the SyncGroupInner object itself.
-
lastSyncTime
public OffsetDateTime lastSyncTime()
Get the lastSyncTime property: Last sync time of the sync group.- Returns:
- the lastSyncTime value.
-
conflictResolutionPolicy
public SyncConflictResolutionPolicy 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
public String syncDatabaseId()
Get the syncDatabaseId property: ARM resource id of the sync database in the sync group.- Returns:
- the syncDatabaseId value.
-
withSyncDatabaseId
public SyncGroupInner withSyncDatabaseId(String syncDatabaseId)
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
public String hubDatabaseUsername()
Get the hubDatabaseUsername property: User name for the sync group hub database credential.- Returns:
- the hubDatabaseUsername value.
-
withHubDatabaseUsername
public SyncGroupInner withHubDatabaseUsername(String hubDatabaseUsername)
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
public String hubDatabasePassword()
Get the hubDatabasePassword property: Password for the sync group hub database credential.- Returns:
- the hubDatabasePassword value.
-
withHubDatabasePassword
public SyncGroupInner withHubDatabasePassword(String hubDatabasePassword)
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
public SyncGroupState syncState()
Get the syncState property: Sync state of the sync group.- Returns:
- the syncState value.
-
schema
public SyncGroupSchema schema()
Get the schema property: Sync schema of the sync group.- Returns:
- the schema value.
-
withSchema
public SyncGroupInner withSchema(SyncGroupSchema schema)
Set the schema property: Sync schema of the sync group.- Parameters:
schema- the schema value to set.- Returns:
- the SyncGroupInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-