Class DonutSection.Builder

  • Enclosing class:
    DonutSection

    public static final class DonutSection.Builder
    extends java.lang.Object
    Builder class for DonutSection.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of DonutSection.
    • Method Detail

      • setParts

        public DonutSection.Builder setParts​(java.util.List<DonutPart> parts)
        Array of portions or parts of the donut or stats chart.
        Parameters:
        parts - New value for the property.
      • setRowListField

        public DonutSection.Builder setRowListField​(java.lang.String rowListField)
        Field of the root of the api result set for forming parts.
        Parameters:
        rowListField - New value for the property.
      • setTemplate

        public DonutSection.Builder setTemplate​(java.lang.Boolean template)
        If true, the section will be appled as template for forming parts. Only one part will be formed from each element of 'row_list_field'.
        Parameters:
        template - New value for the property.