AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Function.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9#include <aws/greengrass/model/FunctionConfiguration.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Greengrass {
21namespace Model {
22
28class Function {
29 public:
30 AWS_GREENGRASS_API Function() = default;
31 AWS_GREENGRASS_API Function(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GREENGRASS_API Function& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
40 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
41 template <typename FunctionArnT = Aws::String>
42 void SetFunctionArn(FunctionArnT&& value) {
43 m_functionArnHasBeenSet = true;
44 m_functionArn = std::forward<FunctionArnT>(value);
45 }
46 template <typename FunctionArnT = Aws::String>
47 Function& WithFunctionArn(FunctionArnT&& value) {
48 SetFunctionArn(std::forward<FunctionArnT>(value));
49 return *this;
50 }
52
54
57 inline const FunctionConfiguration& GetFunctionConfiguration() const { return m_functionConfiguration; }
58 inline bool FunctionConfigurationHasBeenSet() const { return m_functionConfigurationHasBeenSet; }
59 template <typename FunctionConfigurationT = FunctionConfiguration>
60 void SetFunctionConfiguration(FunctionConfigurationT&& value) {
61 m_functionConfigurationHasBeenSet = true;
62 m_functionConfiguration = std::forward<FunctionConfigurationT>(value);
63 }
64 template <typename FunctionConfigurationT = FunctionConfiguration>
65 Function& WithFunctionConfiguration(FunctionConfigurationT&& value) {
66 SetFunctionConfiguration(std::forward<FunctionConfigurationT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetId() const { return m_id; }
78 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
79 template <typename IdT = Aws::String>
80 void SetId(IdT&& value) {
81 m_idHasBeenSet = true;
82 m_id = std::forward<IdT>(value);
83 }
84 template <typename IdT = Aws::String>
85 Function& WithId(IdT&& value) {
86 SetId(std::forward<IdT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_functionArn;
92
93 FunctionConfiguration m_functionConfiguration;
94
95 Aws::String m_id;
96 bool m_functionArnHasBeenSet = false;
97 bool m_functionConfigurationHasBeenSet = false;
98 bool m_idHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Greengrass
103} // namespace Aws
void SetFunctionConfiguration(FunctionConfigurationT &&value)
Definition Function.h:60
Function & WithFunctionArn(FunctionArnT &&value)
Definition Function.h:47
AWS_GREENGRASS_API Function & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API Function()=default
Function & WithFunctionConfiguration(FunctionConfigurationT &&value)
Definition Function.h:65
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFunctionArn() const
Definition Function.h:39
void SetFunctionArn(FunctionArnT &&value)
Definition Function.h:42
bool FunctionConfigurationHasBeenSet() const
Definition Function.h:58
Function & WithId(IdT &&value)
Definition Function.h:85
const FunctionConfiguration & GetFunctionConfiguration() const
Definition Function.h:57
const Aws::String & GetId() const
Definition Function.h:77
AWS_GREENGRASS_API Function(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue