AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FunctionConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/FunctionRuntime.h>
9#include <aws/cloudfront/model/KeyValueStoreAssociations.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
30 public:
31 AWS_CLOUDFRONT_API FunctionConfig() = default;
32 AWS_CLOUDFRONT_API FunctionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFRONT_API FunctionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
41 inline const Aws::String& GetComment() const { return m_comment; }
42 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
43 template <typename CommentT = Aws::String>
44 void SetComment(CommentT&& value) {
45 m_commentHasBeenSet = true;
46 m_comment = std::forward<CommentT>(value);
47 }
48 template <typename CommentT = Aws::String>
49 FunctionConfig& WithComment(CommentT&& value) {
50 SetComment(std::forward<CommentT>(value));
51 return *this;
52 }
54
56
59 inline FunctionRuntime GetRuntime() const { return m_runtime; }
60 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
61 inline void SetRuntime(FunctionRuntime value) {
62 m_runtimeHasBeenSet = true;
63 m_runtime = value;
64 }
66 SetRuntime(value);
67 return *this;
68 }
70
72
75 inline const KeyValueStoreAssociations& GetKeyValueStoreAssociations() const { return m_keyValueStoreAssociations; }
76 inline bool KeyValueStoreAssociationsHasBeenSet() const { return m_keyValueStoreAssociationsHasBeenSet; }
77 template <typename KeyValueStoreAssociationsT = KeyValueStoreAssociations>
78 void SetKeyValueStoreAssociations(KeyValueStoreAssociationsT&& value) {
79 m_keyValueStoreAssociationsHasBeenSet = true;
80 m_keyValueStoreAssociations = std::forward<KeyValueStoreAssociationsT>(value);
81 }
82 template <typename KeyValueStoreAssociationsT = KeyValueStoreAssociations>
83 FunctionConfig& WithKeyValueStoreAssociations(KeyValueStoreAssociationsT&& value) {
84 SetKeyValueStoreAssociations(std::forward<KeyValueStoreAssociationsT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_comment;
90
92
93 KeyValueStoreAssociations m_keyValueStoreAssociations;
94 bool m_commentHasBeenSet = false;
95 bool m_runtimeHasBeenSet = false;
96 bool m_keyValueStoreAssociationsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudFront
101} // 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