Class DataAttributesBuilder


  • public final class DataAttributesBuilder
    extends NativeBase

    Data attributes collection builder.

    Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

    • Constructor Detail

      • DataAttributesBuilder

        public DataAttributesBuilder()

        Creates a data attributes builder instance.

    • Method Detail

      • with

        @NonNull
        public DataAttributesBuilder with​(@NonNull
                                          java.lang.String name,
                                          @NonNull
                                          java.lang.String value)

        Configures the builder to add the given attribute.

        Parameters:
        name -

        Attribute name.

        value -

        Attribute value.

        Returns:

        This data attributes builder instance.

      • with

        @NonNull
        public DataAttributesBuilder with​(@NonNull
                                          java.lang.String name,
                                          long value)

        Configures the builder to add the given attribute.

        Parameters:
        name -

        Attribute name.

        value -

        Attribute value.

        Returns:

        This data attributes builder instance.

      • with

        @NonNull
        public DataAttributesBuilder with​(@NonNull
                                          java.lang.String name,
                                          float value)

        Configures the builder to add the given attribute.

        Parameters:
        name -

        Attribute name.

        value -

        Attribute value.

        Returns:

        This data attributes builder instance.

      • with

        @NonNull
        public DataAttributesBuilder with​(@NonNull
                                          java.lang.String name,
                                          double value)

        Configures the builder to add the given attribute.

        Parameters:
        name -

        Attribute name.

        value -

        Attribute value.

        Returns:

        This data attributes builder instance.

      • with

        @NonNull
        public DataAttributesBuilder with​(@NonNull
                                          java.lang.String name,
                                          boolean value)

        Configures the builder to add the given attribute.

        Parameters:
        name -

        Attribute name.

        value -

        Attribute value.

        Returns:

        This data attributes builder instance.

      • with

        @NonNull
        public DataAttributesBuilder with​(@NonNull
                                          java.lang.String name,
                                          @NonNull
                                          DataAttributeValue value)

        Configures the builder to add the given attribute.

        Parameters:
        name -

        Attribute name.

        value -

        Attribute value.

        Returns:

        This data attributes builder instance.

      • build

        @NonNull
        public DataAttributes build()

        Builds instance of DataAttributes.

        Returns:

        Instance of the data attributes created with the given attributes.