hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/protocol/DatanodeDetails.java
public DatanodeDetails build() {
      Preconditions.checkNotNull(id);
      return new DatanodeDetails(id, ipAddress, hostName, containerPort,
          ratisPort, ozoneRestPort);
    }
/**
     * Builds and returns DatanodeDetails instance.
     *
     * @return DatanodeDetails
     */
Builds and returns DatanodeDetails instance.
Builds and returns DatanodeDetails instance .
public DatanodeDetails build() {
      Preconditions.checkNotNull(id);
      return new DatanodeDetails(id, ipAddress, hostName, containerPort,
          ratisPort, ozoneRestPort);
    }
public DatanodeDetails build ( ) { Preconditions . checkNotNull ( id ) ; return new DatanodeDetails ( id , ipAddress , hostName , containerPort , ratisPort , ozoneRestPort ) ; }
Builds and returns DatanodeDetails instance.
Builds and returns DatanodeDetails instance .