AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddHeaderAction.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MailManager
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MAILMANAGER_API AddHeaderAction();
36 AWS_MAILMANAGER_API AddHeaderAction(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MAILMANAGER_API AddHeaderAction& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetHeaderName() const{ return m_headerName; }
48 inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
49 inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; }
50 inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); }
51 inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); }
52 inline AddHeaderAction& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
53 inline AddHeaderAction& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
54 inline AddHeaderAction& WithHeaderName(const char* value) { SetHeaderName(value); return *this;}
56
58
61 inline const Aws::String& GetHeaderValue() const{ return m_headerValue; }
62 inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; }
63 inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; }
64 inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); }
65 inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); }
66 inline AddHeaderAction& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;}
67 inline AddHeaderAction& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;}
68 inline AddHeaderAction& WithHeaderValue(const char* value) { SetHeaderValue(value); return *this;}
70 private:
71
72 Aws::String m_headerName;
73 bool m_headerNameHasBeenSet = false;
74
75 Aws::String m_headerValue;
76 bool m_headerValueHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace MailManager
81} // namespace Aws
void SetHeaderValue(Aws::String &&value)
AddHeaderAction & WithHeaderValue(const Aws::String &value)
void SetHeaderValue(const Aws::String &value)
void SetHeaderName(const Aws::String &value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AddHeaderAction & WithHeaderValue(Aws::String &&value)
void SetHeaderName(Aws::String &&value)
AddHeaderAction & WithHeaderValue(const char *value)
AddHeaderAction & WithHeaderName(Aws::String &&value)
const Aws::String & GetHeaderValue() const
AddHeaderAction & WithHeaderName(const char *value)
AWS_MAILMANAGER_API AddHeaderAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API AddHeaderAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHeaderName() const
AddHeaderAction & WithHeaderName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue