/** * <p> * The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send * an email. If you choose <code>UseDefaultValue</code>, Amazon SES will use amazonses.com (or a subdomain of that) * as the MAIL FROM domain. If you choose <code>RejectMessage</code>, Amazon SES will return a * <code>MailFromDomainNotVerified</code> error and not send the email. * </p> * <p> * The action specified in <code>BehaviorOnMXFailure</code> is taken when the custom MAIL FROM domain setup is in * the <code>Pending</code>, <code>Failed</code>, and <code>TemporaryFailure</code> states. * </p> * * @param behaviorOnMXFailure * The action that you want Amazon SES to take if it cannot successfully read the required MX record when you * send an email. If you choose <code>UseDefaultValue</code>, Amazon SES will use amazonses.com (or a * subdomain of that) as the MAIL FROM domain. If you choose <code>RejectMessage</code>, Amazon SES will * return a <code>MailFromDomainNotVerified</code> error and not send the email.</p> * <p> * The action specified in <code>BehaviorOnMXFailure</code> is taken when the custom MAIL FROM domain setup * is in the <code>Pending</code>, <code>Failed</code>, and <code>TemporaryFailure</code> states. * @return Returns a reference to this object so that method calls can be chained together. * @see BehaviorOnMXFailure */ public SetIdentityMailFromDomainRequest withBehaviorOnMXFailure(BehaviorOnMXFailure behaviorOnMXFailure) { this.behaviorOnMXFailure = behaviorOnMXFailure.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return BehaviorOnMXFailure corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static BehaviorOnMXFailure fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (BehaviorOnMXFailure enumEntry : BehaviorOnMXFailure.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A * value of <code>UseDefaultValue</code> indicates that if Amazon SES cannot read the required MX record, it uses * amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of <code>RejectMessage</code> indicates * that if Amazon SES cannot read the required MX record, Amazon SES returns a * <code>MailFromDomainNotVerified</code> error and does not send the email. * </p> * <p> * The custom MAIL FROM setup states that result in this behavior are <code>Pending</code>, <code>Failed</code>, and * <code>TemporaryFailure</code>. * </p> * * @param behaviorOnMXFailure * The action that Amazon SES takes if it cannot successfully read the required MX record when you send an * email. A value of <code>UseDefaultValue</code> indicates that if Amazon SES cannot read the required MX * record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of * <code>RejectMessage</code> indicates that if Amazon SES cannot read the required MX record, Amazon SES * returns a <code>MailFromDomainNotVerified</code> error and does not send the email.</p> * <p> * The custom MAIL FROM setup states that result in this behavior are <code>Pending</code>, * <code>Failed</code>, and <code>TemporaryFailure</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see BehaviorOnMXFailure */ public IdentityMailFromDomainAttributes withBehaviorOnMXFailure(BehaviorOnMXFailure behaviorOnMXFailure) { this.behaviorOnMXFailure = behaviorOnMXFailure.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return BehaviorOnMXFailure corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static BehaviorOnMXFailure fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (BehaviorOnMXFailure enumEntry : BehaviorOnMXFailure.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
this.behaviorOnMXFailure = behaviorOnMXFailure.toString();
this.behaviorOnMXFailure = behaviorOnMXFailure.toString(); return this;
this.behaviorOnMXFailure = behaviorOnMXFailure.toString();
this.behaviorOnMXFailure = behaviorOnMXFailure.toString(); return this;
/** * <p> * The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send * an email. If you choose <code>UseDefaultValue</code>, Amazon SES will use amazonses.com (or a subdomain of that) * as the MAIL FROM domain. If you choose <code>RejectMessage</code>, Amazon SES will return a * <code>MailFromDomainNotVerified</code> error and not send the email. * </p> * <p> * The action specified in <code>BehaviorOnMXFailure</code> is taken when the custom MAIL FROM domain setup is in * the <code>Pending</code>, <code>Failed</code>, and <code>TemporaryFailure</code> states. * </p> * * @param behaviorOnMXFailure * The action that you want Amazon SES to take if it cannot successfully read the required MX record when you * send an email. If you choose <code>UseDefaultValue</code>, Amazon SES will use amazonses.com (or a * subdomain of that) as the MAIL FROM domain. If you choose <code>RejectMessage</code>, Amazon SES will * return a <code>MailFromDomainNotVerified</code> error and not send the email.</p> * <p> * The action specified in <code>BehaviorOnMXFailure</code> is taken when the custom MAIL FROM domain setup * is in the <code>Pending</code>, <code>Failed</code>, and <code>TemporaryFailure</code> states. * @return Returns a reference to this object so that method calls can be chained together. * @see BehaviorOnMXFailure */ public SetIdentityMailFromDomainRequest withBehaviorOnMXFailure(BehaviorOnMXFailure behaviorOnMXFailure) { this.behaviorOnMXFailure = behaviorOnMXFailure.toString(); return this; }
/** * <p> * The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A * value of <code>UseDefaultValue</code> indicates that if Amazon SES cannot read the required MX record, it uses * amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of <code>RejectMessage</code> indicates * that if Amazon SES cannot read the required MX record, Amazon SES returns a * <code>MailFromDomainNotVerified</code> error and does not send the email. * </p> * <p> * The custom MAIL FROM setup states that result in this behavior are <code>Pending</code>, <code>Failed</code>, and * <code>TemporaryFailure</code>. * </p> * * @param behaviorOnMXFailure * The action that Amazon SES takes if it cannot successfully read the required MX record when you send an * email. A value of <code>UseDefaultValue</code> indicates that if Amazon SES cannot read the required MX * record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of * <code>RejectMessage</code> indicates that if Amazon SES cannot read the required MX record, Amazon SES * returns a <code>MailFromDomainNotVerified</code> error and does not send the email.</p> * <p> * The custom MAIL FROM setup states that result in this behavior are <code>Pending</code>, * <code>Failed</code>, and <code>TemporaryFailure</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see BehaviorOnMXFailure */ public IdentityMailFromDomainAttributes withBehaviorOnMXFailure(BehaviorOnMXFailure behaviorOnMXFailure) { this.behaviorOnMXFailure = behaviorOnMXFailure.toString(); return this; }