AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/NotificationProperty.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
29class Action {
30 public:
31 AWS_GLUE_API Action() = default;
32 AWS_GLUE_API Action(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetJobName() const { return m_jobName; }
41 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
42 template <typename JobNameT = Aws::String>
43 void SetJobName(JobNameT&& value) {
44 m_jobNameHasBeenSet = true;
45 m_jobName = std::forward<JobNameT>(value);
46 }
47 template <typename JobNameT = Aws::String>
48 Action& WithJobName(JobNameT&& value) {
49 SetJobName(std::forward<JobNameT>(value));
50 return *this;
51 }
53
55
67 inline const Aws::Map<Aws::String, Aws::String>& GetArguments() const { return m_arguments; }
68 inline bool ArgumentsHasBeenSet() const { return m_argumentsHasBeenSet; }
69 template <typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
70 void SetArguments(ArgumentsT&& value) {
71 m_argumentsHasBeenSet = true;
72 m_arguments = std::forward<ArgumentsT>(value);
73 }
74 template <typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
75 Action& WithArguments(ArgumentsT&& value) {
76 SetArguments(std::forward<ArgumentsT>(value));
77 return *this;
78 }
79 template <typename ArgumentsKeyT = Aws::String, typename ArgumentsValueT = Aws::String>
80 Action& AddArguments(ArgumentsKeyT&& key, ArgumentsValueT&& value) {
81 m_argumentsHasBeenSet = true;
82 m_arguments.emplace(std::forward<ArgumentsKeyT>(key), std::forward<ArgumentsValueT>(value));
83 return *this;
84 }
86
88
102 inline int GetTimeout() const { return m_timeout; }
103 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
104 inline void SetTimeout(int value) {
105 m_timeoutHasBeenSet = true;
106 m_timeout = value;
107 }
108 inline Action& WithTimeout(int value) {
109 SetTimeout(value);
110 return *this;
111 }
113
115
119 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
120 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
121 template <typename SecurityConfigurationT = Aws::String>
122 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
123 m_securityConfigurationHasBeenSet = true;
124 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
125 }
126 template <typename SecurityConfigurationT = Aws::String>
127 Action& WithSecurityConfiguration(SecurityConfigurationT&& value) {
128 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
129 return *this;
130 }
132
134
137 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
138 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
139 template <typename NotificationPropertyT = NotificationProperty>
140 void SetNotificationProperty(NotificationPropertyT&& value) {
141 m_notificationPropertyHasBeenSet = true;
142 m_notificationProperty = std::forward<NotificationPropertyT>(value);
143 }
144 template <typename NotificationPropertyT = NotificationProperty>
145 Action& WithNotificationProperty(NotificationPropertyT&& value) {
146 SetNotificationProperty(std::forward<NotificationPropertyT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetCrawlerName() const { return m_crawlerName; }
156 inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
157 template <typename CrawlerNameT = Aws::String>
158 void SetCrawlerName(CrawlerNameT&& value) {
159 m_crawlerNameHasBeenSet = true;
160 m_crawlerName = std::forward<CrawlerNameT>(value);
161 }
162 template <typename CrawlerNameT = Aws::String>
163 Action& WithCrawlerName(CrawlerNameT&& value) {
164 SetCrawlerName(std::forward<CrawlerNameT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_jobName;
170
172
173 int m_timeout{0};
174
175 Aws::String m_securityConfiguration;
176
177 NotificationProperty m_notificationProperty;
178
179 Aws::String m_crawlerName;
180 bool m_jobNameHasBeenSet = false;
181 bool m_argumentsHasBeenSet = false;
182 bool m_timeoutHasBeenSet = false;
183 bool m_securityConfigurationHasBeenSet = false;
184 bool m_notificationPropertyHasBeenSet = false;
185 bool m_crawlerNameHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace Glue
190} // namespace Aws
void SetCrawlerName(CrawlerNameT &&value)
Definition Action.h:158
const Aws::String & GetCrawlerName() const
Definition Action.h:155
AWS_GLUE_API Action(Aws::Utils::Json::JsonView jsonValue)
void SetTimeout(int value)
Definition Action.h:104
bool SecurityConfigurationHasBeenSet() const
Definition Action.h:120
const NotificationProperty & GetNotificationProperty() const
Definition Action.h:137
void SetNotificationProperty(NotificationPropertyT &&value)
Definition Action.h:140
Action & WithCrawlerName(CrawlerNameT &&value)
Definition Action.h:163
const Aws::String & GetSecurityConfiguration() const
Definition Action.h:119
Action & WithArguments(ArgumentsT &&value)
Definition Action.h:75
void SetJobName(JobNameT &&value)
Definition Action.h:43
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Action & WithNotificationProperty(NotificationPropertyT &&value)
Definition Action.h:145
const Aws::String & GetJobName() const
Definition Action.h:40
bool NotificationPropertyHasBeenSet() const
Definition Action.h:138
int GetTimeout() const
Definition Action.h:102
bool JobNameHasBeenSet() const
Definition Action.h:41
Action & WithTimeout(int value)
Definition Action.h:108
void SetArguments(ArgumentsT &&value)
Definition Action.h:70
bool CrawlerNameHasBeenSet() const
Definition Action.h:156
AWS_GLUE_API Action()=default
AWS_GLUE_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithJobName(JobNameT &&value)
Definition Action.h:48
Action & AddArguments(ArgumentsKeyT &&key, ArgumentsValueT &&value)
Definition Action.h:80
void SetSecurityConfiguration(SecurityConfigurationT &&value)
Definition Action.h:122
Action & WithSecurityConfiguration(SecurityConfigurationT &&value)
Definition Action.h:127
bool ArgumentsHasBeenSet() const
Definition Action.h:68
bool TimeoutHasBeenSet() const
Definition Action.h:103
const Aws::Map< Aws::String, Aws::String > & GetArguments() const
Definition Action.h:67
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue