AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
FunctionConfigurationEnvironment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/greengrass/Greengrass_EXPORTS.h>
11#include <aws/greengrass/model/FunctionExecutionConfig.h>
12#include <aws/greengrass/model/ResourceAccessPolicy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Greengrass {
24namespace Model {
25
32 public:
33 AWS_GREENGRASS_API FunctionConfigurationEnvironment() = default;
36 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline bool GetAccessSysfs() const { return m_accessSysfs; }
45 inline bool AccessSysfsHasBeenSet() const { return m_accessSysfsHasBeenSet; }
46 inline void SetAccessSysfs(bool value) {
47 m_accessSysfsHasBeenSet = true;
48 m_accessSysfs = value;
49 }
51 SetAccessSysfs(value);
52 return *this;
53 }
55
57
60 inline const FunctionExecutionConfig& GetExecution() const { return m_execution; }
61 inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
62 template <typename ExecutionT = FunctionExecutionConfig>
63 void SetExecution(ExecutionT&& value) {
64 m_executionHasBeenSet = true;
65 m_execution = std::forward<ExecutionT>(value);
66 }
67 template <typename ExecutionT = FunctionExecutionConfig>
69 SetExecution(std::forward<ExecutionT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::Vector<ResourceAccessPolicy>& GetResourceAccessPolicies() const { return m_resourceAccessPolicies; }
82 inline bool ResourceAccessPoliciesHasBeenSet() const { return m_resourceAccessPoliciesHasBeenSet; }
83 template <typename ResourceAccessPoliciesT = Aws::Vector<ResourceAccessPolicy>>
84 void SetResourceAccessPolicies(ResourceAccessPoliciesT&& value) {
85 m_resourceAccessPoliciesHasBeenSet = true;
86 m_resourceAccessPolicies = std::forward<ResourceAccessPoliciesT>(value);
87 }
88 template <typename ResourceAccessPoliciesT = Aws::Vector<ResourceAccessPolicy>>
90 SetResourceAccessPolicies(std::forward<ResourceAccessPoliciesT>(value));
91 return *this;
92 }
93 template <typename ResourceAccessPoliciesT = ResourceAccessPolicy>
95 m_resourceAccessPoliciesHasBeenSet = true;
96 m_resourceAccessPolicies.emplace_back(std::forward<ResourceAccessPoliciesT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const { return m_variables; }
106 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
107 template <typename VariablesT = Aws::Map<Aws::String, Aws::String>>
108 void SetVariables(VariablesT&& value) {
109 m_variablesHasBeenSet = true;
110 m_variables = std::forward<VariablesT>(value);
111 }
112 template <typename VariablesT = Aws::Map<Aws::String, Aws::String>>
114 SetVariables(std::forward<VariablesT>(value));
115 return *this;
116 }
117 template <typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::String>
118 FunctionConfigurationEnvironment& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
119 m_variablesHasBeenSet = true;
120 m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value));
121 return *this;
122 }
124 private:
125 bool m_accessSysfs{false};
126
127 FunctionExecutionConfig m_execution;
128
129 Aws::Vector<ResourceAccessPolicy> m_resourceAccessPolicies;
130
132 bool m_accessSysfsHasBeenSet = false;
133 bool m_executionHasBeenSet = false;
134 bool m_resourceAccessPoliciesHasBeenSet = false;
135 bool m_variablesHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Greengrass
140} // namespace Aws
FunctionConfigurationEnvironment & WithExecution(ExecutionT &&value)
FunctionConfigurationEnvironment & AddVariables(VariablesKeyT &&key, VariablesValueT &&value)
AWS_GREENGRASS_API FunctionConfigurationEnvironment(Aws::Utils::Json::JsonView jsonValue)
FunctionConfigurationEnvironment & WithVariables(VariablesT &&value)
AWS_GREENGRASS_API FunctionConfigurationEnvironment()=default
AWS_GREENGRASS_API FunctionConfigurationEnvironment & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionConfigurationEnvironment & AddResourceAccessPolicies(ResourceAccessPoliciesT &&value)
const Aws::Vector< ResourceAccessPolicy > & GetResourceAccessPolicies() const
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionConfigurationEnvironment & WithResourceAccessPolicies(ResourceAccessPoliciesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue