Class AddHeader.Builder

java.lang.Object
software.amazon.awscdk.services.ses.actions.AddHeader.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<AddHeader>
Enclosing class:
AddHeader

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

    • create

      @Stability(Stable) public static AddHeader.Builder create()
      Returns:
      a new instance of AddHeader.Builder.
    • name

      @Stability(Stable) public AddHeader.Builder name(String name)
      The name of the header to add.

      Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.

      Parameters:
      name - The name of the header to add. This parameter is required.
      Returns:
      this
    • value

      @Stability(Stable) public AddHeader.Builder value(String value)
      The value of the header to add.

      Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").

      Parameters:
      value - The value of the header to add. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public AddHeader build()
      Specified by:
      build in interface software.amazon.jsii.Builder<AddHeader>
      Returns:
      a newly built instance of AddHeader.