![JAR search and dependency download from the Maven repository](/logo.png)
com.mailgun.model.domains.DomainConnectionRequest Maven / Gradle / Ivy
Show all versions of mailgun-java Show documentation
package com.mailgun.model.domains;
import feign.form.FormProperty;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
/**
*
* Domain connection request.
*
*
* @see Domains
*/
@Getter
@ToString
@EqualsAndHashCode
@Builder
public class DomainConnectionRequest {
/**
*
* true
or false
*
*
*
* If set to true
, this requires the message only be sent over a TLS connection.
* If a TLS connection can not be established, Mailgun will not deliver the message.
*
*
*
* If set to false
, Mailgun will still try and upgrade the connection,
* but if Mailgun cannot, the message will be delivered over a plaintext SMTP connection.
*
*
*
* The default is false
.
*
*/
@FormProperty("require_tls")
Boolean requireTls;
/**
*
* true
or false
*
*
*
* If set to true
, the certificate and hostname will not be verified when trying to establish a TLS connection
* and Mailgun will accept any certificate during delivery.
*
*
*
* If set to false
, Mailgun will verify the certificate and hostname.
* If either one can not be verified, a TLS connection will not be established.
*
*
*
* The default is false
.
*
*/
@FormProperty("skip_verification")
Boolean skipVerification;
}