Package com.hubspot.slack.client.models
Class Field.Builder
java.lang.Object
com.hubspot.slack.client.models.Field.Builder
- Enclosing class:
Field
@Generated(from="FieldIF",
generator="Immutables")
@NotThreadSafe
public static final class Field.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newField.final Field.BuilderFill a builder with attribute values from the providedFieldIFinstance.final Field.BuildersetShort(boolean isShort) Initializes the value for theshortattribute.final Field.BuilderInitializes the optional valuetitleto title.final Field.BuilderInitializes the optional valuetitleto title.final Field.BuilderInitializes the value for thevalueattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedFieldIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the optional valuetitleto title.- Parameters:
title- The value for title,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTitle
Initializes the optional valuetitleto title.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
setValue
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
setShort
Initializes the value for theshortattribute.- Parameters:
isShort- The value for isShort- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newField.- Returns:
- An immutable instance of Field
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-