AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FunctionAssociation.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 FunctionAssociation() = default;
36 AWS_CLOUDFRONT_API FunctionAssociation(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API FunctionAssociation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetFunctionARN() const { return m_functionARN; }
47 inline bool FunctionARNHasBeenSet() const { return m_functionARNHasBeenSet; }
48 template<typename FunctionARNT = Aws::String>
49 void SetFunctionARN(FunctionARNT&& value) { m_functionARNHasBeenSet = true; m_functionARN = std::forward<FunctionARNT>(value); }
50 template<typename FunctionARNT = Aws::String>
51 FunctionAssociation& WithFunctionARN(FunctionARNT&& value) { SetFunctionARN(std::forward<FunctionARNT>(value)); return *this;}
53
55
61 inline EventType GetEventType() const { return m_eventType; }
62 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
63 inline void SetEventType(EventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
64 inline FunctionAssociation& WithEventType(EventType value) { SetEventType(value); return *this;}
66 private:
67
68 Aws::String m_functionARN;
69 bool m_functionARNHasBeenSet = false;
70
71 EventType m_eventType{EventType::NOT_SET};
72 bool m_eventTypeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CloudFront
77} // 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