Package com.intercom.api.types
Class ImageComponent
- java.lang.Object
-
- com.intercom.api.types.ImageComponent
-
public final class ImageComponent extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImageComponent._FinalStagestatic classImageComponent.Alignstatic classImageComponent.Builderstatic interfaceImageComponent.HeightStagestatic interfaceImageComponent.UrlStagestatic interfaceImageComponent.WidthStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageComponent.UrlStagebuilder()booleanequals(java.lang.Object other)java.util.Optional<UrlActionComponent>getAction()java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<ImageComponent.Align>getAlign()java.util.Optional<java.lang.String>getBottomMargin()intgetHeight()java.util.Optional<java.lang.String>getId()java.util.Optional<java.lang.Boolean>getRounded()java.lang.StringgetUrl()intgetWidth()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.util.Optional<java.lang.String> getId()
- Returns:
- A unique identifier for the component.
-
getUrl
public java.lang.String getUrl()
- Returns:
- The URL where the image is located.
-
getAlign
public java.util.Optional<ImageComponent.Align> getAlign()
- Returns:
- Aligns the image inside the component. Default is
left.
-
getWidth
public int getWidth()
- Returns:
- The exact width of the image in pixels.
-
getHeight
public int getHeight()
- Returns:
- The exact height of the image in pixels.
-
getRounded
public java.util.Optional<java.lang.Boolean> getRounded()
- Returns:
- Rounds the corners of the image. Default is
false.
-
getBottomMargin
public java.util.Optional<java.lang.String> getBottomMargin()
- Returns:
- Disables a component's margin-bottom of 10px.
-
getAction
public java.util.Optional<UrlActionComponent> getAction()
- Returns:
- This can be a URL Action only.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ImageComponent.UrlStage builder()
-
-