Class ConnectivityStatusContract
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ConnectivityStatusContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectivityStatusContract>
public final class ConnectivityStatusContract
extends Object
implements com.azure.json.JsonSerializable<ConnectivityStatusContract>
Details about connectivity to a resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectivityStatusContract class. -
Method Summary
Modifier and TypeMethodDescriptionerror()Get the error property: Error details of the connectivity to the resource.static ConnectivityStatusContractfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectivityStatusContract from the JsonReader.booleanGet the isOptional property: Whether this is optional.Get the lastStatusChange property: The date when the resource connectivity status last Changed from success to failure or vice-versa.Get the lastUpdated property: The date when the resource connectivity status was last updated.name()Get the name property: The hostname of the resource which the service depends on.Get the resourceType property: Resource Type.status()Get the status property: Resource Connectivity Status Type identifier.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the error property: Error details of the connectivity to the resource.withIsOptional(boolean isOptional) Set the isOptional property: Whether this is optional.withLastStatusChange(OffsetDateTime lastStatusChange) Set the lastStatusChange property: The date when the resource connectivity status last Changed from success to failure or vice-versa.withLastUpdated(OffsetDateTime lastUpdated) Set the lastUpdated property: The date when the resource connectivity status was last updated.Set the name property: The hostname of the resource which the service depends on.withResourceType(String resourceType) Set the resourceType property: Resource Type.withStatus(ConnectivityStatusType status) Set the status property: Resource Connectivity Status Type identifier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ConnectivityStatusContract
public ConnectivityStatusContract()Creates an instance of ConnectivityStatusContract class.
-
-
Method Details
-
name
Get the name property: 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.
-
withName
Set the name property: 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.
-
status
Get the status property: Resource Connectivity Status Type identifier.- Returns:
- the status value.
-
withStatus
Set the status property: Resource Connectivity Status Type identifier.- Parameters:
status- the status value to set.- Returns:
- the ConnectivityStatusContract object itself.
-
error
Get the error property: Error details of the connectivity to the resource.- Returns:
- the error value.
-
withError
Set the error property: Error details of the connectivity to the resource.- Parameters:
error- the error value to set.- Returns:
- the ConnectivityStatusContract object itself.
-
lastUpdated
Get the lastUpdated property: 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.
-
withLastUpdated
Set the lastUpdated property: 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.
-
lastStatusChange
Get the lastStatusChange property: 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.
-
withLastStatusChange
Set the lastStatusChange property: 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.
-
resourceType
Get the resourceType property: Resource Type.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: Resource Type.- Parameters:
resourceType- the resourceType value to set.- Returns:
- the ConnectivityStatusContract object itself.
-
isOptional
public boolean isOptional()Get the isOptional property: Whether this is optional.- Returns:
- the isOptional value.
-
withIsOptional
Set the isOptional property: Whether this is optional.- Parameters:
isOptional- the isOptional value to set.- Returns:
- the ConnectivityStatusContract object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ConnectivityStatusContract>- Throws:
IOException
-
fromJson
public static ConnectivityStatusContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectivityStatusContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectivityStatusContract if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ConnectivityStatusContract.
-