Class AddHeaderProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • name

      @Stability(Stable) public AddHeaderProps.Builder name(String name)
      Sets the value of AddHeaderProps.getName()
      Parameters:
      name - The name of the header to add. This parameter is required. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
      Returns:
      this
    • value

      @Stability(Stable) public AddHeaderProps.Builder value(String value)
      Sets the value of AddHeaderProps.getValue()
      Parameters:
      value - The value of the header to add. This parameter is required. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
      Returns:
      this
    • build

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