AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
48 inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
49 inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
50 inline Function& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
51 inline Function& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
52 inline Function& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
54
56
59 inline const FunctionConfiguration& GetFunctionConfiguration() const{ return m_functionConfiguration; }
60 inline bool FunctionConfigurationHasBeenSet() const { return m_functionConfigurationHasBeenSet; }
61 inline void SetFunctionConfiguration(const FunctionConfiguration& value) { m_functionConfigurationHasBeenSet = true; m_functionConfiguration = value; }
62 inline void SetFunctionConfiguration(FunctionConfiguration&& value) { m_functionConfigurationHasBeenSet = true; m_functionConfiguration = std::move(value); }
64 inline Function& WithFunctionConfiguration(FunctionConfiguration&& value) { SetFunctionConfiguration(std::move(value)); return *this;}
66
68
73 inline const Aws::String& GetId() const{ return m_id; }
74 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
75 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
76 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
77 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
78 inline Function& WithId(const Aws::String& value) { SetId(value); return *this;}
79 inline Function& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 inline Function& WithId(const char* value) { SetId(value); return *this;}
82 private:
83
84 Aws::String m_functionArn;
85 bool m_functionArnHasBeenSet = false;
86
87 FunctionConfiguration m_functionConfiguration;
88 bool m_functionConfigurationHasBeenSet = false;
89
90 Aws::String m_id;
91 bool m_idHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Greengrass
96} // namespace Aws
AWS_GREENGRASS_API Function()
void SetFunctionArn(Aws::String &&value)
Definition Function.h:48
void SetFunctionConfiguration(FunctionConfiguration &&value)
Definition Function.h:62
AWS_GREENGRASS_API Function & operator=(Aws::Utils::Json::JsonView jsonValue)
Function & WithFunctionConfiguration(const FunctionConfiguration &value)
Definition Function.h:63
Function & WithId(const Aws::String &value)
Definition Function.h:78
void SetFunctionArn(const Aws::String &value)
Definition Function.h:47
Function & WithFunctionArn(const Aws::String &value)
Definition Function.h:50
void SetId(const Aws::String &value)
Definition Function.h:75
void SetFunctionConfiguration(const FunctionConfiguration &value)
Definition Function.h:61
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
Function & WithFunctionArn(Aws::String &&value)
Definition Function.h:51
Function & WithFunctionArn(const char *value)
Definition Function.h:52
void SetId(Aws::String &&value)
Definition Function.h:76
const Aws::String & GetFunctionArn() const
Definition Function.h:45
bool FunctionConfigurationHasBeenSet() const
Definition Function.h:60
Function & WithId(const char *value)
Definition Function.h:80
void SetId(const char *value)
Definition Function.h:77
const FunctionConfiguration & GetFunctionConfiguration() const
Definition Function.h:59
const Aws::String & GetId() const
Definition Function.h:73
AWS_GREENGRASS_API Function(Aws::Utils::Json::JsonView jsonValue)
void SetFunctionArn(const char *value)
Definition Function.h:49
Function & WithFunctionConfiguration(FunctionConfiguration &&value)
Definition Function.h:64
Function & WithId(Aws::String &&value)
Definition Function.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue