AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FunctionConfig.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/FunctionRuntime.h>
10#include <aws/cloudfront/model/KeyValueStoreAssociations.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDFRONT_API FunctionConfig() = default;
37 AWS_CLOUDFRONT_API FunctionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API FunctionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
47 inline const Aws::String& GetComment() const { return m_comment; }
48 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
49 template<typename CommentT = Aws::String>
50 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
51 template<typename CommentT = Aws::String>
52 FunctionConfig& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
54
56
59 inline FunctionRuntime GetRuntime() const { return m_runtime; }
60 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
61 inline void SetRuntime(FunctionRuntime value) { m_runtimeHasBeenSet = true; m_runtime = value; }
62 inline FunctionConfig& WithRuntime(FunctionRuntime value) { SetRuntime(value); return *this;}
64
66
69 inline const KeyValueStoreAssociations& GetKeyValueStoreAssociations() const { return m_keyValueStoreAssociations; }
70 inline bool KeyValueStoreAssociationsHasBeenSet() const { return m_keyValueStoreAssociationsHasBeenSet; }
71 template<typename KeyValueStoreAssociationsT = KeyValueStoreAssociations>
72 void SetKeyValueStoreAssociations(KeyValueStoreAssociationsT&& value) { m_keyValueStoreAssociationsHasBeenSet = true; m_keyValueStoreAssociations = std::forward<KeyValueStoreAssociationsT>(value); }
73 template<typename KeyValueStoreAssociationsT = KeyValueStoreAssociations>
74 FunctionConfig& WithKeyValueStoreAssociations(KeyValueStoreAssociationsT&& value) { SetKeyValueStoreAssociations(std::forward<KeyValueStoreAssociationsT>(value)); return *this;}
76 private:
77
78 Aws::String m_comment;
79 bool m_commentHasBeenSet = false;
80
82 bool m_runtimeHasBeenSet = false;
83
84 KeyValueStoreAssociations m_keyValueStoreAssociations;
85 bool m_keyValueStoreAssociationsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CloudFront
90} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetKeyValueStoreAssociations(KeyValueStoreAssociationsT &&value)
FunctionConfig & WithKeyValueStoreAssociations(KeyValueStoreAssociationsT &&value)
AWS_CLOUDFRONT_API FunctionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
const KeyValueStoreAssociations & GetKeyValueStoreAssociations() const
AWS_CLOUDFRONT_API FunctionConfig()=default
AWS_CLOUDFRONT_API FunctionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FunctionConfig & WithRuntime(FunctionRuntime value)
void SetRuntime(FunctionRuntime value)
const Aws::String & GetComment() const
FunctionConfig & WithComment(CommentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String