AWS SDK for C++  1.9.108
AWS SDK for C++
LambdaResource.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Snowball
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetLambdaArn() const{ return m_lambdaArn; }
47 
52  inline bool LambdaArnHasBeenSet() const { return m_lambdaArnHasBeenSet; }
53 
58  inline void SetLambdaArn(const Aws::String& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = value; }
59 
64  inline void SetLambdaArn(Aws::String&& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = std::move(value); }
65 
70  inline void SetLambdaArn(const char* value) { m_lambdaArnHasBeenSet = true; m_lambdaArn.assign(value); }
71 
76  inline LambdaResource& WithLambdaArn(const Aws::String& value) { SetLambdaArn(value); return *this;}
77 
82  inline LambdaResource& WithLambdaArn(Aws::String&& value) { SetLambdaArn(std::move(value)); return *this;}
83 
88  inline LambdaResource& WithLambdaArn(const char* value) { SetLambdaArn(value); return *this;}
89 
90 
95  inline const Aws::Vector<EventTriggerDefinition>& GetEventTriggers() const{ return m_eventTriggers; }
96 
101  inline bool EventTriggersHasBeenSet() const { return m_eventTriggersHasBeenSet; }
102 
107  inline void SetEventTriggers(const Aws::Vector<EventTriggerDefinition>& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers = value; }
108 
113  inline void SetEventTriggers(Aws::Vector<EventTriggerDefinition>&& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers = std::move(value); }
114 
119  inline LambdaResource& WithEventTriggers(const Aws::Vector<EventTriggerDefinition>& value) { SetEventTriggers(value); return *this;}
120 
125  inline LambdaResource& WithEventTriggers(Aws::Vector<EventTriggerDefinition>&& value) { SetEventTriggers(std::move(value)); return *this;}
126 
131  inline LambdaResource& AddEventTriggers(const EventTriggerDefinition& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers.push_back(value); return *this; }
132 
137  inline LambdaResource& AddEventTriggers(EventTriggerDefinition&& value) { m_eventTriggersHasBeenSet = true; m_eventTriggers.push_back(std::move(value)); return *this; }
138 
139  private:
140 
141  Aws::String m_lambdaArn;
142  bool m_lambdaArnHasBeenSet;
143 
144  Aws::Vector<EventTriggerDefinition> m_eventTriggers;
145  bool m_eventTriggersHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace Snowball
150 } // namespace Aws
Aws::Snowball::Model::LambdaResource::LambdaArnHasBeenSet
bool LambdaArnHasBeenSet() const
Definition: LambdaResource.h:52
Aws::Snowball::Model::LambdaResource::GetLambdaArn
const Aws::String & GetLambdaArn() const
Definition: LambdaResource.h:46
Aws::Snowball::Model::LambdaResource::WithLambdaArn
LambdaResource & WithLambdaArn(Aws::String &&value)
Definition: LambdaResource.h:82
Aws::Snowball::Model::LambdaResource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Snowball::Model::LambdaResource::SetLambdaArn
void SetLambdaArn(const char *value)
Definition: LambdaResource.h:70
EventTriggerDefinition.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Snowball::Model::LambdaResource::WithLambdaArn
LambdaResource & WithLambdaArn(const char *value)
Definition: LambdaResource.h:88
Aws::Snowball::Model::LambdaResource::operator=
LambdaResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::Snowball::Model::LambdaResource::SetEventTriggers
void SetEventTriggers(const Aws::Vector< EventTriggerDefinition > &value)
Definition: LambdaResource.h:107
Aws::Snowball::Model::LambdaResource::WithEventTriggers
LambdaResource & WithEventTriggers(Aws::Vector< EventTriggerDefinition > &&value)
Definition: LambdaResource.h:125
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::LambdaResource::GetEventTriggers
const Aws::Vector< EventTriggerDefinition > & GetEventTriggers() const
Definition: LambdaResource.h:95
Aws::Snowball::Model::LambdaResource::AddEventTriggers
LambdaResource & AddEventTriggers(const EventTriggerDefinition &value)
Definition: LambdaResource.h:131
Aws::Snowball::Model::LambdaResource::SetEventTriggers
void SetEventTriggers(Aws::Vector< EventTriggerDefinition > &&value)
Definition: LambdaResource.h:113
Aws::Snowball::Model::EventTriggerDefinition
Definition: EventTriggerDefinition.h:33
Aws::Snowball::Model::LambdaResource::SetLambdaArn
void SetLambdaArn(const Aws::String &value)
Definition: LambdaResource.h:58
Aws::Snowball::Model::LambdaResource::WithLambdaArn
LambdaResource & WithLambdaArn(const Aws::String &value)
Definition: LambdaResource.h:76
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Snowball::Model::LambdaResource::SetLambdaArn
void SetLambdaArn(Aws::String &&value)
Definition: LambdaResource.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::LambdaResource::AddEventTriggers
LambdaResource & AddEventTriggers(EventTriggerDefinition &&value)
Definition: LambdaResource.h:137
Aws::Snowball::Model::LambdaResource::LambdaResource
LambdaResource()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::LambdaResource::WithEventTriggers
LambdaResource & WithEventTriggers(const Aws::Vector< EventTriggerDefinition > &value)
Definition: LambdaResource.h:119
Aws::Snowball::Model::LambdaResource::EventTriggersHasBeenSet
bool EventTriggersHasBeenSet() const
Definition: LambdaResource.h:101
Aws::Snowball::Model::LambdaResource
Definition: LambdaResource.h:34
Snowball_EXPORTS.h
Aws::Snowball::Model::LambdaResource::LambdaResource
LambdaResource(Aws::Utils::Json::JsonView jsonValue)