AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RelayAction.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/ActionFailurePolicy.h>
9#include <aws/mailmanager/model/MailFrom.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MailManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MAILMANAGER_API RelayAction();
38 AWS_MAILMANAGER_API RelayAction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API RelayAction& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; }
50 inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; }
51 inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; }
52 inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); }
54 inline RelayAction& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;}
56
58
62 inline const MailFrom& GetMailFrom() const{ return m_mailFrom; }
63 inline bool MailFromHasBeenSet() const { return m_mailFromHasBeenSet; }
64 inline void SetMailFrom(const MailFrom& value) { m_mailFromHasBeenSet = true; m_mailFrom = value; }
65 inline void SetMailFrom(MailFrom&& value) { m_mailFromHasBeenSet = true; m_mailFrom = std::move(value); }
66 inline RelayAction& WithMailFrom(const MailFrom& value) { SetMailFrom(value); return *this;}
67 inline RelayAction& WithMailFrom(MailFrom&& value) { SetMailFrom(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetRelay() const{ return m_relay; }
75 inline bool RelayHasBeenSet() const { return m_relayHasBeenSet; }
76 inline void SetRelay(const Aws::String& value) { m_relayHasBeenSet = true; m_relay = value; }
77 inline void SetRelay(Aws::String&& value) { m_relayHasBeenSet = true; m_relay = std::move(value); }
78 inline void SetRelay(const char* value) { m_relayHasBeenSet = true; m_relay.assign(value); }
79 inline RelayAction& WithRelay(const Aws::String& value) { SetRelay(value); return *this;}
80 inline RelayAction& WithRelay(Aws::String&& value) { SetRelay(std::move(value)); return *this;}
81 inline RelayAction& WithRelay(const char* value) { SetRelay(value); return *this;}
83 private:
84
85 ActionFailurePolicy m_actionFailurePolicy;
86 bool m_actionFailurePolicyHasBeenSet = false;
87
88 MailFrom m_mailFrom;
89 bool m_mailFromHasBeenSet = false;
90
91 Aws::String m_relay;
92 bool m_relayHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace MailManager
97} // namespace Aws
const Aws::String & GetRelay() const
Definition RelayAction.h:74
void SetRelay(const Aws::String &value)
Definition RelayAction.h:76
void SetRelay(Aws::String &&value)
Definition RelayAction.h:77
RelayAction & WithRelay(Aws::String &&value)
Definition RelayAction.h:80
void SetActionFailurePolicy(ActionFailurePolicy &&value)
Definition RelayAction.h:52
RelayAction & WithMailFrom(const MailFrom &value)
Definition RelayAction.h:66
void SetActionFailurePolicy(const ActionFailurePolicy &value)
Definition RelayAction.h:51
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
RelayAction & WithMailFrom(MailFrom &&value)
Definition RelayAction.h:67
const MailFrom & GetMailFrom() const
Definition RelayAction.h:62
AWS_MAILMANAGER_API RelayAction()
void SetRelay(const char *value)
Definition RelayAction.h:78
void SetMailFrom(MailFrom &&value)
Definition RelayAction.h:65
RelayAction & WithActionFailurePolicy(ActionFailurePolicy &&value)
Definition RelayAction.h:54
AWS_MAILMANAGER_API RelayAction(Aws::Utils::Json::JsonView jsonValue)
void SetMailFrom(const MailFrom &value)
Definition RelayAction.h:64
RelayAction & WithRelay(const char *value)
Definition RelayAction.h:81
AWS_MAILMANAGER_API RelayAction & operator=(Aws::Utils::Json::JsonView jsonValue)
RelayAction & WithActionFailurePolicy(const ActionFailurePolicy &value)
Definition RelayAction.h:53
RelayAction & WithRelay(const Aws::String &value)
Definition RelayAction.h:79
const ActionFailurePolicy & GetActionFailurePolicy() const
Definition RelayAction.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue