net.optionfactory.whatsapp.dto.templates.HeaderComponent Maven / Gradle / Ivy
package net.optionfactory.whatsapp.dto.templates;
import com.fasterxml.jackson.annotation.JsonInclude;
import net.optionfactory.whatsapp.dto.templates.type.ComponentType;
import net.optionfactory.whatsapp.dto.templates.type.HeaderFormat;
/**
* Header component
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class HeaderComponent extends Component {
/**
* Only applies to the HEADER type.
* Values: TEXT, IMAGE, DOCUMENT, VIDEO
*/
private HeaderFormat format;
/**
* Instantiates a new Header component.
*/
public HeaderComponent() {
super(ComponentType.HEADER);
}
/**
* Gets format.
*
* @return the format
*/
public HeaderFormat getFormat() {
return format;
}
/**
* Sets format.
*
* @param format the format
* @return the format
*/
public HeaderComponent setFormat(HeaderFormat format) {
this.format = format;
return this;
}
}