AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
FunctionDefinitionVersion.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/model/FunctionDefaultConfig.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/greengrass/model/Function.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Greengrass
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GREENGRASS_API FunctionDefinitionVersion() = default;
39 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const FunctionDefaultConfig& GetDefaultConfig() const { return m_defaultConfig; }
48 inline bool DefaultConfigHasBeenSet() const { return m_defaultConfigHasBeenSet; }
49 template<typename DefaultConfigT = FunctionDefaultConfig>
50 void SetDefaultConfig(DefaultConfigT&& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = std::forward<DefaultConfigT>(value); }
51 template<typename DefaultConfigT = FunctionDefaultConfig>
52 FunctionDefinitionVersion& WithDefaultConfig(DefaultConfigT&& value) { SetDefaultConfig(std::forward<DefaultConfigT>(value)); return *this;}
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) { m_functionsHasBeenSet = true; m_functions = std::forward<FunctionsT>(value); }
63 template<typename FunctionsT = Aws::Vector<Function>>
64 FunctionDefinitionVersion& WithFunctions(FunctionsT&& value) { SetFunctions(std::forward<FunctionsT>(value)); return *this;}
65 template<typename FunctionsT = Function>
66 FunctionDefinitionVersion& AddFunctions(FunctionsT&& value) { m_functionsHasBeenSet = true; m_functions.emplace_back(std::forward<FunctionsT>(value)); return *this; }
68 private:
69
70 FunctionDefaultConfig m_defaultConfig;
71 bool m_defaultConfigHasBeenSet = false;
72
73 Aws::Vector<Function> m_functions;
74 bool m_functionsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Greengrass
79} // 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