ConnectionError Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ConnectionError
- com.
Implements
public final class ConnectionError
implements JsonSerializable<ConnectionError>
The ConnectionError model.
Constructor Summary
Constructor | Description |
---|---|
ConnectionError() |
Creates an instance of Connection |
Method Summary
Modifier and Type | Method and Description |
---|---|
Connection |
connectionState()
Get the connection |
String |
exception()
Get the exception property: Detailed error message about the failed connection. |
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
String |
iPFrom()
Get the i |
String |
iPTo()
Get the i |
Integer |
port()
Get the port property: The TCP port the connection was attempted on. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Connection |
withConnectionState(ConnectionState connectionState)
Set the connection |
Connection |
withException(String exception)
Set the exception property: Detailed error message about the failed connection. |
Connection |
withIPFrom(String iPFrom)
Set the i |
Connection |
withIPTo(String iPTo)
Set the i |
Connection |
withPort(Integer port)
Set the port property: The TCP port the connection was attempted on. |
Methods inherited from java.lang.Object
Constructor Details
ConnectionError
public ConnectionError()
Creates an instance of ConnectionError class.
Method Details
connectionState
public ConnectionState connectionState()
Get the connectionState property: The kind of connection error that occurred.
Returns:
exception
public String exception()
Get the exception property: Detailed error message about the failed connection.
Returns:
fromJson
public static ConnectionError fromJson(JsonReader jsonReader)
Reads an instance of ConnectionError from the JsonReader.
Parameters:
Returns:
Throws:
iPFrom
public String iPFrom()
Get the iPFrom property: The IP of host that originated the failed connection.
Returns:
iPTo
public String iPTo()
Get the iPTo property: The IP that the connection attempted to reach.
Returns:
port
public Integer port()
Get the port property: The TCP port the connection was attempted on.
Returns:
toJson
validate
public void validate()
Validates the instance.
withConnectionState
public ConnectionError withConnectionState(ConnectionState connectionState)
Set the connectionState property: The kind of connection error that occurred.
Parameters:
Returns:
withException
public ConnectionError withException(String exception)
Set the exception property: Detailed error message about the failed connection.
Parameters:
Returns:
withIPFrom
public ConnectionError withIPFrom(String iPFrom)
Set the iPFrom property: The IP of host that originated the failed connection.
Parameters:
Returns:
withIPTo
public ConnectionError withIPTo(String iPTo)
Set the iPTo property: The IP that the connection attempted to reach.
Parameters:
Returns:
withPort
public ConnectionError withPort(Integer port)
Set the port property: The TCP port the connection was attempted on.
Parameters:
Returns:
Applies to
Azure SDK for Java