Class EmailMapping.Jsii$Proxy

  • All Implemented Interfaces:
    EmailMapping, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    EmailMapping

    @Stability(Stable)
    @Internal
    public static final class EmailMapping.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements EmailMapping
    An implementation for EmailMapping
    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Jsii$Proxy​(EmailMapping.Builder builder)
      Constructor that initializes the object based on literal property values passed by the EmailMapping.Builder.
      protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getTargetEmails

        public final List<String> getTargetEmails()
        Description copied from interface: EmailMapping
        A list of target email addresses that should receive the forwarded emails for the given email addresses matched by either `receiveEmail` or `receivePrefix`.

        Make sure that you only specify email addresses that are verified by SES. Otherwise SES won't send them out.

        Example: ['foobar@gmail.com', 'foo+bar@gmail.com', 'whatever@example.org']

        Specified by:
        getTargetEmails in interface EmailMapping
      • getReceiveEmail

        public final String getReceiveEmail()
        Description copied from interface: EmailMapping
        You can define a string that is matching an email address, e.g. `hello@example.org`.

        If this property is defined, the receivePrefix will be ignored. You must define either this property or receivePrefix, otherwise no emails will be forwarded.

        Specified by:
        getReceiveEmail in interface EmailMapping
      • getReceivePrefix

        public final String getReceivePrefix()
        Description copied from interface: EmailMapping
        A short way to match a specific email addresses by only providing a prefix, e.g. `hello`. The prefix will be combined with the given domain name from EmailForwardingRuleProps. If an email was sent to this specific email address, all emails matching this receiver will be forwarded to all email addresses defined in `targetEmails`.

        If receiveEmail property is defined as well, then receiveEmail is preferred. Hence, only define one of them.

        Specified by:
        getReceivePrefix in interface EmailMapping
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object