AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeliverToMailboxAction.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/ActionFailurePolicy.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MailManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MAILMANAGER_API DeliverToMailboxAction();
36 AWS_MAILMANAGER_API DeliverToMailboxAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; }
48 inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; }
49 inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; }
50 inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); }
54
56
60 inline const Aws::String& GetMailboxArn() const{ return m_mailboxArn; }
61 inline bool MailboxArnHasBeenSet() const { return m_mailboxArnHasBeenSet; }
62 inline void SetMailboxArn(const Aws::String& value) { m_mailboxArnHasBeenSet = true; m_mailboxArn = value; }
63 inline void SetMailboxArn(Aws::String&& value) { m_mailboxArnHasBeenSet = true; m_mailboxArn = std::move(value); }
64 inline void SetMailboxArn(const char* value) { m_mailboxArnHasBeenSet = true; m_mailboxArn.assign(value); }
65 inline DeliverToMailboxAction& WithMailboxArn(const Aws::String& value) { SetMailboxArn(value); return *this;}
66 inline DeliverToMailboxAction& WithMailboxArn(Aws::String&& value) { SetMailboxArn(std::move(value)); return *this;}
67 inline DeliverToMailboxAction& WithMailboxArn(const char* value) { SetMailboxArn(value); return *this;}
69
71
75 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
76 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
77 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
78 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
79 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
80 inline DeliverToMailboxAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
81 inline DeliverToMailboxAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
82 inline DeliverToMailboxAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
84 private:
85
86 ActionFailurePolicy m_actionFailurePolicy;
87 bool m_actionFailurePolicyHasBeenSet = false;
88
89 Aws::String m_mailboxArn;
90 bool m_mailboxArnHasBeenSet = false;
91
92 Aws::String m_roleArn;
93 bool m_roleArnHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace MailManager
98} // namespace Aws
DeliverToMailboxAction & WithActionFailurePolicy(ActionFailurePolicy &&value)
DeliverToMailboxAction & WithRoleArn(const Aws::String &value)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const ActionFailurePolicy & GetActionFailurePolicy() const
DeliverToMailboxAction & WithActionFailurePolicy(const ActionFailurePolicy &value)
void SetActionFailurePolicy(ActionFailurePolicy &&value)
DeliverToMailboxAction & WithMailboxArn(Aws::String &&value)
void SetActionFailurePolicy(const ActionFailurePolicy &value)
DeliverToMailboxAction & WithRoleArn(const char *value)
AWS_MAILMANAGER_API DeliverToMailboxAction(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API DeliverToMailboxAction & operator=(Aws::Utils::Json::JsonView jsonValue)
DeliverToMailboxAction & WithMailboxArn(const char *value)
DeliverToMailboxAction & WithRoleArn(Aws::String &&value)
DeliverToMailboxAction & WithMailboxArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue