AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
101 inline int GetTimeout() const { return m_timeout; }
102 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
103 inline void SetTimeout(int value) {
104 m_timeoutHasBeenSet = true;
105 m_timeout = value;
106 }
107 inline Action& WithTimeout(int value) {
108 SetTimeout(value);
109 return *this;
110 }
112
114
118 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
119 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
120 template <typename SecurityConfigurationT = Aws::String>
121 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
122 m_securityConfigurationHasBeenSet = true;
123 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
124 }
125 template <typename SecurityConfigurationT = Aws::String>
126 Action& WithSecurityConfiguration(SecurityConfigurationT&& value) {
127 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
128 return *this;
129 }
131
133
136 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
137 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
138 template <typename NotificationPropertyT = NotificationProperty>
139 void SetNotificationProperty(NotificationPropertyT&& value) {
140 m_notificationPropertyHasBeenSet = true;
141 m_notificationProperty = std::forward<NotificationPropertyT>(value);
142 }
143 template <typename NotificationPropertyT = NotificationProperty>
144 Action& WithNotificationProperty(NotificationPropertyT&& value) {
145 SetNotificationProperty(std::forward<NotificationPropertyT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetCrawlerName() const { return m_crawlerName; }
155 inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
156 template <typename CrawlerNameT = Aws::String>
157 void SetCrawlerName(CrawlerNameT&& value) {
158 m_crawlerNameHasBeenSet = true;
159 m_crawlerName = std::forward<CrawlerNameT>(value);
160 }
161 template <typename CrawlerNameT = Aws::String>
162 Action& WithCrawlerName(CrawlerNameT&& value) {
163 SetCrawlerName(std::forward<CrawlerNameT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_jobName;
169
171
172 int m_timeout{0};
173
174 Aws::String m_securityConfiguration;
175
176 NotificationProperty m_notificationProperty;
177
178 Aws::String m_crawlerName;
179 bool m_jobNameHasBeenSet = false;
180 bool m_argumentsHasBeenSet = false;
181 bool m_timeoutHasBeenSet = false;
182 bool m_securityConfigurationHasBeenSet = false;
183 bool m_notificationPropertyHasBeenSet = false;
184 bool m_crawlerNameHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace Glue
189} // namespace Aws
void SetCrawlerName(CrawlerNameT &&value)
Definition Action.h:157
const Aws::String & GetCrawlerName() const
Definition Action.h:154
AWS_GLUE_API Action(Aws::Utils::Json::JsonView jsonValue)
void SetTimeout(int value)
Definition Action.h:103
bool SecurityConfigurationHasBeenSet() const
Definition Action.h:119
const NotificationProperty & GetNotificationProperty() const
Definition Action.h:136
void SetNotificationProperty(NotificationPropertyT &&value)
Definition Action.h:139
Action & WithCrawlerName(CrawlerNameT &&value)
Definition Action.h:162
const Aws::String & GetSecurityConfiguration() const
Definition Action.h:118
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:144
const Aws::String & GetJobName() const
Definition Action.h:40
bool NotificationPropertyHasBeenSet() const
Definition Action.h:137
int GetTimeout() const
Definition Action.h:101
bool JobNameHasBeenSet() const
Definition Action.h:41
Action & WithTimeout(int value)
Definition Action.h:107
void SetArguments(ArgumentsT &&value)
Definition Action.h:70
bool CrawlerNameHasBeenSet() const
Definition Action.h:155
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:121
Action & WithSecurityConfiguration(SecurityConfigurationT &&value)
Definition Action.h:126
bool ArgumentsHasBeenSet() const
Definition Action.h:68
bool TimeoutHasBeenSet() const
Definition Action.h:102
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