AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendAction.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
34 {
35 public:
36 AWS_MAILMANAGER_API SendAction();
37 AWS_MAILMANAGER_API SendAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API SendAction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; }
49 inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; }
50 inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; }
51 inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); }
53 inline SendAction& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;}
55
57
61 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
62 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
63 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
64 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
65 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
66 inline SendAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
67 inline SendAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
68 inline SendAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
70 private:
71
72 ActionFailurePolicy m_actionFailurePolicy;
73 bool m_actionFailurePolicyHasBeenSet = false;
74
75 Aws::String m_roleArn;
76 bool m_roleArnHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace MailManager
81} // namespace Aws
void SetActionFailurePolicy(ActionFailurePolicy &&value)
Definition SendAction.h:51
SendAction & WithRoleArn(const char *value)
Definition SendAction.h:68
void SetRoleArn(const char *value)
Definition SendAction.h:65
void SetRoleArn(const Aws::String &value)
Definition SendAction.h:63
SendAction & WithActionFailurePolicy(ActionFailurePolicy &&value)
Definition SendAction.h:53
void SetRoleArn(Aws::String &&value)
Definition SendAction.h:64
SendAction & WithRoleArn(Aws::String &&value)
Definition SendAction.h:67
AWS_MAILMANAGER_API SendAction & operator=(Aws::Utils::Json::JsonView jsonValue)
SendAction & WithRoleArn(const Aws::String &value)
Definition SendAction.h:66
const ActionFailurePolicy & GetActionFailurePolicy() const
Definition SendAction.h:48
const Aws::String & GetRoleArn() const
Definition SendAction.h:61
AWS_MAILMANAGER_API SendAction(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API SendAction()
void SetActionFailurePolicy(const ActionFailurePolicy &value)
Definition SendAction.h:50
SendAction & WithActionFailurePolicy(const ActionFailurePolicy &value)
Definition SendAction.h:52
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue