
com.plenigo.sdk.models.Image Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK wrapping plenigo REST-API for easier usage.
package com.plenigo.sdk.models;
import java.io.Serializable;
/**
*
* This object contains image information related to a product
*
*
* Thread safety: This class is thread safe and can be injected.
*
*/
public class Image implements Serializable {
private String url;
private String description;
private String altText;
/**
* Image constructor.
*
* @param url The URL of the image
* @param description The description of the image
* @param altText The alt text of the image
*/
public Image(String url, String description, String altText) {
this.url = url;
this.description = description;
this.altText = altText;
}
/**
* The URL of the image.
*
* @return The URL of the image
*/
public String getUrl() {
return url;
}
/**
* The description of the image.
*
* @return The description of the image
*/
public String getDescription() {
return description;
}
/**
* The alt text of the image.
*
* @return The alt text of the image
*/
public String getAltText() {
return altText;
}
@Override
public String toString() {
return "Image{" + "url='" + url + '\'' + ", description='" + description + '\'' + ", altText='" + altText + '\'' + '}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy