Class ConnectionError
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.ConnectionError
-
public final class ConnectionError extends Object
The ConnectionError model.
-
-
Constructor Summary
Constructors Constructor Description ConnectionError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionStateconnectionState()Get the connectionState property: The kind of connection error that occurred.Stringexception()Get the exception property: Detailed error message about the failed connection.StringiPFrom()Get the iPFrom property: The IP of host that originated the failed connection.StringiPTo()Get the iPTo property: The IP that the connection attempted to reach.Integerport()Get the port property: The TCP port the connection was attempted on.voidvalidate()Validates the instance.ConnectionErrorwithConnectionState(ConnectionState connectionState)Set the connectionState property: The kind of connection error that occurred.ConnectionErrorwithException(String exception)Set the exception property: Detailed error message about the failed connection.ConnectionErrorwithIPFrom(String iPFrom)Set the iPFrom property: The IP of host that originated the failed connection.ConnectionErrorwithIPTo(String iPTo)Set the iPTo property: The IP that the connection attempted to reach.ConnectionErrorwithPort(Integer port)Set the port property: The TCP port the connection was attempted on.
-
-
-
Method Detail
-
connectionState
public ConnectionState connectionState()
Get the connectionState property: The kind of connection error that occurred.- Returns:
- the connectionState value.
-
withConnectionState
public ConnectionError withConnectionState(ConnectionState connectionState)
Set the connectionState property: The kind of connection error that occurred.- Parameters:
connectionState- the connectionState value to set.- Returns:
- the ConnectionError object itself.
-
iPFrom
public String iPFrom()
Get the iPFrom property: The IP of host that originated the failed connection.- Returns:
- the iPFrom value.
-
withIPFrom
public ConnectionError withIPFrom(String iPFrom)
Set the iPFrom property: The IP of host that originated the failed connection.- Parameters:
iPFrom- the iPFrom value to set.- Returns:
- the ConnectionError object itself.
-
iPTo
public String iPTo()
Get the iPTo property: The IP that the connection attempted to reach.- Returns:
- the iPTo value.
-
withIPTo
public ConnectionError withIPTo(String iPTo)
Set the iPTo property: The IP that the connection attempted to reach.- Parameters:
iPTo- the iPTo value to set.- Returns:
- the ConnectionError object itself.
-
port
public Integer port()
Get the port property: The TCP port the connection was attempted on.- Returns:
- the port value.
-
withPort
public ConnectionError withPort(Integer port)
Set the port property: The TCP port the connection was attempted on.- Parameters:
port- the port value to set.- Returns:
- the ConnectionError object itself.
-
exception
public String exception()
Get the exception property: Detailed error message about the failed connection.- Returns:
- the exception value.
-
withException
public ConnectionError withException(String exception)
Set the exception property: Detailed error message about the failed connection.- Parameters:
exception- the exception value to set.- Returns:
- the ConnectionError object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-