AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
FunctionDefinitionVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9#include <aws/greengrass/model/Function.h>
10#include <aws/greengrass/model/FunctionDefaultConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Greengrass {
22namespace Model {
23
30 public:
31 AWS_GREENGRASS_API FunctionDefinitionVersion() = default;
34 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const FunctionDefaultConfig& GetDefaultConfig() const { return m_defaultConfig; }
42 inline bool DefaultConfigHasBeenSet() const { return m_defaultConfigHasBeenSet; }
43 template <typename DefaultConfigT = FunctionDefaultConfig>
44 void SetDefaultConfig(DefaultConfigT&& value) {
45 m_defaultConfigHasBeenSet = true;
46 m_defaultConfig = std::forward<DefaultConfigT>(value);
47 }
48 template <typename DefaultConfigT = FunctionDefaultConfig>
50 SetDefaultConfig(std::forward<DefaultConfigT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Function>& GetFunctions() const { return m_functions; }
60 inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
61 template <typename FunctionsT = Aws::Vector<Function>>
62 void SetFunctions(FunctionsT&& value) {
63 m_functionsHasBeenSet = true;
64 m_functions = std::forward<FunctionsT>(value);
65 }
66 template <typename FunctionsT = Aws::Vector<Function>>
68 SetFunctions(std::forward<FunctionsT>(value));
69 return *this;
70 }
71 template <typename FunctionsT = Function>
73 m_functionsHasBeenSet = true;
74 m_functions.emplace_back(std::forward<FunctionsT>(value));
75 return *this;
76 }
78 private:
79 FunctionDefaultConfig m_defaultConfig;
80
81 Aws::Vector<Function> m_functions;
82 bool m_defaultConfigHasBeenSet = false;
83 bool m_functionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Greengrass
88} // namespace Aws
FunctionDefinitionVersion & WithDefaultConfig(DefaultConfigT &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API FunctionDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
FunctionDefinitionVersion & AddFunctions(FunctionsT &&value)
const FunctionDefaultConfig & GetDefaultConfig() const
AWS_GREENGRASS_API FunctionDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionDefinitionVersion & WithFunctions(FunctionsT &&value)
const Aws::Vector< Function > & GetFunctions() const
AWS_GREENGRASS_API FunctionDefinitionVersion()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue