Class HttpHeader.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<HttpHeader>
    Enclosing interface:
    HttpHeader

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

      • Builder

        public Builder()
    • Method Detail

      • name

        @Stability(Stable)
        public HttpHeader.Builder name​(String name)
        Sets the value of HttpHeader.getName()
        Parameters:
        name - The header field name. This parameter is required. This will be canonicalized upon output, so case-variant names will be understood as the same header.
        Returns:
        this
      • build

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