public static final class FlexBoxComponent.Builder
extends java.lang.Object
FlexBoxComponent builder static inner class.| Modifier and Type | Method and Description |
|---|---|
FlexBoxComponent |
build()
Returns a
FlexBoxComponent built from the parameters previously set. |
FlexBoxComponent.Builder |
setAction(Action action)
Sets the
action and returns a reference to this Builder so that the methods can be chained together. |
FlexBoxComponent.Builder |
setFlex(int flex)
Sets the
flex and returns a reference to this Builder so that the methods can be chained together. |
FlexBoxComponent.Builder |
setMargin(FlexMessageComponent.Margin margin)
Sets the
margin and returns a reference to this Builder so that the methods can be chained together. |
FlexBoxComponent.Builder |
setSpacing(FlexMessageComponent.Margin spacing)
Sets the
spacing and returns a reference to this Builder so that the methods can be chained together. |
public FlexBoxComponent.Builder setFlex(int flex)
flex and returns a reference to this Builder so that the methods can be chained together.flex - the flex to setpublic FlexBoxComponent.Builder setSpacing(@Nullable FlexMessageComponent.Margin spacing)
spacing and returns a reference to this Builder so that the methods can be chained together.spacing - the spacing to setpublic FlexBoxComponent.Builder setMargin(@Nullable FlexMessageComponent.Margin margin)
margin and returns a reference to this Builder so that the methods can be chained together.margin - the margin to setpublic FlexBoxComponent.Builder setAction(@Nullable Action action)
action and returns a reference to this Builder so that the methods can be chained together.action - the action to setpublic FlexBoxComponent build()
FlexBoxComponent built from the parameters previously set.FlexBoxComponent built with parameters of this FlexBoxComponent.Builder