Class SyncGroupSchema
java.lang.Object
com.azure.resourcemanager.sql.models.SyncGroupSchema
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SyncGroupSchema>
public final class SyncGroupSchema
extends Object
implements com.azure.json.JsonSerializable<SyncGroupSchema>
Properties of sync group schema.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SyncGroupSchemafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SyncGroupSchema from the JsonReader.Get the masterSyncMemberName property: Name of master sync member where the schema is from.tables()Get the tables property: List of tables in sync group schema.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMasterSyncMemberName(String masterSyncMemberName) Set the masterSyncMemberName property: Name of master sync member where the schema is from.withTables(List<SyncGroupSchemaTable> tables) Set the tables property: List of tables in sync group schema.Methods inherited from class java.lang.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
-
SyncGroupSchema
public SyncGroupSchema()Creates an instance of SyncGroupSchema class.
-
-
Method Details
-
tables
Get the tables property: List of tables in sync group schema.- Returns:
- the tables value.
-
withTables
Set the tables property: List of tables in sync group schema.- Parameters:
tables- the tables value to set.- Returns:
- the SyncGroupSchema object itself.
-
masterSyncMemberName
Get the masterSyncMemberName property: Name of master sync member where the schema is from.- Returns:
- the masterSyncMemberName value.
-
withMasterSyncMemberName
Set the masterSyncMemberName property: Name of master sync member where the schema is from.- Parameters:
masterSyncMemberName- the masterSyncMemberName value to set.- Returns:
- the SyncGroupSchema object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SyncGroupSchema>- Throws:
IOException
-
fromJson
Reads an instance of SyncGroupSchema from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SyncGroupSchema 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 SyncGroupSchema.
-