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

com.mailgun.model.suppression.complaints.ComplaintsSingleItemRequest Maven / Gradle / Ivy

package com.mailgun.model.suppression.complaints;

import com.mailgun.util.DateTimeUtil;
import feign.form.FormProperty;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

import java.time.ZonedDateTime;

/**
 * 

* Complaints single item request. *

* * @see Suppressions/Complaints */ @Getter @ToString @EqualsAndHashCode @Builder public class ComplaintsSingleItemRequest { /** *

* Valid email address. *

*/ String address; /** *

* Timestamp of an complaints event (optional, default: current time). *

*/ @FormProperty("created_at") String createdAt; public static class ComplaintsSingleItemRequestBuilder { /** *

* Timestamp of an complaints event (optional, default: current time). *

* * @param zonedDateTime {@link ZonedDateTime} * @return Returns a reference to this object so that method calls can be chained together. */ public ComplaintsSingleItemRequest.ComplaintsSingleItemRequestBuilder createdAt(ZonedDateTime zonedDateTime) { this.createdAt = DateTimeUtil.toStringNameTimeZone(zonedDateTime); return this; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy