public static final class FlexIconComponent.Builder
extends java.lang.Object
FlexIconComponent builder static inner class.| Modifier and Type | Method and Description |
|---|---|
FlexIconComponent |
build()
Returns a
FlexIconComponent built from the parameters previously set. |
FlexIconComponent.Builder |
setAspectRatio(FlexMessageComponent.AspectRatio aspectRatio)
Sets the
aspectRatio and returns a reference to this Builder so that the methods can be chained together. |
FlexIconComponent.Builder |
setMargin(FlexMessageComponent.Margin margin)
Sets the
margin and returns a reference to this Builder so that the methods can be chained together. |
FlexIconComponent.Builder |
setSize(FlexMessageComponent.Size size)
Sets the
size and returns a reference to this Builder so that the methods can be chained together. |
public FlexIconComponent.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 FlexIconComponent.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 FlexIconComponent.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 FlexIconComponent build()
FlexIconComponent built from the parameters previously set.FlexIconComponent built with parameters of this FlexIconComponent.Builder