Package com.intercom.api.types
Class ImageComponent.Builder
java.lang.Object
com.intercom.api.types.ImageComponent.Builder
- All Implemented Interfaces:
ImageComponent._FinalStage,ImageComponent.HeightStage,ImageComponent.UrlStage,ImageComponent.WidthStage
- Enclosing class:
ImageComponent
public static final class ImageComponent.Builder
extends Object
implements ImageComponent.UrlStage, ImageComponent.WidthStage, ImageComponent.HeightStage, ImageComponent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaction(UrlActionComponent action) This can be a URL Action only.action(Optional<UrlActionComponent> action) align(ImageComponent.Align align) Aligns the image inside the component.align(Optional<ImageComponent.Align> align) bottomMargin(String bottomMargin) Disables a component's margin-bottom of 10px.bottomMargin(Optional<String> bottomMargin) build()from(ImageComponent other) height(int height) The exact height of the image in pixels.A unique identifier for the component.Rounds the corners of the image.The URL where the image is located.width(int width) The exact width of the image in pixels.
-
Method Details
-
from
- Specified by:
fromin interfaceImageComponent.UrlStage
-
url
The URL where the image is located.
- Specified by:
urlin interfaceImageComponent.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
width
The exact width of the image in pixels.
- Specified by:
widthin interfaceImageComponent.WidthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
height
The exact height of the image in pixels.
- Specified by:
heightin interfaceImageComponent.HeightStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
This can be a URL Action only.
- Specified by:
actionin interfaceImageComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
- Specified by:
actionin interfaceImageComponent._FinalStage
-
bottomMargin
Disables a component's margin-bottom of 10px.
- Specified by:
bottomMarginin interfaceImageComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
bottomMargin
- Specified by:
bottomMarginin interfaceImageComponent._FinalStage
-
rounded
Rounds the corners of the image. Default is
false.- Specified by:
roundedin interfaceImageComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rounded
- Specified by:
roundedin interfaceImageComponent._FinalStage
-
align
Aligns the image inside the component. Default is
left.- Specified by:
alignin interfaceImageComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
align
- Specified by:
alignin interfaceImageComponent._FinalStage
-
id
A unique identifier for the component.
- Specified by:
idin interfaceImageComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
- Specified by:
idin interfaceImageComponent._FinalStage
-
build
- Specified by:
buildin interfaceImageComponent._FinalStage
-