com.geotab.model.entity.notification.WebRequestTemplate Maven / Gradle / Ivy
package com.geotab.model.entity.notification;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
/**
* URL template.
*/
@Getter @Setter
@NoArgsConstructor
@SuperBuilder(builderMethodName = "webRequestTemplateBuilder")
public class WebRequestTemplate extends NotificationBinaryFile {
/**
* The body.
*/
private String postBody;
/**
* The request type is an HTTP GET or POST.
*/
private WebRequestTemplateHttpVerb requestType;
/**
* The url represented by a string.
*/
private String url;
{
setFileType(MediaFileType.WEB_REQUEST_TEMPLATE);
setType(NotificationBinaryFileType.WEB_REQUEST_TEMPLATE);
}
}