AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDefaultConfig(const FunctionDefaultConfig& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = value; }
50 inline void SetDefaultConfig(FunctionDefaultConfig&& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = std::move(value); }
52 inline FunctionDefinitionVersion& WithDefaultConfig(FunctionDefaultConfig&& value) { SetDefaultConfig(std::move(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 inline void SetFunctions(const Aws::Vector<Function>& value) { m_functionsHasBeenSet = true; m_functions = value; }
62 inline void SetFunctions(Aws::Vector<Function>&& value) { m_functionsHasBeenSet = true; m_functions = std::move(value); }
63 inline FunctionDefinitionVersion& WithFunctions(const Aws::Vector<Function>& value) { SetFunctions(value); return *this;}
64 inline FunctionDefinitionVersion& WithFunctions(Aws::Vector<Function>&& value) { SetFunctions(std::move(value)); return *this;}
65 inline FunctionDefinitionVersion& AddFunctions(const Function& value) { m_functionsHasBeenSet = true; m_functions.push_back(value); return *this; }
66 inline FunctionDefinitionVersion& AddFunctions(Function&& value) { m_functionsHasBeenSet = true; m_functions.push_back(std::move(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 & AddFunctions(const Function &value)
FunctionDefinitionVersion & WithFunctions(const Aws::Vector< Function > &value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionDefinitionVersion & AddFunctions(Function &&value)
void SetDefaultConfig(const FunctionDefaultConfig &value)
AWS_GREENGRASS_API FunctionDefinitionVersion(Aws::Utils::Json::JsonView jsonValue)
FunctionDefinitionVersion & WithDefaultConfig(FunctionDefaultConfig &&value)
void SetFunctions(const Aws::Vector< Function > &value)
FunctionDefinitionVersion & WithFunctions(Aws::Vector< Function > &&value)
const FunctionDefaultConfig & GetDefaultConfig() const
AWS_GREENGRASS_API FunctionDefinitionVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Function > & GetFunctions() const
FunctionDefinitionVersion & WithDefaultConfig(const FunctionDefaultConfig &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue