AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctionARN(const Aws::String& value) { m_functionARNHasBeenSet = true; m_functionARN = value; }
49 inline void SetFunctionARN(Aws::String&& value) { m_functionARNHasBeenSet = true; m_functionARN = std::move(value); }
50 inline void SetFunctionARN(const char* value) { m_functionARNHasBeenSet = true; m_functionARN.assign(value); }
51 inline FunctionAssociation& WithFunctionARN(const Aws::String& value) { SetFunctionARN(value); return *this;}
52 inline FunctionAssociation& WithFunctionARN(Aws::String&& value) { SetFunctionARN(std::move(value)); return *this;}
53 inline FunctionAssociation& WithFunctionARN(const char* value) { SetFunctionARN(value); return *this;}
55
57
63 inline const EventType& GetEventType() const{ return m_eventType; }
64 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
65 inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
66 inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
67 inline FunctionAssociation& WithEventType(const EventType& value) { SetEventType(value); return *this;}
68 inline FunctionAssociation& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;}
70 private:
71
72 Aws::String m_functionARN;
73 bool m_functionARNHasBeenSet = false;
74
75 EventType m_eventType;
76 bool m_eventTypeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CloudFront
81} // namespace Aws
FunctionAssociation & WithEventType(EventType &&value)
FunctionAssociation & WithEventType(const EventType &value)
FunctionAssociation & WithFunctionARN(const char *value)
AWS_CLOUDFRONT_API FunctionAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
FunctionAssociation & WithFunctionARN(const Aws::String &value)
AWS_CLOUDFRONT_API FunctionAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFunctionARN(const Aws::String &value)
FunctionAssociation & WithFunctionARN(Aws::String &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String