Class ImmutableFormValueSetEntry.Builder

  • Enclosing class:
    ImmutableFormValueSetEntry

    @NotThreadSafe
    public static final class ImmutableFormValueSetEntry.Builder
    extends Object
    Builds instances of type ImmutableFormValueSetEntry. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutableFormValueSetEntry.Builder from​(ModifiableFormValueSetEntry instance)
        Fill a builder with attribute values from the provided ModifiableFormValueSetEntry instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableFormValueSetEntry.Builder from​(FormValueSetEntry instance)
        Fill a builder with attribute values from the provided FormValueSetEntry instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • putLabel

        public final ImmutableFormValueSetEntry.Builder putLabel​(String key,
                                                                 String value)
        Put one entry to the label map.
        Parameters:
        key - The key in the label map
        value - The associated value in the label map
        Returns:
        this builder for use in a chained invocation
      • label

        public final ImmutableFormValueSetEntry.Builder label​(Map<String,​? extends String> entries)
        Sets or replaces all mappings from the specified map as entries for the label map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the label map
        Returns:
        this builder for use in a chained invocation
      • putAllLabel

        public final ImmutableFormValueSetEntry.Builder putAllLabel​(Map<String,​? extends String> entries)
        Put all mappings from the specified map as entries to label map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the label map
        Returns:
        this builder for use in a chained invocation
      • when

        public final ImmutableFormValueSetEntry.Builder when​(String when)
        Initializes the value for the when attribute.
        Parameters:
        when - The value for when (can be null)
        Returns:
        this builder for use in a chained invocation
      • putAdditionalProperties

        public final ImmutableFormValueSetEntry.Builder putAdditionalProperties​(@Nullable
                                                                                String key,
                                                                                @Nullable
                                                                                Object value)
        Put one entry to the additionalProperties map.
        Parameters:
        key - The key in the additionalProperties map
        value - The associated value in the additionalProperties map
        Returns:
        this builder for use in a chained invocation
      • additionalProperties

        public final ImmutableFormValueSetEntry.Builder additionalProperties​(Map<String,​? extends Object> entries)
        Sets or replaces all mappings from the specified map as entries for the additionalProperties map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the additionalProperties map
        Returns:
        this builder for use in a chained invocation
      • putAllAdditionalProperties

        public final ImmutableFormValueSetEntry.Builder putAllAdditionalProperties​(Map<String,​? extends Object> entries)
        Put all mappings from the specified map as entries to additionalProperties map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the additionalProperties map
        Returns:
        this builder for use in a chained invocation