/** * 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 com.microsoft.azure.management.sql.ReplicationRole; import org.joda.time.DateTime; import com.microsoft.azure.management.sql.ReplicationState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.management.sql.SqlSubResource; /** * Represents an Azure SQL database replication link. */ @JsonFlatten public class ReplicationLinkInner extends SqlSubResource { /** * The name of the Azure SQL server hosting the partner Azure SQL Database. */ @JsonProperty(value = "properties.partnerServer", access = JsonProperty.Access.WRITE_ONLY) private String partnerServer; /** * The name of the partner Azure SQL Database. */ @JsonProperty(value = "properties.partnerDatabase", access = JsonProperty.Access.WRITE_ONLY) private String partnerDatabase; /** * The Azure Region of the partner Azure SQL Database. */ @JsonProperty(value = "properties.partnerLocation", access = JsonProperty.Access.WRITE_ONLY) private String partnerLocation; /** * The role of the Azure SQL database in the replication link. Possible * values include: 'Primary', 'Secondary', 'NonReadableSecondary', * 'Source', 'Copy'. */ @JsonProperty(value = "properties.role", access = JsonProperty.Access.WRITE_ONLY) private ReplicationRole role; /** * The role of the partner Azure SQL Database in the replication link. * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', * 'Source', 'Copy'. */ @JsonProperty(value = "properties.partnerRole", access = JsonProperty.Access.WRITE_ONLY) private ReplicationRole partnerRole; /** * The start time for the replication link (ISO8601 format). */ @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime startTime; /** * The percentage of seeding complete for the replication link. */ @JsonProperty(value = "properties.percentComplete", access = JsonProperty.Access.WRITE_ONLY) private Integer percentComplete; /** * The replication state for the replication link. Possible values include: * 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED'. */ @JsonProperty(value = "properties.replicationState", access = JsonProperty.Access.WRITE_ONLY) private ReplicationState replicationState; /** * Get the partnerServer value. * * @return the partnerServer value */ public String partnerServer() { return this.partnerServer; } /** * Get the partnerDatabase value. * * @return the partnerDatabase value */ public String partnerDatabase() { return this.partnerDatabase; } /** * Get the partnerLocation value. * * @return the partnerLocation value */ public String partnerLocation() { return this.partnerLocation; } /** * Get the role value. * * @return the role value */ public ReplicationRole role() { return this.role; } /** * Get the partnerRole value. * * @return the partnerRole value */ public ReplicationRole partnerRole() { return this.partnerRole; } /** * Get the startTime value. * * @return the startTime value */ public DateTime startTime() { return this.startTime; } /** * Get the percentComplete value. * * @return the percentComplete value */ public Integer percentComplete() { return this.percentComplete; } /** * Get the replicationState value. * * @return the replicationState value */ public ReplicationState replicationState() { return this.replicationState; } }