AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaFunctionAssociation.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/EventType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDFRONT_API LambdaFunctionAssociation() = default;
36 AWS_CLOUDFRONT_API LambdaFunctionAssociation(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
47 inline const Aws::String& GetLambdaFunctionARN() const { return m_lambdaFunctionARN; }
48 inline bool LambdaFunctionARNHasBeenSet() const { return m_lambdaFunctionARNHasBeenSet; }
49 template<typename LambdaFunctionARNT = Aws::String>
50 void SetLambdaFunctionARN(LambdaFunctionARNT&& value) { m_lambdaFunctionARNHasBeenSet = true; m_lambdaFunctionARN = std::forward<LambdaFunctionARNT>(value); }
51 template<typename LambdaFunctionARNT = Aws::String>
52 LambdaFunctionAssociation& WithLambdaFunctionARN(LambdaFunctionARNT&& value) { SetLambdaFunctionARN(std::forward<LambdaFunctionARNT>(value)); return *this;}
54
56
73 inline EventType GetEventType() const { return m_eventType; }
74 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
75 inline void SetEventType(EventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
76 inline LambdaFunctionAssociation& WithEventType(EventType value) { SetEventType(value); return *this;}
78
80
87 inline bool GetIncludeBody() const { return m_includeBody; }
88 inline bool IncludeBodyHasBeenSet() const { return m_includeBodyHasBeenSet; }
89 inline void SetIncludeBody(bool value) { m_includeBodyHasBeenSet = true; m_includeBody = value; }
90 inline LambdaFunctionAssociation& WithIncludeBody(bool value) { SetIncludeBody(value); return *this;}
92 private:
93
94 Aws::String m_lambdaFunctionARN;
95 bool m_lambdaFunctionARNHasBeenSet = false;
96
97 EventType m_eventType{EventType::NOT_SET};
98 bool m_eventTypeHasBeenSet = false;
99
100 bool m_includeBody{false};
101 bool m_includeBodyHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CloudFront
106} // namespace Aws
LambdaFunctionAssociation & WithLambdaFunctionARN(LambdaFunctionARNT &&value)
AWS_CLOUDFRONT_API LambdaFunctionAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API LambdaFunctionAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API LambdaFunctionAssociation()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LambdaFunctionAssociation & WithEventType(EventType value)
LambdaFunctionAssociation & WithIncludeBody(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String