AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FunctionAssociation.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 FunctionAssociation() = default;
31 AWS_CLOUDFRONT_API FunctionAssociation(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API FunctionAssociation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const Aws::String& GetFunctionARN() const { return m_functionARN; }
41 inline bool FunctionARNHasBeenSet() const { return m_functionARNHasBeenSet; }
42 template <typename FunctionARNT = Aws::String>
43 void SetFunctionARN(FunctionARNT&& value) {
44 m_functionARNHasBeenSet = true;
45 m_functionARN = std::forward<FunctionARNT>(value);
46 }
47 template <typename FunctionARNT = Aws::String>
48 FunctionAssociation& WithFunctionARN(FunctionARNT&& value) {
49 SetFunctionARN(std::forward<FunctionARNT>(value));
50 return *this;
51 }
53
55
61 inline EventType GetEventType() const { return m_eventType; }
62 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
63 inline void SetEventType(EventType value) {
64 m_eventTypeHasBeenSet = true;
65 m_eventType = value;
66 }
68 SetEventType(value);
69 return *this;
70 }
72 private:
73 Aws::String m_functionARN;
74
75 EventType m_eventType{EventType::NOT_SET};
76 bool m_functionARNHasBeenSet = false;
77 bool m_eventTypeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CloudFront
82} // namespace Aws
FunctionAssociation & WithFunctionARN(FunctionARNT &&value)
FunctionAssociation & WithEventType(EventType value)
AWS_CLOUDFRONT_API FunctionAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API FunctionAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API FunctionAssociation()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String