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

net.optionfactory.whatsapp.dto.messages.DateTimeParameter Maven / Gradle / Ivy

package net.optionfactory.whatsapp.dto.messages;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import net.optionfactory.whatsapp.dto.messages.type.ParameterType;

/**
 * The type Date time parameter.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DateTimeParameter extends Parameter {

    @JsonProperty("date_time")
    private DateTime dateTime;


    /**
     * Instantiates a new Date time parameter.
     */
    public DateTimeParameter() {
        super(ParameterType.DATE_TIME);
    }


    /**
     * Instantiates a new Date time parameter.
     *
     * @param dateTime the date time
     */
    public DateTimeParameter(DateTime dateTime) {
        super(ParameterType.DATE_TIME);

        this.dateTime = dateTime;
    }

    /**
     * Gets date time.
     *
     * @return the date time
     */
    public DateTime getDateTime() {
        return dateTime;
    }

    /**
     * Sets date time.
     *
     * @param dateTime the date time
     * @return the date time
     */
    public DateTimeParameter setDateTime(DateTime dateTime) {
        this.dateTime = dateTime;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy