AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLambdaFunctionARN(const Aws::String& value) { m_lambdaFunctionARNHasBeenSet = true; m_lambdaFunctionARN = value; }
50 inline void SetLambdaFunctionARN(Aws::String&& value) { m_lambdaFunctionARNHasBeenSet = true; m_lambdaFunctionARN = std::move(value); }
51 inline void SetLambdaFunctionARN(const char* value) { m_lambdaFunctionARNHasBeenSet = true; m_lambdaFunctionARN.assign(value); }
53 inline LambdaFunctionAssociation& WithLambdaFunctionARN(Aws::String&& value) { SetLambdaFunctionARN(std::move(value)); return *this;}
54 inline LambdaFunctionAssociation& WithLambdaFunctionARN(const char* value) { SetLambdaFunctionARN(value); return *this;}
56
58
75 inline const EventType& GetEventType() const{ return m_eventType; }
76 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
77 inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
78 inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
79 inline LambdaFunctionAssociation& WithEventType(const EventType& value) { SetEventType(value); return *this;}
80 inline LambdaFunctionAssociation& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;}
82
84
91 inline bool GetIncludeBody() const{ return m_includeBody; }
92 inline bool IncludeBodyHasBeenSet() const { return m_includeBodyHasBeenSet; }
93 inline void SetIncludeBody(bool value) { m_includeBodyHasBeenSet = true; m_includeBody = value; }
94 inline LambdaFunctionAssociation& WithIncludeBody(bool value) { SetIncludeBody(value); return *this;}
96 private:
97
98 Aws::String m_lambdaFunctionARN;
99 bool m_lambdaFunctionARNHasBeenSet = false;
100
101 EventType m_eventType;
102 bool m_eventTypeHasBeenSet = false;
103
104 bool m_includeBody;
105 bool m_includeBodyHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace CloudFront
110} // namespace Aws
LambdaFunctionAssociation & WithLambdaFunctionARN(Aws::String &&value)
AWS_CLOUDFRONT_API LambdaFunctionAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
LambdaFunctionAssociation & WithEventType(const EventType &value)
AWS_CLOUDFRONT_API LambdaFunctionAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LambdaFunctionAssociation & WithLambdaFunctionARN(const char *value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LambdaFunctionAssociation & WithEventType(EventType &&value)
LambdaFunctionAssociation & WithIncludeBody(bool value)
LambdaFunctionAssociation & WithLambdaFunctionARN(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String