AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
LambdaAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/email/SES_EXPORTS.h>
10#include <aws/email/model/InvocationType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace SES {
21namespace Model {
22
39 public:
40 AWS_SES_API LambdaAction() = default;
41 AWS_SES_API LambdaAction(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_SES_API LambdaAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
48
57 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
58 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
59 template <typename TopicArnT = Aws::String>
60 void SetTopicArn(TopicArnT&& value) {
61 m_topicArnHasBeenSet = true;
62 m_topicArn = std::forward<TopicArnT>(value);
63 }
64 template <typename TopicArnT = Aws::String>
65 LambdaAction& WithTopicArn(TopicArnT&& value) {
66 SetTopicArn(std::forward<TopicArnT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
81 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
82 template <typename FunctionArnT = Aws::String>
83 void SetFunctionArn(FunctionArnT&& value) {
84 m_functionArnHasBeenSet = true;
85 m_functionArn = std::forward<FunctionArnT>(value);
86 }
87 template <typename FunctionArnT = Aws::String>
88 LambdaAction& WithFunctionArn(FunctionArnT&& value) {
89 SetFunctionArn(std::forward<FunctionArnT>(value));
90 return *this;
91 }
93
95
108 inline InvocationType GetInvocationType() const { return m_invocationType; }
109 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
111 m_invocationTypeHasBeenSet = true;
112 m_invocationType = value;
113 }
115 SetInvocationType(value);
116 return *this;
117 }
119 private:
120 Aws::String m_topicArn;
121
122 Aws::String m_functionArn;
123
124 InvocationType m_invocationType{InvocationType::NOT_SET};
125 bool m_topicArnHasBeenSet = false;
126 bool m_functionArnHasBeenSet = false;
127 bool m_invocationTypeHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SES
132} // namespace Aws
const Aws::String & GetTopicArn() const
AWS_SES_API LambdaAction(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFunctionArn(FunctionArnT &&value)
void SetTopicArn(TopicArnT &&value)
const Aws::String & GetFunctionArn() const
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LambdaAction & WithTopicArn(TopicArnT &&value)
LambdaAction & WithFunctionArn(FunctionArnT &&value)
AWS_SES_API LambdaAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LambdaAction & WithInvocationType(InvocationType value)
void SetInvocationType(InvocationType value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InvocationType GetInvocationType() const
AWS_SES_API LambdaAction()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream