AWS SDK for C++  1.8.126
AWS SDK for C++
FunctionConfigurationEnvironment.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace Greengrass
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
49  inline bool GetAccessSysfs() const{ return m_accessSysfs; }
50 
56  inline bool AccessSysfsHasBeenSet() const { return m_accessSysfsHasBeenSet; }
57 
63  inline void SetAccessSysfs(bool value) { m_accessSysfsHasBeenSet = true; m_accessSysfs = value; }
64 
70  inline FunctionConfigurationEnvironment& WithAccessSysfs(bool value) { SetAccessSysfs(value); return *this;}
71 
72 
76  inline const FunctionExecutionConfig& GetExecution() const{ return m_execution; }
77 
81  inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
82 
86  inline void SetExecution(const FunctionExecutionConfig& value) { m_executionHasBeenSet = true; m_execution = value; }
87 
91  inline void SetExecution(FunctionExecutionConfig&& value) { m_executionHasBeenSet = true; m_execution = std::move(value); }
92 
96  inline FunctionConfigurationEnvironment& WithExecution(const FunctionExecutionConfig& value) { SetExecution(value); return *this;}
97 
101  inline FunctionConfigurationEnvironment& WithExecution(FunctionExecutionConfig&& value) { SetExecution(std::move(value)); return *this;}
102 
103 
110  inline const Aws::Vector<ResourceAccessPolicy>& GetResourceAccessPolicies() const{ return m_resourceAccessPolicies; }
111 
118  inline bool ResourceAccessPoliciesHasBeenSet() const { return m_resourceAccessPoliciesHasBeenSet; }
119 
126  inline void SetResourceAccessPolicies(const Aws::Vector<ResourceAccessPolicy>& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies = value; }
127 
134  inline void SetResourceAccessPolicies(Aws::Vector<ResourceAccessPolicy>&& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies = std::move(value); }
135 
142  inline FunctionConfigurationEnvironment& WithResourceAccessPolicies(const Aws::Vector<ResourceAccessPolicy>& value) { SetResourceAccessPolicies(value); return *this;}
143 
150  inline FunctionConfigurationEnvironment& WithResourceAccessPolicies(Aws::Vector<ResourceAccessPolicy>&& value) { SetResourceAccessPolicies(std::move(value)); return *this;}
151 
158  inline FunctionConfigurationEnvironment& AddResourceAccessPolicies(const ResourceAccessPolicy& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies.push_back(value); return *this; }
159 
166  inline FunctionConfigurationEnvironment& AddResourceAccessPolicies(ResourceAccessPolicy&& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies.push_back(std::move(value)); return *this; }
167 
168 
172  inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
173 
177  inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
178 
182  inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
183 
187  inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
188 
192  inline FunctionConfigurationEnvironment& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
193 
197  inline FunctionConfigurationEnvironment& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
198 
202  inline FunctionConfigurationEnvironment& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
203 
207  inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
208 
212  inline FunctionConfigurationEnvironment& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
213 
217  inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
218 
222  inline FunctionConfigurationEnvironment& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
223 
227  inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
228 
232  inline FunctionConfigurationEnvironment& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
233 
234  private:
235 
236  bool m_accessSysfs;
237  bool m_accessSysfsHasBeenSet;
238 
239  FunctionExecutionConfig m_execution;
240  bool m_executionHasBeenSet;
241 
242  Aws::Vector<ResourceAccessPolicy> m_resourceAccessPolicies;
243  bool m_resourceAccessPoliciesHasBeenSet;
244 
246  bool m_variablesHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace Greengrass
251 } // namespace Aws
Aws::Greengrass::Model::FunctionConfigurationEnvironment::operator=
FunctionConfigurationEnvironment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Greengrass::Model::FunctionConfigurationEnvironment::VariablesHasBeenSet
bool VariablesHasBeenSet() const
Definition: FunctionConfigurationEnvironment.h:177
Aws::Greengrass::Model::FunctionConfigurationEnvironment::FunctionConfigurationEnvironment
FunctionConfigurationEnvironment()
Aws::Greengrass::Model::FunctionConfigurationEnvironment::WithExecution
FunctionConfigurationEnvironment & WithExecution(FunctionExecutionConfig &&value)
Definition: FunctionConfigurationEnvironment.h:101
Aws::Greengrass::Model::FunctionConfigurationEnvironment::WithVariables
FunctionConfigurationEnvironment & WithVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: FunctionConfigurationEnvironment.h:197
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddVariables
FunctionConfigurationEnvironment & AddVariables(const char *key, Aws::String &&value)
Definition: FunctionConfigurationEnvironment.h:222
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddVariables
FunctionConfigurationEnvironment & AddVariables(const Aws::String &key, Aws::String &&value)
Definition: FunctionConfigurationEnvironment.h:212
Greengrass_EXPORTS.h
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
Aws::Greengrass::Model::FunctionConfigurationEnvironment::GetVariables
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
Definition: FunctionConfigurationEnvironment.h:172
Aws::Greengrass::Model::FunctionConfigurationEnvironment
Definition: FunctionConfigurationEnvironment.h:36
Aws::Greengrass::Model::FunctionConfigurationEnvironment::SetExecution
void SetExecution(const FunctionExecutionConfig &value)
Definition: FunctionConfigurationEnvironment.h:86
Aws::Greengrass::Model::FunctionConfigurationEnvironment::FunctionConfigurationEnvironment
FunctionConfigurationEnvironment(Aws::Utils::Json::JsonView jsonValue)
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddVariables
FunctionConfigurationEnvironment & AddVariables(Aws::String &&key, const char *value)
Definition: FunctionConfigurationEnvironment.h:227
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Greengrass::Model::FunctionConfigurationEnvironment::WithVariables
FunctionConfigurationEnvironment & WithVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: FunctionConfigurationEnvironment.h:192
Aws::Greengrass::Model::FunctionConfigurationEnvironment::SetVariables
void SetVariables(Aws::Map< Aws::String, Aws::String > &&value)
Definition: FunctionConfigurationEnvironment.h:187
Aws::Greengrass::Model::FunctionConfigurationEnvironment::GetAccessSysfs
bool GetAccessSysfs() const
Definition: FunctionConfigurationEnvironment.h:49
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddResourceAccessPolicies
FunctionConfigurationEnvironment & AddResourceAccessPolicies(ResourceAccessPolicy &&value)
Definition: FunctionConfigurationEnvironment.h:166
AWSVector.h
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddVariables
FunctionConfigurationEnvironment & AddVariables(const Aws::String &key, const Aws::String &value)
Definition: FunctionConfigurationEnvironment.h:202
Aws::Greengrass::Model::FunctionConfigurationEnvironment::WithExecution
FunctionConfigurationEnvironment & WithExecution(const FunctionExecutionConfig &value)
Definition: FunctionConfigurationEnvironment.h:96
Aws::Greengrass::Model::FunctionConfigurationEnvironment::ResourceAccessPoliciesHasBeenSet
bool ResourceAccessPoliciesHasBeenSet() const
Definition: FunctionConfigurationEnvironment.h:118
FunctionExecutionConfig.h
Aws::Greengrass::Model::FunctionExecutionConfig
Definition: FunctionExecutionConfig.h:34
Aws::Greengrass::Model::ResourceAccessPolicy
Definition: ResourceAccessPolicy.h:33
Aws::Greengrass::Model::FunctionConfigurationEnvironment::WithAccessSysfs
FunctionConfigurationEnvironment & WithAccessSysfs(bool value)
Definition: FunctionConfigurationEnvironment.h:70
ResourceAccessPolicy.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Greengrass::Model::FunctionConfigurationEnvironment::SetResourceAccessPolicies
void SetResourceAccessPolicies(const Aws::Vector< ResourceAccessPolicy > &value)
Definition: FunctionConfigurationEnvironment.h:126
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Greengrass::Model::FunctionConfigurationEnvironment::GetExecution
const FunctionExecutionConfig & GetExecution() const
Definition: FunctionConfigurationEnvironment.h:76
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddResourceAccessPolicies
FunctionConfigurationEnvironment & AddResourceAccessPolicies(const ResourceAccessPolicy &value)
Definition: FunctionConfigurationEnvironment.h:158
Aws::Greengrass::Model::FunctionConfigurationEnvironment::SetResourceAccessPolicies
void SetResourceAccessPolicies(Aws::Vector< ResourceAccessPolicy > &&value)
Definition: FunctionConfigurationEnvironment.h:134
Aws::Greengrass::Model::FunctionConfigurationEnvironment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Greengrass::Model::FunctionConfigurationEnvironment::SetAccessSysfs
void SetAccessSysfs(bool value)
Definition: FunctionConfigurationEnvironment.h:63
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddVariables
FunctionConfigurationEnvironment & AddVariables(Aws::String &&key, Aws::String &&value)
Definition: FunctionConfigurationEnvironment.h:217
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddVariables
FunctionConfigurationEnvironment & AddVariables(const char *key, const char *value)
Definition: FunctionConfigurationEnvironment.h:232
Aws
Definition: AccessManagementClient.h:15
Aws::Greengrass::Model::FunctionConfigurationEnvironment::WithResourceAccessPolicies
FunctionConfigurationEnvironment & WithResourceAccessPolicies(const Aws::Vector< ResourceAccessPolicy > &value)
Definition: FunctionConfigurationEnvironment.h:142
Aws::Greengrass::Model::FunctionConfigurationEnvironment::SetExecution
void SetExecution(FunctionExecutionConfig &&value)
Definition: FunctionConfigurationEnvironment.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::FunctionConfigurationEnvironment::GetResourceAccessPolicies
const Aws::Vector< ResourceAccessPolicy > & GetResourceAccessPolicies() const
Definition: FunctionConfigurationEnvironment.h:110
Aws::Greengrass::Model::FunctionConfigurationEnvironment::ExecutionHasBeenSet
bool ExecutionHasBeenSet() const
Definition: FunctionConfigurationEnvironment.h:81
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AddVariables
FunctionConfigurationEnvironment & AddVariables(Aws::String &&key, const Aws::String &value)
Definition: FunctionConfigurationEnvironment.h:207
Aws::Greengrass::Model::FunctionConfigurationEnvironment::SetVariables
void SetVariables(const Aws::Map< Aws::String, Aws::String > &value)
Definition: FunctionConfigurationEnvironment.h:182
Aws::Greengrass::Model::FunctionConfigurationEnvironment::AccessSysfsHasBeenSet
bool AccessSysfsHasBeenSet() const
Definition: FunctionConfigurationEnvironment.h:56
AWSMap.h
Aws::Greengrass::Model::FunctionConfigurationEnvironment::WithResourceAccessPolicies
FunctionConfigurationEnvironment & WithResourceAccessPolicies(Aws::Vector< ResourceAccessPolicy > &&value)
Definition: FunctionConfigurationEnvironment.h:150
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19