AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/glue/model/NotificationProperty.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 Glue
24{
25namespace Model
26{
27
33 class Action
34 {
35 public:
36 AWS_GLUE_API Action() = default;
37 AWS_GLUE_API Action(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetJobName() const { return m_jobName; }
47 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
48 template<typename JobNameT = Aws::String>
49 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
50 template<typename JobNameT = Aws::String>
51 Action& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
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) { m_argumentsHasBeenSet = true; m_arguments = std::forward<ArgumentsT>(value); }
71 template<typename ArgumentsT = Aws::Map<Aws::String, Aws::String>>
72 Action& WithArguments(ArgumentsT&& value) { SetArguments(std::forward<ArgumentsT>(value)); return *this;}
73 template<typename ArgumentsKeyT = Aws::String, typename ArgumentsValueT = Aws::String>
74 Action& AddArguments(ArgumentsKeyT&& key, ArgumentsValueT&& value) {
75 m_argumentsHasBeenSet = true; m_arguments.emplace(std::forward<ArgumentsKeyT>(key), std::forward<ArgumentsValueT>(value)); return *this;
76 }
78
80
93 inline int GetTimeout() const { return m_timeout; }
94 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
95 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
96 inline Action& WithTimeout(int value) { SetTimeout(value); return *this;}
98
100
104 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
105 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
106 template<typename SecurityConfigurationT = Aws::String>
107 void SetSecurityConfiguration(SecurityConfigurationT&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::forward<SecurityConfigurationT>(value); }
108 template<typename SecurityConfigurationT = Aws::String>
109 Action& WithSecurityConfiguration(SecurityConfigurationT&& value) { SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value)); return *this;}
111
113
116 inline const NotificationProperty& GetNotificationProperty() const { return m_notificationProperty; }
117 inline bool NotificationPropertyHasBeenSet() const { return m_notificationPropertyHasBeenSet; }
118 template<typename NotificationPropertyT = NotificationProperty>
119 void SetNotificationProperty(NotificationPropertyT&& value) { m_notificationPropertyHasBeenSet = true; m_notificationProperty = std::forward<NotificationPropertyT>(value); }
120 template<typename NotificationPropertyT = NotificationProperty>
121 Action& WithNotificationProperty(NotificationPropertyT&& value) { SetNotificationProperty(std::forward<NotificationPropertyT>(value)); return *this;}
123
125
128 inline const Aws::String& GetCrawlerName() const { return m_crawlerName; }
129 inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
130 template<typename CrawlerNameT = Aws::String>
131 void SetCrawlerName(CrawlerNameT&& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = std::forward<CrawlerNameT>(value); }
132 template<typename CrawlerNameT = Aws::String>
133 Action& WithCrawlerName(CrawlerNameT&& value) { SetCrawlerName(std::forward<CrawlerNameT>(value)); return *this;}
135 private:
136
137 Aws::String m_jobName;
138 bool m_jobNameHasBeenSet = false;
139
141 bool m_argumentsHasBeenSet = false;
142
143 int m_timeout{0};
144 bool m_timeoutHasBeenSet = false;
145
146 Aws::String m_securityConfiguration;
147 bool m_securityConfigurationHasBeenSet = false;
148
149 NotificationProperty m_notificationProperty;
150 bool m_notificationPropertyHasBeenSet = false;
151
152 Aws::String m_crawlerName;
153 bool m_crawlerNameHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace Glue
158} // namespace Aws
void SetCrawlerName(CrawlerNameT &&value)
Definition Action.h:131
const Aws::String & GetCrawlerName() const
Definition Action.h:128
AWS_GLUE_API Action(Aws::Utils::Json::JsonView jsonValue)
void SetTimeout(int value)
Definition Action.h:95
bool SecurityConfigurationHasBeenSet() const
Definition Action.h:105
const NotificationProperty & GetNotificationProperty() const
Definition Action.h:116
void SetNotificationProperty(NotificationPropertyT &&value)
Definition Action.h:119
Action & WithCrawlerName(CrawlerNameT &&value)
Definition Action.h:133
const Aws::String & GetSecurityConfiguration() const
Definition Action.h:104
Action & WithArguments(ArgumentsT &&value)
Definition Action.h:72
void SetJobName(JobNameT &&value)
Definition Action.h:49
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
Action & WithNotificationProperty(NotificationPropertyT &&value)
Definition Action.h:121
const Aws::String & GetJobName() const
Definition Action.h:46
bool NotificationPropertyHasBeenSet() const
Definition Action.h:117
int GetTimeout() const
Definition Action.h:93
bool JobNameHasBeenSet() const
Definition Action.h:47
Action & WithTimeout(int value)
Definition Action.h:96
void SetArguments(ArgumentsT &&value)
Definition Action.h:70
bool CrawlerNameHasBeenSet() const
Definition Action.h:129
AWS_GLUE_API Action()=default
AWS_GLUE_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithJobName(JobNameT &&value)
Definition Action.h:51
Action & AddArguments(ArgumentsKeyT &&key, ArgumentsValueT &&value)
Definition Action.h:74
void SetSecurityConfiguration(SecurityConfigurationT &&value)
Definition Action.h:107
Action & WithSecurityConfiguration(SecurityConfigurationT &&value)
Definition Action.h:109
bool ArgumentsHasBeenSet() const
Definition Action.h:68
bool TimeoutHasBeenSet() const
Definition Action.h:94
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