public static final class FlexImageComponent.Builder
extends java.lang.Object
FlexImageComponent builder static inner class.| Modifier and Type | Method and Description |
|---|---|
FlexImageComponent |
build()
Returns a
FlexImageComponent built from the parameters previously set. |
FlexImageComponent.Builder |
setAction(Action action)
Sets the
action and returns a reference to this Builder so that the methods can be chained together. |
FlexImageComponent.Builder |
setAlign(FlexMessageComponent.Alignment align)
Sets the
align and returns a reference to this Builder so that the methods can be chained together. |
FlexImageComponent.Builder |
setAspectMode(FlexMessageComponent.AspectMode aspectMode)
Sets the
aspectMode and returns a reference to this Builder so that the methods can be chained together. |
FlexImageComponent.Builder |
setAspectRatio(FlexMessageComponent.AspectRatio aspectRatio)
Sets the
aspectRatio and returns a reference to this Builder so that the methods can be chained together. |
FlexImageComponent.Builder |
setBackgroundColor(java.lang.String backgroundColor)
Sets the
backgroundColor and returns a reference to this Builder so that the methods can be chained together. |
FlexImageComponent.Builder |
setFlex(int flex)
Sets the
flex and returns a reference to this Builder so that the methods can be chained together. |
FlexImageComponent.Builder |
setGravity(FlexMessageComponent.Gravity gravity)
Sets the
gravity and returns a reference to this Builder so that the methods can be chained together. |
FlexImageComponent.Builder |
setMargin(FlexMessageComponent.Margin margin)
Sets the
margin and returns a reference to this Builder so that the methods can be chained together. |
FlexImageComponent.Builder |
setSize(FlexMessageComponent.Size size)
Sets the
size and returns a reference to this Builder so that the methods can be chained together. |
public FlexImageComponent.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 FlexImageComponent.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 FlexImageComponent.Builder setAlign(@Nullable FlexMessageComponent.Alignment align)
align and returns a reference to this Builder so that the methods can be chained together.align - the align to setpublic FlexImageComponent.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 FlexImageComponent.Builder setSize(@Nullable FlexMessageComponent.Size size)
size and returns a reference to this Builder so that the methods can be chained together.size - the size to setpublic FlexImageComponent.Builder setAspectRatio(@Nullable FlexMessageComponent.AspectRatio aspectRatio)
aspectRatio and returns a reference to this Builder so that the methods can be chained together.aspectRatio - the aspectRatio to setpublic FlexImageComponent.Builder setAspectMode(@Nullable FlexMessageComponent.AspectMode aspectMode)
aspectMode and returns a reference to this Builder so that the methods can be chained together.aspectMode - the aspectMode to setpublic FlexImageComponent.Builder setBackgroundColor(@Nullable java.lang.String backgroundColor)
backgroundColor and returns a reference to this Builder so that the methods can be chained together.backgroundColor - the backgroundColor to setpublic FlexImageComponent.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 FlexImageComponent build()
FlexImageComponent built from the parameters previously set.FlexImageComponent built with parameters of this FlexImageComponent.Builder