你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ConnectivityStatusContract Class

  • java.lang.Object
    • com.microsoft.azure.management.apimanagement.v2019_01_01.ConnectivityStatusContract

public class ConnectivityStatusContract

Details about connectivity to a resource.

Constructor Summary

Constructor Description
ConnectivityStatusContract()

Method Summary

Modifier and Type Method and Description
java.lang.String error()

Get error details of the connectivity to the resource.

org.joda.time.DateTime lastStatusChange()

Get the date when the resource connectivity status last Changed from success to failure or vice-versa.

org.joda.time.DateTime lastUpdated()

Get the date when the resource connectivity status was last updated.

java.lang.String name()

Get the hostname of the resource which the service depends on.

ConnectivityStatusType status()

Get resource Connectivity Status Type identifier.

ConnectivityStatusContract withError(String error)

Set error details of the connectivity to the resource.

ConnectivityStatusContract withLastStatusChange(DateTime lastStatusChange)

Set the date when the resource connectivity status last Changed from success to failure or vice-versa.

ConnectivityStatusContract withLastUpdated(DateTime lastUpdated)

Set the date when the resource connectivity status was last updated.

ConnectivityStatusContract withName(String name)

Set the hostname of the resource which the service depends on.

ConnectivityStatusContract withStatus(ConnectivityStatusType status)

Set resource Connectivity Status Type identifier.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ConnectivityStatusContract

public ConnectivityStatusContract()

Method Details

error

public String error()

Get error details of the connectivity to the resource.

Returns:

the error value

lastStatusChange

public DateTime lastStatusChange()

Get the date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

the lastStatusChange value

lastUpdated

public DateTime lastUpdated()

Get the date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

the lastUpdated value

name

public String name()

Get the hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon.

Returns:

the name value

status

public ConnectivityStatusType status()

Get resource Connectivity Status Type identifier. Possible values include: 'initializing', 'success', 'failure'.

Returns:

the status value

withError

public ConnectivityStatusContract withError(String error)

Set error details of the connectivity to the resource.

Parameters:

error - the error value to set

Returns:

the ConnectivityStatusContract object itself.

withLastStatusChange

public ConnectivityStatusContract withLastStatusChange(DateTime lastStatusChange)

Set the date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Parameters:

lastStatusChange - the lastStatusChange value to set

Returns:

the ConnectivityStatusContract object itself.

withLastUpdated

public ConnectivityStatusContract withLastUpdated(DateTime lastUpdated)

Set the date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Parameters:

lastUpdated - the lastUpdated value to set

Returns:

the ConnectivityStatusContract object itself.

withName

public ConnectivityStatusContract withName(String name)

Set the hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon.

Parameters:

name - the name value to set

Returns:

the ConnectivityStatusContract object itself.

withStatus

public ConnectivityStatusContract withStatus(ConnectivityStatusType status)

Set resource Connectivity Status Type identifier. Possible values include: 'initializing', 'success', 'failure'.

Parameters:

status - the status value to set

Returns:

the ConnectivityStatusContract object itself.

Applies to