package com.l7tech.external.assertions.gatewaygraphql.server.data;

import com.fasterxml.jackson.annotation.JsonIncludeProperties;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.List;
import lombok.Generated;

public class ClusterInfoDTO extends NonEntityDTO {
   private final String a;
   private final List<ClusterNodeInfoDTO> b;

   @Override
   protected Object createWrapperObject() {
      return new ClusterInfoDTO.ClusterInfoWrapper(this.a, this.b);
   }

   @Generated
   public ClusterInfoDTO(String var1, List<ClusterNodeInfoDTO> var2) {
      this.a = var1;
      this.b = var2;
   }

   @Generated
   public String getName() {
      return this.a;
   }

   @Generated
   public List<ClusterNodeInfoDTO> getNodes() {
      return this.b;
   }

   @JsonIncludeProperties({"name", "nodes"})
   @JsonPropertyOrder({"name", "nodes"})
   public static class ClusterInfoWrapper extends ClusterInfoDTO {
      public ClusterInfoWrapper(String var1, List<ClusterNodeInfoDTO> var2) {
         super(var1, var2);
      }

      @Override
      public List<ClusterNodeInfoDTO> getNodes() {
         return super.getNodes().stream().map(var0 -> (ClusterNodeInfoDTO)var0.createWrapperObject()).toList();
      }

      @Override
      protected Object createWrapperObject() {
         return null;
      }
   }
}
