AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FunctionConfigurationEnvironment.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/model/FunctionExecutionConfig.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/greengrass/model/ResourceAccessPolicy.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Greengrass
26{
27namespace Model
28{
29
36 {
37 public:
41 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline bool GetAccessSysfs() const{ return m_accessSysfs; }
51 inline bool AccessSysfsHasBeenSet() const { return m_accessSysfsHasBeenSet; }
52 inline void SetAccessSysfs(bool value) { m_accessSysfsHasBeenSet = true; m_accessSysfs = value; }
53 inline FunctionConfigurationEnvironment& WithAccessSysfs(bool value) { SetAccessSysfs(value); return *this;}
55
57
60 inline const FunctionExecutionConfig& GetExecution() const{ return m_execution; }
61 inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
62 inline void SetExecution(const FunctionExecutionConfig& value) { m_executionHasBeenSet = true; m_execution = value; }
63 inline void SetExecution(FunctionExecutionConfig&& value) { m_executionHasBeenSet = true; m_execution = std::move(value); }
65 inline FunctionConfigurationEnvironment& WithExecution(FunctionExecutionConfig&& value) { SetExecution(std::move(value)); return *this;}
67
69
75 inline const Aws::Vector<ResourceAccessPolicy>& GetResourceAccessPolicies() const{ return m_resourceAccessPolicies; }
76 inline bool ResourceAccessPoliciesHasBeenSet() const { return m_resourceAccessPoliciesHasBeenSet; }
77 inline void SetResourceAccessPolicies(const Aws::Vector<ResourceAccessPolicy>& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies = value; }
78 inline void SetResourceAccessPolicies(Aws::Vector<ResourceAccessPolicy>&& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies = std::move(value); }
81 inline FunctionConfigurationEnvironment& AddResourceAccessPolicies(const ResourceAccessPolicy& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies.push_back(value); return *this; }
82 inline FunctionConfigurationEnvironment& AddResourceAccessPolicies(ResourceAccessPolicy&& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
90 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
91 inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
92 inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
95 inline FunctionConfigurationEnvironment& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
96 inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
97 inline FunctionConfigurationEnvironment& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
98 inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
99 inline FunctionConfigurationEnvironment& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
100 inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
101 inline FunctionConfigurationEnvironment& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
103 private:
104
105 bool m_accessSysfs;
106 bool m_accessSysfsHasBeenSet = false;
107
108 FunctionExecutionConfig m_execution;
109 bool m_executionHasBeenSet = false;
110
111 Aws::Vector<ResourceAccessPolicy> m_resourceAccessPolicies;
112 bool m_resourceAccessPoliciesHasBeenSet = false;
113
115 bool m_variablesHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Greengrass
120} // namespace Aws
void SetResourceAccessPolicies(const Aws::Vector< ResourceAccessPolicy > &value)
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
FunctionConfigurationEnvironment & AddResourceAccessPolicies(const ResourceAccessPolicy &value)
FunctionConfigurationEnvironment & WithResourceAccessPolicies(Aws::Vector< ResourceAccessPolicy > &&value)
FunctionConfigurationEnvironment & AddResourceAccessPolicies(ResourceAccessPolicy &&value)
FunctionConfigurationEnvironment & AddVariables(const Aws::String &key, Aws::String &&value)
FunctionConfigurationEnvironment & AddVariables(const Aws::String &key, const Aws::String &value)
FunctionConfigurationEnvironment & WithExecution(FunctionExecutionConfig &&value)
FunctionConfigurationEnvironment & AddVariables(Aws::String &&key, const Aws::String &value)
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
FunctionConfigurationEnvironment & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
FunctionConfigurationEnvironment & AddVariables(const char *key, Aws::String &&value)
AWS_GREENGRASS_API FunctionConfigurationEnvironment(Aws::Utils::Json::JsonView jsonValue)
FunctionConfigurationEnvironment & AddVariables(const char *key, const char *value)
FunctionConfigurationEnvironment & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
FunctionConfigurationEnvironment & AddVariables(Aws::String &&key, const char *value)
AWS_GREENGRASS_API FunctionConfigurationEnvironment & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionConfigurationEnvironment & WithResourceAccessPolicies(const Aws::Vector< ResourceAccessPolicy > &value)
void SetResourceAccessPolicies(Aws::Vector< ResourceAccessPolicy > &&value)
const Aws::Vector< ResourceAccessPolicy > & GetResourceAccessPolicies() const
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
FunctionConfigurationEnvironment & WithExecution(const FunctionExecutionConfig &value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionConfigurationEnvironment & AddVariables(Aws::String &&key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue