Del via


SyncAgentProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.SyncAgentProperties

Implements

public final class SyncAgentProperties
implements JsonSerializable<SyncAgentProperties>

Properties of an Azure SQL Database sync agent.

Constructor Summary

Constructor Description
SyncAgentProperties()

Creates an instance of SyncAgentProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expiryTime()

Get the expiryTime property: Expiration time of the sync agent version.

static SyncAgentProperties fromJson(JsonReader jsonReader)

Reads an instance of SyncAgentProperties from the JsonReader.

Boolean isUpToDate()

Get the isUpToDate property: If the sync agent version is up to date.

OffsetDateTime lastAliveTime()

Get the lastAliveTime property: Last alive time of the sync agent.

String name()

Get the name property: Name of the sync agent.

SyncAgentState state()

Get the state property: State of the sync agent.

String syncDatabaseId()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Version of the sync agent.

SyncAgentProperties withSyncDatabaseId(String syncDatabaseId)

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

Methods inherited from java.lang.Object

Constructor Details

SyncAgentProperties

public SyncAgentProperties()

Creates an instance of SyncAgentProperties class.

Method Details

expiryTime

public OffsetDateTime expiryTime()

Get the expiryTime property: Expiration time of the sync agent version.

Returns:

the expiryTime value.

fromJson

public static SyncAgentProperties fromJson(JsonReader jsonReader)

Reads an instance of SyncAgentProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SyncAgentProperties 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 SyncAgentProperties.

isUpToDate

public Boolean isUpToDate()

Get the isUpToDate property: If the sync agent version is up to date.

Returns:

the isUpToDate value.

lastAliveTime

public OffsetDateTime lastAliveTime()

Get the lastAliveTime property: Last alive time of the sync agent.

Returns:

the lastAliveTime value.

name

public String name()

Get the name property: Name of the sync agent.

Returns:

the name value.

state

public SyncAgentState state()

Get the state property: State of the sync agent.

Returns:

the state value.

syncDatabaseId

public String syncDatabaseId()

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

Returns:

the syncDatabaseId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Version of the sync agent.

Returns:

the version value.

withSyncDatabaseId

public SyncAgentProperties withSyncDatabaseId(String syncDatabaseId)

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

Parameters:

syncDatabaseId - the syncDatabaseId value to set.

Returns:

the SyncAgentProperties object itself.

Applies to