AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaAction.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/email/model/InvocationType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace SES
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_SES_API LambdaAction() = default;
46 AWS_SES_API LambdaAction(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_SES_API LambdaAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
51
52
54
63 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
64 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
65 template<typename TopicArnT = Aws::String>
66 void SetTopicArn(TopicArnT&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::forward<TopicArnT>(value); }
67 template<typename TopicArnT = Aws::String>
68 LambdaAction& WithTopicArn(TopicArnT&& value) { SetTopicArn(std::forward<TopicArnT>(value)); return *this;}
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) { m_functionArnHasBeenSet = true; m_functionArn = std::forward<FunctionArnT>(value); }
84 template<typename FunctionArnT = Aws::String>
85 LambdaAction& WithFunctionArn(FunctionArnT&& value) { SetFunctionArn(std::forward<FunctionArnT>(value)); return *this;}
87
89
102 inline InvocationType GetInvocationType() const { return m_invocationType; }
103 inline bool InvocationTypeHasBeenSet() const { return m_invocationTypeHasBeenSet; }
104 inline void SetInvocationType(InvocationType value) { m_invocationTypeHasBeenSet = true; m_invocationType = value; }
105 inline LambdaAction& WithInvocationType(InvocationType value) { SetInvocationType(value); return *this;}
107 private:
108
109 Aws::String m_topicArn;
110 bool m_topicArnHasBeenSet = false;
111
112 Aws::String m_functionArn;
113 bool m_functionArnHasBeenSet = false;
114
115 InvocationType m_invocationType{InvocationType::NOT_SET};
116 bool m_invocationTypeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace SES
121} // 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