public static final class FlexButtonComponent.Builder
extends java.lang.Object
FlexButtonComponent builder static inner class.| Modifier and Type | Method and Description |
|---|---|
FlexButtonComponent |
build()
Returns a
FlexButtonComponent built from the parameters previously set. |
FlexButtonComponent.Builder |
setColor(java.lang.String color)
Sets the
color and returns a reference to this Builder so that the methods can be chained together. |
FlexButtonComponent.Builder |
setFlex(int flex)
Sets the
flex and returns a reference to this Builder so that the methods can be chained together. |
FlexButtonComponent.Builder |
setGravity(FlexMessageComponent.Gravity gravity)
Sets the
gravity and returns a reference to this Builder so that the methods can be chained together. |
FlexButtonComponent.Builder |
setHeight(FlexMessageComponent.Height height)
Sets the
height and returns a reference to this Builder so that the methods can be chained together. |
FlexButtonComponent.Builder |
setMargin(FlexMessageComponent.Margin margin)
Sets the
margin and returns a reference to this Builder so that the methods can be chained together. |
FlexButtonComponent.Builder |
setStyle(FlexMessageComponent.Style style)
Sets the
style and returns a reference to this Builder so that the methods can be chained together. |
public FlexButtonComponent.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 FlexButtonComponent.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 FlexButtonComponent.Builder setHeight(@Nullable FlexMessageComponent.Height height)
height and returns a reference to this Builder so that the methods can be chained together.height - the height to setpublic FlexButtonComponent.Builder setStyle(@Nullable FlexMessageComponent.Style style)
style and returns a reference to this Builder so that the methods can be chained together.style - the style to setpublic FlexButtonComponent.Builder setColor(@Nullable java.lang.String color)
color and returns a reference to this Builder so that the methods can be chained together.color - the color to setpublic FlexButtonComponent.Builder setGravity(@Nullable FlexMessageComponent.Gravity gravity)
gravity and returns a reference to this Builder so that the methods can be chained together.gravity - the gravity to setpublic FlexButtonComponent build()
FlexButtonComponent built from the parameters previously set.FlexButtonComponent built with parameters of this FlexButtonComponent.Builder