Class InputErrors.Builder
java.lang.Object
com.hubspot.slack.client.models.dialog.form.InputErrors.Builder
- Enclosing class:
InputErrors
@Generated(from="InputErrorsIF",
generator="Immutables")
@NotThreadSafe
public static final class InputErrors.Builder
extends Object
Builds instances of type
InputErrors.
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 Summary
Modifier and TypeMethodDescriptionfinal InputErrors.BuilderaddAllErrors(Iterable<? extends InputError> elements) Adds elements toerrorslist.final InputErrors.BuilderaddErrors(InputError element) Adds one element toerrorslist.final InputErrors.BuilderaddErrors(InputError... elements) Adds elements toerrorslist.build()Builds a newInputErrors.final InputErrors.Builderfrom(InputErrorsIF instance) Fill a builder with attribute values from the providedInputErrorsIFinstance.final InputErrors.BuildersetErrors(Iterable<? extends InputError> elements) Sets or replaces all elements forerrorslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedInputErrorsIFinstance. 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
-
addErrors
Adds one element toerrorslist.- Parameters:
element- A errors element- Returns:
thisbuilder for use in a chained invocation
-
addErrors
Adds elements toerrorslist.- Parameters:
elements- An array of errors elements- Returns:
thisbuilder for use in a chained invocation
-
setErrors
Sets or replaces all elements forerrorslist.- Parameters:
elements- An iterable of errors elements- Returns:
thisbuilder for use in a chained invocation
-
addAllErrors
Adds elements toerrorslist.- Parameters:
elements- An iterable of errors elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newInputErrors.- Returns:
- An immutable instance of InputErrors
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-