AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LambdaResource.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/snowball/model/EventTriggerDefinition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Snowball
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SNOWBALL_API LambdaResource();
37 AWS_SNOWBALL_API LambdaResource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetLambdaArn() const{ return m_lambdaArn; }
48 inline bool LambdaArnHasBeenSet() const { return m_lambdaArnHasBeenSet; }
49 inline void SetLambdaArn(const Aws::String& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = value; }
50 inline void SetLambdaArn(Aws::String&& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = std::move(value); }
51 inline void SetLambdaArn(const char* value) { m_lambdaArnHasBeenSet = true; m_lambdaArn.assign(value); }
52 inline LambdaResource& WithLambdaArn(const Aws::String& value) { SetLambdaArn(value); return *this;}
53 inline LambdaResource& WithLambdaArn(Aws::String&& value) { SetLambdaArn(std::move(value)); return *this;}
54 inline LambdaResource& WithLambdaArn(const char* value) { SetLambdaArn(value); return *this;}
56
58
62 inline const Aws::Vector<EventTriggerDefinition>& GetEventTriggers() const{ return m_eventTriggers; }
63 inline bool EventTriggersHasBeenSet() const { return m_eventTriggersHasBeenSet; }
64 inline void SetEventTriggers(const Aws::Vector<EventTriggerDefinition>& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers = value; }
65 inline void SetEventTriggers(Aws::Vector<EventTriggerDefinition>&& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers = std::move(value); }
67 inline LambdaResource& WithEventTriggers(Aws::Vector<EventTriggerDefinition>&& value) { SetEventTriggers(std::move(value)); return *this;}
68 inline LambdaResource& AddEventTriggers(const EventTriggerDefinition& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers.push_back(value); return *this; }
69 inline LambdaResource& AddEventTriggers(EventTriggerDefinition&& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_lambdaArn;
74 bool m_lambdaArnHasBeenSet = false;
75
77 bool m_eventTriggersHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Snowball
82} // namespace Aws
void SetLambdaArn(Aws::String &&value)
const Aws::Vector< EventTriggerDefinition > & GetEventTriggers() const
void SetEventTriggers(const Aws::Vector< EventTriggerDefinition > &value)
LambdaResource & WithLambdaArn(const Aws::String &value)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLambdaArn(const char *value)
LambdaResource & AddEventTriggers(EventTriggerDefinition &&value)
LambdaResource & AddEventTriggers(const EventTriggerDefinition &value)
AWS_SNOWBALL_API LambdaResource(Aws::Utils::Json::JsonView jsonValue)
LambdaResource & WithLambdaArn(const char *value)
void SetLambdaArn(const Aws::String &value)
LambdaResource & WithEventTriggers(Aws::Vector< EventTriggerDefinition > &&value)
LambdaResource & WithEventTriggers(const Aws::Vector< EventTriggerDefinition > &value)
AWS_SNOWBALL_API LambdaResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEventTriggers(Aws::Vector< EventTriggerDefinition > &&value)
const Aws::String & GetLambdaArn() const
LambdaResource & WithLambdaArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue