AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LambdaFunctionAssociation.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/EventType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
29 public:
30 AWS_CLOUDFRONT_API LambdaFunctionAssociation() = default;
31 AWS_CLOUDFRONT_API LambdaFunctionAssociation(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
41 inline const Aws::String& GetLambdaFunctionARN() const { return m_lambdaFunctionARN; }
42 inline bool LambdaFunctionARNHasBeenSet() const { return m_lambdaFunctionARNHasBeenSet; }
43 template <typename LambdaFunctionARNT = Aws::String>
44 void SetLambdaFunctionARN(LambdaFunctionARNT&& value) {
45 m_lambdaFunctionARNHasBeenSet = true;
46 m_lambdaFunctionARN = std::forward<LambdaFunctionARNT>(value);
47 }
48 template <typename LambdaFunctionARNT = Aws::String>
49 LambdaFunctionAssociation& WithLambdaFunctionARN(LambdaFunctionARNT&& value) {
50 SetLambdaFunctionARN(std::forward<LambdaFunctionARNT>(value));
51 return *this;
52 }
54
56
73 inline EventType GetEventType() const { return m_eventType; }
74 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
75 inline void SetEventType(EventType value) {
76 m_eventTypeHasBeenSet = true;
77 m_eventType = value;
78 }
80 SetEventType(value);
81 return *this;
82 }
84
86
93 inline bool GetIncludeBody() const { return m_includeBody; }
94 inline bool IncludeBodyHasBeenSet() const { return m_includeBodyHasBeenSet; }
95 inline void SetIncludeBody(bool value) {
96 m_includeBodyHasBeenSet = true;
97 m_includeBody = value;
98 }
100 SetIncludeBody(value);
101 return *this;
102 }
104 private:
105 Aws::String m_lambdaFunctionARN;
106
107 EventType m_eventType{EventType::NOT_SET};
108
109 bool m_includeBody{false};
110 bool m_lambdaFunctionARNHasBeenSet = false;
111 bool m_eventTypeHasBeenSet = false;
112 bool m_includeBodyHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace CloudFront
117} // 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