Partager via


ExpressRouteFailoverConnectionResourceDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ExpressRouteFailoverConnectionResourceDetails

Implements

public final class ExpressRouteFailoverConnectionResourceDetails
implements JsonSerializable<ExpressRouteFailoverConnectionResourceDetails>

The ExpressRouteFailoverConnectionResourceDetails model.

Constructor Summary

Constructor Description
ExpressRouteFailoverConnectionResourceDetails()

Creates an instance of ExpressRouteFailoverConnectionResourceDetails class.

Method Summary

Modifier and Type Method and Description
static ExpressRouteFailoverConnectionResourceDetails fromJson(JsonReader jsonReader)

Reads an instance of ExpressRouteFailoverConnectionResourceDetails from the JsonReader.

String lastUpdatedTime()

Get the lastUpdatedTime property: Time when the connection was last updated.

String name()

Get the name property: Connection Name.

String nrpResourceUri()

Get the nrpResourceUri property: NRP Resource URI of the connection.

FailoverConnectionStatus status()

Get the status property: The current status of the connection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExpressRouteFailoverConnectionResourceDetails withLastUpdatedTime(String lastUpdatedTime)

Set the lastUpdatedTime property: Time when the connection was last updated.

ExpressRouteFailoverConnectionResourceDetails withName(String name)

Set the name property: Connection Name.

ExpressRouteFailoverConnectionResourceDetails withNrpResourceUri(String nrpResourceUri)

Set the nrpResourceUri property: NRP Resource URI of the connection.

ExpressRouteFailoverConnectionResourceDetails withStatus(FailoverConnectionStatus status)

Set the status property: The current status of the connection.

Methods inherited from java.lang.Object

Constructor Details

ExpressRouteFailoverConnectionResourceDetails

public ExpressRouteFailoverConnectionResourceDetails()

Creates an instance of ExpressRouteFailoverConnectionResourceDetails class.

Method Details

fromJson

public static ExpressRouteFailoverConnectionResourceDetails fromJson(JsonReader jsonReader)

Reads an instance of ExpressRouteFailoverConnectionResourceDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastUpdatedTime

public String lastUpdatedTime()

Get the lastUpdatedTime property: Time when the connection was last updated.

Returns:

the lastUpdatedTime value.

name

public String name()

Get the name property: Connection Name.

Returns:

the name value.

nrpResourceUri

public String nrpResourceUri()

Get the nrpResourceUri property: NRP Resource URI of the connection.

Returns:

the nrpResourceUri value.

status

public FailoverConnectionStatus status()

Get the status property: The current status of the connection.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLastUpdatedTime

public ExpressRouteFailoverConnectionResourceDetails withLastUpdatedTime(String lastUpdatedTime)

Set the lastUpdatedTime property: Time when the connection was last updated.

Parameters:

lastUpdatedTime - the lastUpdatedTime value to set.

Returns:

the ExpressRouteFailoverConnectionResourceDetails object itself.

withName

public ExpressRouteFailoverConnectionResourceDetails withName(String name)

Set the name property: Connection Name.

Parameters:

name - the name value to set.

Returns:

the ExpressRouteFailoverConnectionResourceDetails object itself.

withNrpResourceUri

public ExpressRouteFailoverConnectionResourceDetails withNrpResourceUri(String nrpResourceUri)

Set the nrpResourceUri property: NRP Resource URI of the connection.

Parameters:

nrpResourceUri - the nrpResourceUri value to set.

Returns:

the ExpressRouteFailoverConnectionResourceDetails object itself.

withStatus

public ExpressRouteFailoverConnectionResourceDetails withStatus(FailoverConnectionStatus status)

Set the status property: The current status of the connection.

Parameters:

status - the status value to set.

Returns:

the ExpressRouteFailoverConnectionResourceDetails object itself.

Applies to