Package io.dialob.api.form
Class ImmutableFormValueSetEntry.Builder
- java.lang.Object
-
- io.dialob.api.form.ImmutableFormValueSetEntry.Builder
-
- Enclosing class:
- ImmutableFormValueSetEntry
@NotThreadSafe public static final class ImmutableFormValueSetEntry.Builder extends Object
Builds instances of typeImmutableFormValueSetEntry. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableFormValueSetEntry.BuilderadditionalProperties(Map<String,? extends Object> entries)Sets or replaces all mappings from the specified map as entries for theadditionalPropertiesmap.ImmutableFormValueSetEntrybuild()Builds a newImmutableFormValueSetEntry.ImmutableFormValueSetEntry.Builderfrom(FormValueSetEntry instance)Fill a builder with attribute values from the providedFormValueSetEntryinstance.ImmutableFormValueSetEntry.Builderfrom(ModifiableFormValueSetEntry instance)Fill a builder with attribute values from the providedModifiableFormValueSetEntryinstance.ImmutableFormValueSetEntry.Builderid(String id)Initializes the value for theidattribute.ImmutableFormValueSetEntry.Builderlabel(Map<String,? extends String> entries)Sets or replaces all mappings from the specified map as entries for thelabelmap.ImmutableFormValueSetEntry.BuilderputAdditionalProperties(String key, Object value)Put one entry to theadditionalPropertiesmap.ImmutableFormValueSetEntry.BuilderputAdditionalProperties(Map.Entry<String,? extends Object> entry)Put one entry to theadditionalPropertiesmap.ImmutableFormValueSetEntry.BuilderputAllAdditionalProperties(Map<String,? extends Object> entries)Put all mappings from the specified map as entries toadditionalPropertiesmap.ImmutableFormValueSetEntry.BuilderputAllLabel(Map<String,? extends String> entries)Put all mappings from the specified map as entries tolabelmap.ImmutableFormValueSetEntry.BuilderputLabel(String key, String value)Put one entry to thelabelmap.ImmutableFormValueSetEntry.BuilderputLabel(Map.Entry<String,? extends String> entry)Put one entry to thelabelmap.ImmutableFormValueSetEntry.Builderwhen(String when)Initializes the value for thewhenattribute.
-
-
-
Method Detail
-
from
public final ImmutableFormValueSetEntry.Builder from(ModifiableFormValueSetEntry instance)
Fill a builder with attribute values from the providedModifiableFormValueSetEntryinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableFormValueSetEntry.Builder from(FormValueSetEntry instance)
Fill a builder with attribute values from the providedFormValueSetEntryinstance. 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:
thisbuilder for use in a chained invocation
-
id
public final ImmutableFormValueSetEntry.Builder id(String id)
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
putLabel
public final ImmutableFormValueSetEntry.Builder putLabel(String key, String value)
Put one entry to thelabelmap.- Parameters:
key- The key in the label mapvalue- The associated value in the label map- Returns:
thisbuilder for use in a chained invocation
-
putLabel
public final ImmutableFormValueSetEntry.Builder putLabel(Map.Entry<String,? extends String> entry)
Put one entry to thelabelmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder 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 thelabelmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the label map- Returns:
thisbuilder 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 tolabelmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the label map- Returns:
thisbuilder for use in a chained invocation
-
when
public final ImmutableFormValueSetEntry.Builder when(String when)
Initializes the value for thewhenattribute.- Parameters:
when- The value for when (can benull)- Returns:
thisbuilder for use in a chained invocation
-
putAdditionalProperties
public final ImmutableFormValueSetEntry.Builder putAdditionalProperties(@Nullable String key, @Nullable Object value)
Put one entry to theadditionalPropertiesmap.- Parameters:
key- The key in the additionalProperties mapvalue- The associated value in the additionalProperties map- Returns:
thisbuilder for use in a chained invocation
-
putAdditionalProperties
public final ImmutableFormValueSetEntry.Builder putAdditionalProperties(Map.Entry<String,? extends Object> entry)
Put one entry to theadditionalPropertiesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder 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 theadditionalPropertiesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the additionalProperties map- Returns:
thisbuilder 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 toadditionalPropertiesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the additionalProperties map- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableFormValueSetEntry build()
Builds a newImmutableFormValueSetEntry.- Returns:
- An immutable instance of FormValueSetEntry
- Throws:
IllegalStateException- if any required attributes are missing
-
-