@NotThreadSafe public static final class ViewStateValuesPayload.Builder extends Object
ViewStateValuesPayload.
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.
public final ViewStateValuesPayload.Builder from(ViewStateValuesPayloadIF instance)
ViewStateValuesPayloadIF 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.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewStateValuesPayload.Builder putBlockIdToActionIdToValues(String key, Map<String,ViewInput> value)
blockIdToActionIdToValues map.key - The key in the blockIdToActionIdToValues mapvalue - The associated value in the blockIdToActionIdToValues mapthis builder for use in a chained invocationpublic final ViewStateValuesPayload.Builder putBlockIdToActionIdToValues(Map.Entry<String,? extends Map<String,ViewInput>> entry)
blockIdToActionIdToValues map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ViewStateValuesPayload.Builder setBlockIdToActionIdToValues(Map<String,? extends Map<String,ViewInput>> blockIdToActionIdToValues)
blockIdToActionIdToValues map. Nulls are not permittedblockIdToActionIdToValues - The entries that will be added to the blockIdToActionIdToValues mapthis builder for use in a chained invocationpublic final ViewStateValuesPayload.Builder putAllBlockIdToActionIdToValues(Map<String,? extends Map<String,ViewInput>> blockIdToActionIdToValues)
blockIdToActionIdToValues map. Nulls are not permittedblockIdToActionIdToValues - The entries that will be added to the blockIdToActionIdToValues mapthis builder for use in a chained invocationpublic ViewStateValuesPayload build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ViewStateValuesPayload.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.