Class AddHeaderAction

    • Constructor Detail

      • AddHeaderAction

        public AddHeaderAction()
    • Method Detail

      • setHeaderName

        public void setHeaderName​(String headerName)

        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:
        headerName - 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.
      • getHeaderName

        public String getHeaderName()

        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.

        Returns:
        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.
      • withHeaderName

        public AddHeaderAction withHeaderName​(String headerName)

        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:
        headerName - 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setHeaderValue

        public void setHeaderValue​(String headerValue)

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

        Parameters:
        headerValue - Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
      • getHeaderValue

        public String getHeaderValue()

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

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

        public AddHeaderAction withHeaderValue​(String headerValue)

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

        Parameters:
        headerValue - Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object