/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include When included in a receipt rule, this action adds a header to the received
* email. For information about adding a header using a receipt rule, see
* the Amazon
* SES Developer Guide.See Also:
AWS
* API Reference
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.
*/ inline const Aws::String& GetHeaderName() const{ return m_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.
*/ inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; } /** *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.
*/ inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; } /** *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.
*/ inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); } /** *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.
*/ inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); } /** *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.
*/ inline AddHeaderAction& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;} /** *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.
*/ inline AddHeaderAction& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;} /** *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.
*/ inline AddHeaderAction& WithHeaderName(const char* value) { SetHeaderName(value); return *this;} /** *Must be less than 2048 characters, and must not contain newline characters * ("\r" or "\n").
*/ inline const Aws::String& GetHeaderValue() const{ return m_headerValue; } /** *Must be less than 2048 characters, and must not contain newline characters * ("\r" or "\n").
*/ inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; } /** *Must be less than 2048 characters, and must not contain newline characters * ("\r" or "\n").
*/ inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; } /** *Must be less than 2048 characters, and must not contain newline characters * ("\r" or "\n").
*/ inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); } /** *Must be less than 2048 characters, and must not contain newline characters * ("\r" or "\n").
*/ inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); } /** *Must be less than 2048 characters, and must not contain newline characters * ("\r" or "\n").
*/ inline AddHeaderAction& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;} /** *Must be less than 2048 characters, and must not contain newline characters * ("\r" or "\n").
*/ inline AddHeaderAction& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;} /** *Must be less than 2048 characters, and must not contain newline characters * ("\r" or "\n").
*/ inline AddHeaderAction& WithHeaderValue(const char* value) { SetHeaderValue(value); return *this;} private: Aws::String m_headerName; bool m_headerNameHasBeenSet = false; Aws::String m_headerValue; bool m_headerValueHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws