AWS SDK for C++  1.9.21
AWS SDK for C++
LambdaFunctionAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
46  inline const Aws::String& GetLambdaFunctionARN() const{ return m_lambdaFunctionARN; }
47 
52  inline bool LambdaFunctionARNHasBeenSet() const { return m_lambdaFunctionARNHasBeenSet; }
53 
58  inline void SetLambdaFunctionARN(const Aws::String& value) { m_lambdaFunctionARNHasBeenSet = true; m_lambdaFunctionARN = value; }
59 
64  inline void SetLambdaFunctionARN(Aws::String&& value) { m_lambdaFunctionARNHasBeenSet = true; m_lambdaFunctionARN = std::move(value); }
65 
70  inline void SetLambdaFunctionARN(const char* value) { m_lambdaFunctionARNHasBeenSet = true; m_lambdaFunctionARN.assign(value); }
71 
76  inline LambdaFunctionAssociation& WithLambdaFunctionARN(const Aws::String& value) { SetLambdaFunctionARN(value); return *this;}
77 
82  inline LambdaFunctionAssociation& WithLambdaFunctionARN(Aws::String&& value) { SetLambdaFunctionARN(std::move(value)); return *this;}
83 
88  inline LambdaFunctionAssociation& WithLambdaFunctionARN(const char* value) { SetLambdaFunctionARN(value); return *this;}
89 
90 
108  inline const EventType& GetEventType() const{ return m_eventType; }
109 
127  inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
128 
146  inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
147 
165  inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
166 
184  inline LambdaFunctionAssociation& WithEventType(const EventType& value) { SetEventType(value); return *this;}
185 
203  inline LambdaFunctionAssociation& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;}
204 
205 
213  inline bool GetIncludeBody() const{ return m_includeBody; }
214 
222  inline bool IncludeBodyHasBeenSet() const { return m_includeBodyHasBeenSet; }
223 
231  inline void SetIncludeBody(bool value) { m_includeBodyHasBeenSet = true; m_includeBody = value; }
232 
240  inline LambdaFunctionAssociation& WithIncludeBody(bool value) { SetIncludeBody(value); return *this;}
241 
242  private:
243 
244  Aws::String m_lambdaFunctionARN;
245  bool m_lambdaFunctionARNHasBeenSet;
246 
247  EventType m_eventType;
248  bool m_eventTypeHasBeenSet;
249 
250  bool m_includeBody;
251  bool m_includeBodyHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace CloudFront
256 } // namespace Aws
Aws::CloudFront::Model::LambdaFunctionAssociation::IncludeBodyHasBeenSet
bool IncludeBodyHasBeenSet() const
Definition: LambdaFunctionAssociation.h:222
Aws::CloudFront::Model::LambdaFunctionAssociation::SetEventType
void SetEventType(const EventType &value)
Definition: LambdaFunctionAssociation.h:146
Aws::CloudFront::Model::LambdaFunctionAssociation::LambdaFunctionAssociation
LambdaFunctionAssociation()
Aws::CloudFront::Model::LambdaFunctionAssociation::WithEventType
LambdaFunctionAssociation & WithEventType(EventType &&value)
Definition: LambdaFunctionAssociation.h:203
Aws::CloudFront::Model::LambdaFunctionAssociation::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::LambdaFunctionAssociation::GetIncludeBody
bool GetIncludeBody() const
Definition: LambdaFunctionAssociation.h:213
Aws::CloudFront::Model::LambdaFunctionAssociation::SetIncludeBody
void SetIncludeBody(bool value)
Definition: LambdaFunctionAssociation.h:231
Aws::CloudFront::Model::LambdaFunctionAssociation::GetLambdaFunctionARN
const Aws::String & GetLambdaFunctionARN() const
Definition: LambdaFunctionAssociation.h:46
Aws::CloudFront::Model::LambdaFunctionAssociation::LambdaFunctionAssociation
LambdaFunctionAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::LambdaFunctionAssociation::SetLambdaFunctionARN
void SetLambdaFunctionARN(const char *value)
Definition: LambdaFunctionAssociation.h:70
Aws::CloudFront::Model::LambdaFunctionAssociation::GetEventType
const EventType & GetEventType() const
Definition: LambdaFunctionAssociation.h:108
Aws::CloudFront::Model::LambdaFunctionAssociation::SetEventType
void SetEventType(EventType &&value)
Definition: LambdaFunctionAssociation.h:165
AWSString.h
Aws::CloudFront::Model::EventType
EventType
Definition: EventType.h:17
Aws::CloudFront::Model::LambdaFunctionAssociation::WithLambdaFunctionARN
LambdaFunctionAssociation & WithLambdaFunctionARN(const Aws::String &value)
Definition: LambdaFunctionAssociation.h:76
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::LambdaFunctionAssociation::WithIncludeBody
LambdaFunctionAssociation & WithIncludeBody(bool value)
Definition: LambdaFunctionAssociation.h:240
CloudFront_EXPORTS.h
Aws::CloudFront::Model::LambdaFunctionAssociation::WithLambdaFunctionARN
LambdaFunctionAssociation & WithLambdaFunctionARN(Aws::String &&value)
Definition: LambdaFunctionAssociation.h:82
Aws::CloudFront::Model::LambdaFunctionAssociation::WithLambdaFunctionARN
LambdaFunctionAssociation & WithLambdaFunctionARN(const char *value)
Definition: LambdaFunctionAssociation.h:88
Aws::CloudFront::Model::LambdaFunctionAssociation::SetLambdaFunctionARN
void SetLambdaFunctionARN(const Aws::String &value)
Definition: LambdaFunctionAssociation.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::LambdaFunctionAssociation
Definition: LambdaFunctionAssociation.h:33
Aws::CloudFront::Model::LambdaFunctionAssociation::EventTypeHasBeenSet
bool EventTypeHasBeenSet() const
Definition: LambdaFunctionAssociation.h:127
EventType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::LambdaFunctionAssociation::WithEventType
LambdaFunctionAssociation & WithEventType(const EventType &value)
Definition: LambdaFunctionAssociation.h:184
Aws::CloudFront::Model::LambdaFunctionAssociation::operator=
LambdaFunctionAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::LambdaFunctionAssociation::LambdaFunctionARNHasBeenSet
bool LambdaFunctionARNHasBeenSet() const
Definition: LambdaFunctionAssociation.h:52
Aws::CloudFront::Model::LambdaFunctionAssociation::SetLambdaFunctionARN
void SetLambdaFunctionARN(Aws::String &&value)
Definition: LambdaFunctionAssociation.h:64