Partager via


SyncAgentInner Class

public final class SyncAgentInner
extends ProxyResource

An Azure SQL Database sync agent.

Constructor Summary

Constructor Description
SyncAgentInner()

Creates an instance of SyncAgentInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expiryTime()

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

static SyncAgentInner fromJson(JsonReader jsonReader)

Reads an instance of SyncAgentInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

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: The name of the resource.

String namePropertiesName()

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)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String version()

Get the version property: Version of the sync agent.

SyncAgentInner withSyncDatabaseId(String syncDatabaseId)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SyncAgentInner

public SyncAgentInner()

Creates an instance of SyncAgentInner 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 SyncAgentInner fromJson(JsonReader jsonReader)

Reads an instance of SyncAgentInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SyncAgentInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SyncAgentInner.id()

Returns:

the id value.

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: The name of the resource.

Overrides:

SyncAgentInner.name()

Returns:

the name value.

namePropertiesName

public String namePropertiesName()

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)

Overrides:

SyncAgentInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SyncAgentInner.type()

Returns:

the type value.

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 SyncAgentInner 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 SyncAgentInner object itself.

Applies to