Package io.jenkins.plugins.checks.api
Class ChecksImage
- java.lang.Object
-
- io.jenkins.plugins.checks.api.ChecksImage
-
public class ChecksImage extends Object
An image of a check. Users may use a image to show the code coverage, issues trend, etc.
-
-
Constructor Summary
Constructors Constructor Description ChecksImage(String alt, String imageURL, String caption)
Constructs an image with all parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getAlt()
Returns the alternative text for the image.Optional<String>
getCaption()
Returns the short description of the image.Optional<String>
getImageUrl()
Returns the image URL.Optional<String>
getImageURL()
Returns the image URL.String
toString()
-
-
-
Method Detail
-
getAlt
public Optional<String> getAlt()
Returns the alternative text for the image.- Returns:
- the alternative text for the image
-
getImageUrl
public Optional<String> getImageUrl()
Returns the image URL. Note: This method will be deprecated after 1.0.0, usegetImageURL()
instead.- Returns:
- the image URL
-
getCaption
public Optional<String> getCaption()
Returns the short description of the image.- Returns:
- the short description of the image
-
-