SyncGroupInner Class

public final class SyncGroupInner
extends ProxyResource

An Azure SQL Database sync group.

Constructor Summary

Constructor Description
SyncGroupInner()

Creates an instance of SyncGroupInner class.

Method Summary

Modifier and Type Method and Description
Integer conflictLoggingRetentionInDays()

Get the conflictLoggingRetentionInDays property: Conflict logging retention period.

SyncConflictResolutionPolicy conflictResolutionPolicy()

Get the conflictResolutionPolicy property: Conflict resolution policy of the sync group.

Boolean enableConflictLogging()

Get the enableConflictLogging property: If conflict logging is enabled.

static SyncGroupInner fromJson(JsonReader jsonReader)

Reads an instance of SyncGroupInner from the JsonReader.

String hubDatabasePassword()

Get the hubDatabasePassword property: Password for the sync group hub database credential.

String hubDatabaseUsername()

Get the hubDatabaseUsername property: User name for the sync group hub database credential.

String id()

Get the id property: Fully qualified resource Id for the resource.

Integer interval()

Get the interval property: Sync interval of the sync group.

OffsetDateTime lastSyncTime()

Get the lastSyncTime property: Last sync time of the sync group.

String name()

Get the name property: The name of the resource.

String privateEndpointName()

Get the privateEndpointName property: Private endpoint name of the sync group if use private link connection is enabled.

SyncGroupSchema schema()

Get the schema property: Sync schema of the sync group.

Sku sku()

Get the sku property: The name and capacity of the SKU.

String syncDatabaseId()

Get the syncDatabaseId property: ARM resource id of the sync database in the sync group.

SyncGroupState syncState()

Get the syncState property: Sync state of the sync group.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Boolean usePrivateLinkConnection()

Get the usePrivateLinkConnection property: If use private link connection is enabled.

void validate()

Validates the instance.

SyncGroupInner withConflictLoggingRetentionInDays(Integer conflictLoggingRetentionInDays)

Set the conflictLoggingRetentionInDays property: Conflict logging retention period.

SyncGroupInner withConflictResolutionPolicy(SyncConflictResolutionPolicy conflictResolutionPolicy)

Set the conflictResolutionPolicy property: Conflict resolution policy of the sync group.

SyncGroupInner withEnableConflictLogging(Boolean enableConflictLogging)

Set the enableConflictLogging property: If conflict logging is enabled.

SyncGroupInner withHubDatabasePassword(String hubDatabasePassword)

Set the hubDatabasePassword property: Password for the sync group hub database credential.

SyncGroupInner withHubDatabaseUsername(String hubDatabaseUsername)

Set the hubDatabaseUsername property: User name for the sync group hub database credential.

SyncGroupInner withInterval(Integer interval)

Set the interval property: Sync interval of the sync group.

SyncGroupInner withSchema(SyncGroupSchema schema)

Set the schema property: Sync schema of the sync group.

SyncGroupInner withSku(Sku sku)

Set the sku property: The name and capacity of the SKU.

SyncGroupInner withSyncDatabaseId(String syncDatabaseId)

Set the syncDatabaseId property: ARM resource id of the sync database in the sync group.

SyncGroupInner withUsePrivateLinkConnection(Boolean usePrivateLinkConnection)

Set the usePrivateLinkConnection property: If use private link connection is enabled.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SyncGroupInner

public SyncGroupInner()

Creates an instance of SyncGroupInner class.

Method Details

conflictLoggingRetentionInDays

public Integer conflictLoggingRetentionInDays()

Get the conflictLoggingRetentionInDays property: Conflict logging retention period.

Returns:

the conflictLoggingRetentionInDays value.

conflictResolutionPolicy

public SyncConflictResolutionPolicy conflictResolutionPolicy()

Get the conflictResolutionPolicy property: Conflict resolution policy of the sync group.

Returns:

the conflictResolutionPolicy value.

enableConflictLogging

public Boolean enableConflictLogging()

Get the enableConflictLogging property: If conflict logging is enabled.

Returns:

the enableConflictLogging value.

fromJson

public static SyncGroupInner fromJson(JsonReader jsonReader)

Reads an instance of SyncGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SyncGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hubDatabasePassword

public String hubDatabasePassword()

Get the hubDatabasePassword property: Password for the sync group hub database credential.

Returns:

the hubDatabasePassword value.

hubDatabaseUsername

public String hubDatabaseUsername()

Get the hubDatabaseUsername property: User name for the sync group hub database credential.

Returns:

the hubDatabaseUsername value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SyncGroupInner.id()

Returns:

the id value.

interval

public Integer interval()

Get the interval property: Sync interval of the sync group.

Returns:

the interval value.

lastSyncTime

public OffsetDateTime lastSyncTime()

Get the lastSyncTime property: Last sync time of the sync group.

Returns:

the lastSyncTime value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SyncGroupInner.name()

Returns:

the name value.

privateEndpointName

public String privateEndpointName()

Get the privateEndpointName property: Private endpoint name of the sync group if use private link connection is enabled.

Returns:

the privateEndpointName value.

schema

public SyncGroupSchema schema()

Get the schema property: Sync schema of the sync group.

Returns:

the schema value.

sku

public Sku sku()

Get the sku property: The name and capacity of the SKU.

Returns:

the sku value.

syncDatabaseId

public String syncDatabaseId()

Get the syncDatabaseId property: ARM resource id of the sync database in the sync group.

Returns:

the syncDatabaseId value.

syncState

public SyncGroupState syncState()

Get the syncState property: Sync state of the sync group.

Returns:

the syncState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SyncGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SyncGroupInner.type()

Returns:

the type value.

usePrivateLinkConnection

public Boolean usePrivateLinkConnection()

Get the usePrivateLinkConnection property: If use private link connection is enabled.

Returns:

the usePrivateLinkConnection value.

validate

public void validate()

Validates the instance.

withConflictLoggingRetentionInDays

public SyncGroupInner withConflictLoggingRetentionInDays(Integer conflictLoggingRetentionInDays)

Set the conflictLoggingRetentionInDays property: Conflict logging retention period.

Parameters:

conflictLoggingRetentionInDays - the conflictLoggingRetentionInDays value to set.

Returns:

the SyncGroupInner object itself.

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.

withEnableConflictLogging

public SyncGroupInner withEnableConflictLogging(Boolean enableConflictLogging)

Set the enableConflictLogging property: If conflict logging is enabled.

Parameters:

enableConflictLogging - the enableConflictLogging value to set.

Returns:

the SyncGroupInner object itself.

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.

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.

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.

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.

withSku

public SyncGroupInner withSku(Sku sku)

Set the sku property: The name and capacity of the SKU.

Parameters:

sku - the sku value to set.

Returns:

the SyncGroupInner object itself.

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.

withUsePrivateLinkConnection

public SyncGroupInner withUsePrivateLinkConnection(Boolean usePrivateLinkConnection)

Set the usePrivateLinkConnection property: If use private link connection is enabled.

Parameters:

usePrivateLinkConnection - the usePrivateLinkConnection value to set.

Returns:

the SyncGroupInner object itself.

Applies to