AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Function.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrass/model/FunctionConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Greengrass
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GREENGRASS_API Function() = default;
36 AWS_GREENGRASS_API Function(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASS_API Function& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
46 inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
47 template<typename FunctionArnT = Aws::String>
48 void SetFunctionArn(FunctionArnT&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::forward<FunctionArnT>(value); }
49 template<typename FunctionArnT = Aws::String>
50 Function& WithFunctionArn(FunctionArnT&& value) { SetFunctionArn(std::forward<FunctionArnT>(value)); return *this;}
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) { m_functionConfigurationHasBeenSet = true; m_functionConfiguration = std::forward<FunctionConfigurationT>(value); }
61 template<typename FunctionConfigurationT = FunctionConfiguration>
62 Function& WithFunctionConfiguration(FunctionConfigurationT&& value) { SetFunctionConfiguration(std::forward<FunctionConfigurationT>(value)); return *this;}
64
66
71 inline const Aws::String& GetId() const { return m_id; }
72 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
73 template<typename IdT = Aws::String>
74 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
75 template<typename IdT = Aws::String>
76 Function& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
78 private:
79
80 Aws::String m_functionArn;
81 bool m_functionArnHasBeenSet = false;
82
83 FunctionConfiguration m_functionConfiguration;
84 bool m_functionConfigurationHasBeenSet = false;
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Greengrass
92} // namespace Aws
void SetFunctionConfiguration(FunctionConfigurationT &&value)
Definition Function.h:60
Function & WithFunctionArn(FunctionArnT &&value)
Definition Function.h:50
AWS_GREENGRASS_API Function & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API Function()=default
Function & WithFunctionConfiguration(FunctionConfigurationT &&value)
Definition Function.h:62
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFunctionArn() const
Definition Function.h:45
void SetFunctionArn(FunctionArnT &&value)
Definition Function.h:48
bool FunctionConfigurationHasBeenSet() const
Definition Function.h:58
Function & WithId(IdT &&value)
Definition Function.h:76
const FunctionConfiguration & GetFunctionConfiguration() const
Definition Function.h:57
const Aws::String & GetId() const
Definition Function.h:71
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