Class EmailSettings.Builder

java.lang.Object
software.amazon.awscdk.services.cognito.EmailSettings.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<EmailSettings>
Enclosing interface:
EmailSettings

@Stability(Stable) public static final class EmailSettings.Builder extends Object implements software.amazon.jsii.Builder<EmailSettings>
A builder for EmailSettings
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • from

      @Stability(Stable) public EmailSettings.Builder from(String from)
      Sets the value of EmailSettings.getFrom()
      Parameters:
      from - The 'from' address on the emails received by the user.
      Returns:
      this
    • replyTo

      @Stability(Stable) public EmailSettings.Builder replyTo(String replyTo)
      Sets the value of EmailSettings.getReplyTo()
      Parameters:
      replyTo - The 'replyTo' address on the emails received by the user as defined by IETF RFC-5322. When set, most email clients recognize to change 'to' line to this address when a reply is drafted.
      Returns:
      this
    • build

      @Stability(Stable) public EmailSettings build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<EmailSettings>
      Returns:
      a new instance of EmailSettings
      Throws:
      NullPointerException - if any required attribute was not provided