AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/LogicalOperator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/JobRunState.h>
11#include <aws/glue/model/CrawlState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_GLUE_API Condition();
38 AWS_GLUE_API Condition(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const LogicalOperator& GetLogicalOperator() const{ return m_logicalOperator; }
48 inline bool LogicalOperatorHasBeenSet() const { return m_logicalOperatorHasBeenSet; }
49 inline void SetLogicalOperator(const LogicalOperator& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = value; }
50 inline void SetLogicalOperator(LogicalOperator&& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = std::move(value); }
51 inline Condition& WithLogicalOperator(const LogicalOperator& value) { SetLogicalOperator(value); return *this;}
52 inline Condition& WithLogicalOperator(LogicalOperator&& value) { SetLogicalOperator(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetJobName() const{ return m_jobName; }
61 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
62 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
63 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
64 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
65 inline Condition& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
66 inline Condition& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
67 inline Condition& WithJobName(const char* value) { SetJobName(value); return *this;}
69
71
77 inline const JobRunState& GetState() const{ return m_state; }
78 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
79 inline void SetState(const JobRunState& value) { m_stateHasBeenSet = true; m_state = value; }
80 inline void SetState(JobRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
81 inline Condition& WithState(const JobRunState& value) { SetState(value); return *this;}
82 inline Condition& WithState(JobRunState&& value) { SetState(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetCrawlerName() const{ return m_crawlerName; }
90 inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
91 inline void SetCrawlerName(const Aws::String& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = value; }
92 inline void SetCrawlerName(Aws::String&& value) { m_crawlerNameHasBeenSet = true; m_crawlerName = std::move(value); }
93 inline void SetCrawlerName(const char* value) { m_crawlerNameHasBeenSet = true; m_crawlerName.assign(value); }
94 inline Condition& WithCrawlerName(const Aws::String& value) { SetCrawlerName(value); return *this;}
95 inline Condition& WithCrawlerName(Aws::String&& value) { SetCrawlerName(std::move(value)); return *this;}
96 inline Condition& WithCrawlerName(const char* value) { SetCrawlerName(value); return *this;}
98
100
103 inline const CrawlState& GetCrawlState() const{ return m_crawlState; }
104 inline bool CrawlStateHasBeenSet() const { return m_crawlStateHasBeenSet; }
105 inline void SetCrawlState(const CrawlState& value) { m_crawlStateHasBeenSet = true; m_crawlState = value; }
106 inline void SetCrawlState(CrawlState&& value) { m_crawlStateHasBeenSet = true; m_crawlState = std::move(value); }
107 inline Condition& WithCrawlState(const CrawlState& value) { SetCrawlState(value); return *this;}
108 inline Condition& WithCrawlState(CrawlState&& value) { SetCrawlState(std::move(value)); return *this;}
110 private:
111
112 LogicalOperator m_logicalOperator;
113 bool m_logicalOperatorHasBeenSet = false;
114
115 Aws::String m_jobName;
116 bool m_jobNameHasBeenSet = false;
117
118 JobRunState m_state;
119 bool m_stateHasBeenSet = false;
120
121 Aws::String m_crawlerName;
122 bool m_crawlerNameHasBeenSet = false;
123
124 CrawlState m_crawlState;
125 bool m_crawlStateHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Glue
130} // namespace Aws
void SetLogicalOperator(const LogicalOperator &value)
Definition Condition.h:49
const LogicalOperator & GetLogicalOperator() const
Definition Condition.h:47
void SetState(JobRunState &&value)
Definition Condition.h:80
const Aws::String & GetJobName() const
Definition Condition.h:60
bool LogicalOperatorHasBeenSet() const
Definition Condition.h:48
Condition & WithState(JobRunState &&value)
Definition Condition.h:82
Condition & WithCrawlerName(const Aws::String &value)
Definition Condition.h:94
void SetLogicalOperator(LogicalOperator &&value)
Definition Condition.h:50
void SetCrawlState(CrawlState &&value)
Definition Condition.h:106
void SetCrawlerName(Aws::String &&value)
Definition Condition.h:92
Condition & WithLogicalOperator(LogicalOperator &&value)
Definition Condition.h:52
void SetCrawlerName(const Aws::String &value)
Definition Condition.h:91
bool CrawlerNameHasBeenSet() const
Definition Condition.h:90
const CrawlState & GetCrawlState() const
Definition Condition.h:103
const JobRunState & GetState() const
Definition Condition.h:77
void SetJobName(Aws::String &&value)
Definition Condition.h:63
void SetState(const JobRunState &value)
Definition Condition.h:79
Condition & WithCrawlState(const CrawlState &value)
Definition Condition.h:107
bool JobNameHasBeenSet() const
Definition Condition.h:61
Condition & WithLogicalOperator(const LogicalOperator &value)
Definition Condition.h:51
void SetCrawlState(const CrawlState &value)
Definition Condition.h:105
Condition & WithCrawlerName(Aws::String &&value)
Definition Condition.h:95
void SetCrawlerName(const char *value)
Definition Condition.h:93
bool StateHasBeenSet() const
Definition Condition.h:78
Condition & WithJobName(Aws::String &&value)
Definition Condition.h:66
Condition & WithCrawlerName(const char *value)
Definition Condition.h:96
bool CrawlStateHasBeenSet() const
Definition Condition.h:104
Condition & WithCrawlState(CrawlState &&value)
Definition Condition.h:108
Condition & WithJobName(const char *value)
Definition Condition.h:67
const Aws::String & GetCrawlerName() const
Definition Condition.h:89
AWS_GLUE_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJobName(const char *value)
Definition Condition.h:64
void SetJobName(const Aws::String &value)
Definition Condition.h:62
AWS_GLUE_API Condition(Aws::Utils::Json::JsonView jsonValue)
Condition & WithState(const JobRunState &value)
Definition Condition.h:81
Condition & WithJobName(const Aws::String &value)
Definition Condition.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue