All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy