ConnectivityStatusContract Class
- java.
lang. Object - com.
microsoft. azure. management. apimanagement. v2019_01_01.ConnectivityStatusContract
- com.
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. |
|
Connectivity |
status()
Get resource Connectivity Status Type identifier. |
|
Connectivity |
withError(String error)
Set error details of the connectivity to the resource. |
|
Connectivity |
withLastStatusChange(DateTime lastStatusChange)
Set the date when the resource connectivity status last Changed from success to failure or vice-versa. |
|
Connectivity |
withLastUpdated(DateTime lastUpdated)
Set the date when the resource connectivity status was last updated. |
|
Connectivity |
withName(String name)
Set the hostname of the resource which the service depends on. |
|
Connectivity |
withStatus(ConnectivityStatusType status)
Set resource Connectivity Status Type identifier. |
Methods inherited from java.lang.Object
Constructor Details
ConnectivityStatusContract
public ConnectivityStatusContract()
Method Details
error
public String error()
Get error details of the connectivity to the resource.
Returns:
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:
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:
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:
status
public ConnectivityStatusType status()
Get resource Connectivity Status Type identifier. Possible values include: 'initializing', 'success', 'failure'.
Returns:
withError
public ConnectivityStatusContract withError(String error)
Set error details of the connectivity to the resource.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withStatus
public ConnectivityStatusContract withStatus(ConnectivityStatusType status)
Set resource Connectivity Status Type identifier. Possible values include: 'initializing', 'success', 'failure'.
Parameters:
Returns: