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 Details

    • SyncGroupInner

      public SyncGroupInner()
      Creates an instance of SyncGroupInner class.
  • Method Details

    • sku

      public Sku sku()
      Get the sku property: The name and capacity of the SKU.
      Returns:
      the sku value.
    • 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.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • 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.
    • enableConflictLogging

      public Boolean enableConflictLogging()
      Get the enableConflictLogging property: If conflict logging is enabled.
      Returns:
      the enableConflictLogging value.
    • 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.
    • conflictLoggingRetentionInDays

      public Integer conflictLoggingRetentionInDays()
      Get the conflictLoggingRetentionInDays property: Conflict logging retention period.
      Returns:
      the conflictLoggingRetentionInDays value.
    • 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.
    • usePrivateLinkConnection

      public Boolean usePrivateLinkConnection()
      Get the usePrivateLinkConnection property: If use private link connection is enabled.
      Returns:
      the usePrivateLinkConnection value.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

      public static SyncGroupInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the SyncGroupInner.