Class RegisteredServiceEndpointBase<T extends RegisteredServiceEndpointBase<T>>

java.lang.Object
com.hedera.hashgraph.sdk.RegisteredServiceEndpoint
com.hedera.hashgraph.sdk.RegisteredServiceEndpointBase<T>
Direct Known Subclasses:
BlockNodeServiceEndpoint, GeneralServiceEndpoint, MirrorNodeServiceEndpoint, RpcRelayServiceEndpoint

abstract class RegisteredServiceEndpointBase<T extends RegisteredServiceEndpointBase<T>> extends RegisteredServiceEndpoint
  • Constructor Details

    • RegisteredServiceEndpointBase

      RegisteredServiceEndpointBase()
  • Method Details

    • setIpAddress

      public T setIpAddress(@Nullable byte[] ipAddress)
      Set the IP address of the endpoint.
      Parameters:
      ipAddress - the IPv4 or IPv6 address
      Returns:
      this endpoint
    • setDomainName

      public T setDomainName(@Nullable String domainName)
      Set the domain name of the endpoint.
      Parameters:
      domainName - the fully qualified domain name
      Returns:
      this endpoint
    • setPort

      public T setPort(int port)
      Set the port used by this endpoint.
      Parameters:
      port - the port number
      Returns:
      this endpoint
      Throws:
      IllegalArgumentException - if the port is outside the valid range
    • setRequiresTls

      public T setRequiresTls(boolean requiresTls)
      Set whether TLS is required for this endpoint.
      Parameters:
      requiresTls - true if TLS is required
      Returns:
      this endpoint