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 java.lang.Object implements ImageComponent.UrlStage, ImageComponent.WidthStage, ImageComponent.HeightStage, ImageComponent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageComponent._FinalStageaction(UrlActionComponent action)This can be a URL Action only.ImageComponent._FinalStageaction(java.util.Optional<UrlActionComponent> action)This can be a URL Action only.ImageComponent._FinalStagealign(ImageComponent.Align align)Aligns the image inside the component.ImageComponent._FinalStagealign(java.util.Optional<ImageComponent.Align> align)Aligns the image inside the component.ImageComponent._FinalStagebottomMargin(java.lang.String bottomMargin)Disables a component's margin-bottom of 10px.ImageComponent._FinalStagebottomMargin(java.util.Optional<java.lang.String> bottomMargin)Disables a component's margin-bottom of 10px.ImageComponentbuild()ImageComponent.Builderfrom(ImageComponent other)ImageComponent._FinalStageheight(int height)The exact height of the image in pixels.ImageComponent._FinalStageid(java.lang.String id)A unique identifier for the component.ImageComponent._FinalStageid(java.util.Optional<java.lang.String> id)A unique identifier for the component.ImageComponent._FinalStagerounded(java.lang.Boolean rounded)Rounds the corners of the image.ImageComponent._FinalStagerounded(java.util.Optional<java.lang.Boolean> rounded)Rounds the corners of the image.ImageComponent.WidthStageurl(java.lang.String url)The URL where the image is located.ImageComponent.HeightStagewidth(int width)The exact width of the image in pixels.
-
-
-
Method Detail
-
from
public ImageComponent.Builder from(ImageComponent other)
- Specified by:
fromin interfaceImageComponent.UrlStage
-
url
public ImageComponent.WidthStage url(@NotNull java.lang.String url)
The URL where the image is located.The URL where the image is located.
- Specified by:
urlin interfaceImageComponent.UrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
width
public ImageComponent.HeightStage width(int width)
The exact width of the image in pixels.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
public ImageComponent._FinalStage height(int height)
The exact height of the image in pixels.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
public ImageComponent._FinalStage action(UrlActionComponent 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
public ImageComponent._FinalStage action(java.util.Optional<UrlActionComponent> action)
This can be a URL Action only.
- Specified by:
actionin interfaceImageComponent._FinalStage
-
bottomMargin
public ImageComponent._FinalStage bottomMargin(java.lang.String 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
public ImageComponent._FinalStage bottomMargin(java.util.Optional<java.lang.String> bottomMargin)
Disables a component's margin-bottom of 10px.
- Specified by:
bottomMarginin interfaceImageComponent._FinalStage
-
rounded
public ImageComponent._FinalStage rounded(java.lang.Boolean 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
public ImageComponent._FinalStage rounded(java.util.Optional<java.lang.Boolean> rounded)
Rounds the corners of the image. Default is
false.- Specified by:
roundedin interfaceImageComponent._FinalStage
-
align
public ImageComponent._FinalStage align(ImageComponent.Align 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
public ImageComponent._FinalStage align(java.util.Optional<ImageComponent.Align> align)
Aligns the image inside the component. Default is
left.- Specified by:
alignin interfaceImageComponent._FinalStage
-
id
public ImageComponent._FinalStage id(java.lang.String id)
A unique identifier for the component.
- Specified by:
idin interfaceImageComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public ImageComponent._FinalStage id(java.util.Optional<java.lang.String> id)
A unique identifier for the component.
- Specified by:
idin interfaceImageComponent._FinalStage
-
build
public ImageComponent build()
- Specified by:
buildin interfaceImageComponent._FinalStage
-
-