com.microsoft.azure.management.sql.implementation.SyncGroupInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-sql Show documentation
Show all versions of azure-mgmt-sql Show documentation
This package contains Microsoft Azure SDK for SQL Management module.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.sql.implementation;
import org.joda.time.DateTime;
import com.microsoft.azure.management.sql.SyncConflictResolutionPolicy;
import com.microsoft.azure.management.sql.SyncGroupState;
import com.microsoft.azure.management.sql.SyncGroupSchema;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
/**
* An Azure SQL Database sync group.
*/
@JsonFlatten
public class SyncGroupInner extends ProxyResource {
/**
* Sync interval of the sync group.
*/
@JsonProperty(value = "properties.interval")
private Integer interval;
/**
* Last sync time of the sync group.
*/
@JsonProperty(value = "properties.lastSyncTime", access = JsonProperty.Access.WRITE_ONLY)
private DateTime lastSyncTime;
/**
* Conflict resolution policy of the sync group. Possible values include:
* 'HubWin', 'MemberWin'.
*/
@JsonProperty(value = "properties.conflictResolutionPolicy")
private SyncConflictResolutionPolicy conflictResolutionPolicy;
/**
* ARM resource id of the sync database in the sync group.
*/
@JsonProperty(value = "properties.syncDatabaseId")
private String syncDatabaseId;
/**
* User name for the sync group hub database credential.
*/
@JsonProperty(value = "properties.hubDatabaseUserName")
private String hubDatabaseUserName;
/**
* Password for the sync group hub database credential.
*/
@JsonProperty(value = "properties.hubDatabasePassword")
private String hubDatabasePassword;
/**
* Sync state of the sync group. Possible values include: 'NotReady',
* 'Error', 'Warning', 'Progressing', 'Good'.
*/
@JsonProperty(value = "properties.syncState", access = JsonProperty.Access.WRITE_ONLY)
private SyncGroupState syncState;
/**
* Sync schema of the sync group.
*/
@JsonProperty(value = "properties.schema")
private SyncGroupSchema schema;
/**
* Get sync interval of the sync group.
*
* @return the interval value
*/
public Integer interval() {
return this.interval;
}
/**
* Set sync interval of the sync group.
*
* @param interval the interval value to set
* @return the SyncGroupInner object itself.
*/
public SyncGroupInner withInterval(Integer interval) {
this.interval = interval;
return this;
}
/**
* Get last sync time of the sync group.
*
* @return the lastSyncTime value
*/
public DateTime lastSyncTime() {
return this.lastSyncTime;
}
/**
* Get conflict resolution policy of the sync group. Possible values include: 'HubWin', 'MemberWin'.
*
* @return the conflictResolutionPolicy value
*/
public SyncConflictResolutionPolicy conflictResolutionPolicy() {
return this.conflictResolutionPolicy;
}
/**
* Set conflict resolution policy of the sync group. Possible values include: 'HubWin', 'MemberWin'.
*
* @param conflictResolutionPolicy the conflictResolutionPolicy value to set
* @return the SyncGroupInner object itself.
*/
public SyncGroupInner withConflictResolutionPolicy(SyncConflictResolutionPolicy conflictResolutionPolicy) {
this.conflictResolutionPolicy = conflictResolutionPolicy;
return this;
}
/**
* Get aRM resource id of the sync database in the sync group.
*
* @return the syncDatabaseId value
*/
public String syncDatabaseId() {
return this.syncDatabaseId;
}
/**
* Set aRM resource id of the sync database in the sync group.
*
* @param syncDatabaseId the syncDatabaseId value to set
* @return the SyncGroupInner object itself.
*/
public SyncGroupInner withSyncDatabaseId(String syncDatabaseId) {
this.syncDatabaseId = syncDatabaseId;
return this;
}
/**
* Get user name for the sync group hub database credential.
*
* @return the hubDatabaseUserName value
*/
public String hubDatabaseUserName() {
return this.hubDatabaseUserName;
}
/**
* Set user name for the sync group hub database credential.
*
* @param hubDatabaseUserName the hubDatabaseUserName value to set
* @return the SyncGroupInner object itself.
*/
public SyncGroupInner withHubDatabaseUserName(String hubDatabaseUserName) {
this.hubDatabaseUserName = hubDatabaseUserName;
return this;
}
/**
* Get password for the sync group hub database credential.
*
* @return the hubDatabasePassword value
*/
public String hubDatabasePassword() {
return this.hubDatabasePassword;
}
/**
* Set password for the sync group hub database credential.
*
* @param hubDatabasePassword the hubDatabasePassword value to set
* @return the SyncGroupInner object itself.
*/
public SyncGroupInner withHubDatabasePassword(String hubDatabasePassword) {
this.hubDatabasePassword = hubDatabasePassword;
return this;
}
/**
* Get sync state of the sync group. Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good'.
*
* @return the syncState value
*/
public SyncGroupState syncState() {
return this.syncState;
}
/**
* Get sync schema of the sync group.
*
* @return the schema value
*/
public SyncGroupSchema schema() {
return this.schema;
}
/**
* Set sync schema of the sync group.
*
* @param schema the schema value to set
* @return the SyncGroupInner object itself.
*/
public SyncGroupInner withSchema(SyncGroupSchema schema) {
this.schema = schema;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy