Class PingResponse


  • public class PingResponse
    extends java.lang.Object
    PingResponse

    'Ping' response object

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PingResponse.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      PingResponse()  
      PingResponse​(java.util.Optional<java.lang.String> status, java.util.Optional<java.lang.String> version, java.util.Optional<java.lang.Boolean> sandbox)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PingResponse.Builder builder()  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.util.Optional<java.lang.Boolean> sandbox()
      Was the connection established with the test system (SANDBOX)?
      java.util.Optional<java.lang.String> status()
      API service status: OK - API available, ERR - API unavailable
      java.lang.String toString()  
      java.util.Optional<java.lang.String> version()
      Current API Version
      PingResponse withSandbox​(boolean sandbox)
      Was the connection established with the test system (SANDBOX)?
      PingResponse withSandbox​(java.util.Optional<java.lang.Boolean> sandbox)
      Was the connection established with the test system (SANDBOX)?
      PingResponse withStatus​(java.lang.String status)
      API service status: OK - API available, ERR - API unavailable
      PingResponse withStatus​(java.util.Optional<java.lang.String> status)
      API service status: OK - API available, ERR - API unavailable
      PingResponse withVersion​(java.lang.String version)
      Current API Version
      PingResponse withVersion​(java.util.Optional<java.lang.String> version)
      Current API Version
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PingResponse

        public PingResponse​(java.util.Optional<java.lang.String> status,
                            java.util.Optional<java.lang.String> version,
                            java.util.Optional<java.lang.Boolean> sandbox)
      • PingResponse

        public PingResponse()
    • Method Detail

      • status

        public java.util.Optional<java.lang.String> status()
        API service status: OK - API available, ERR - API unavailable
      • version

        public java.util.Optional<java.lang.String> version()
        Current API Version
      • sandbox

        public java.util.Optional<java.lang.Boolean> sandbox()
        Was the connection established with the test system (SANDBOX)?
      • withStatus

        public PingResponse withStatus​(java.lang.String status)
        API service status: OK - API available, ERR - API unavailable
      • withStatus

        public PingResponse withStatus​(java.util.Optional<java.lang.String> status)
        API service status: OK - API available, ERR - API unavailable
      • withVersion

        public PingResponse withVersion​(java.lang.String version)
        Current API Version
      • withVersion

        public PingResponse withVersion​(java.util.Optional<java.lang.String> version)
        Current API Version
      • withSandbox

        public PingResponse withSandbox​(boolean sandbox)
        Was the connection established with the test system (SANDBOX)?
      • withSandbox

        public PingResponse withSandbox​(java.util.Optional<java.lang.Boolean> sandbox)
        Was the connection established with the test system (SANDBOX)?
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object