AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/CrawlState.h>
10#include <aws/glue/model/JobRunState.h>
11#include <aws/glue/model/LogicalOperator.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
30class Condition {
31 public:
32 AWS_GLUE_API Condition() = default;
33 AWS_GLUE_API Condition(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline LogicalOperator GetLogicalOperator() const { return m_logicalOperator; }
42 inline bool LogicalOperatorHasBeenSet() const { return m_logicalOperatorHasBeenSet; }
44 m_logicalOperatorHasBeenSet = true;
45 m_logicalOperator = value;
46 }
48 SetLogicalOperator(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetJobName() const { return m_jobName; }
59 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
60 template <typename JobNameT = Aws::String>
61 void SetJobName(JobNameT&& value) {
62 m_jobNameHasBeenSet = true;
63 m_jobName = std::forward<JobNameT>(value);
64 }
65 template <typename JobNameT = Aws::String>
66 Condition& WithJobName(JobNameT&& value) {
67 SetJobName(std::forward<JobNameT>(value));
68 return *this;
69 }
71
73
79 inline JobRunState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(JobRunState value) {
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetCrawlerName() const { return m_crawlerName; }
96 inline bool CrawlerNameHasBeenSet() const { return m_crawlerNameHasBeenSet; }
97 template <typename CrawlerNameT = Aws::String>
98 void SetCrawlerName(CrawlerNameT&& value) {
99 m_crawlerNameHasBeenSet = true;
100 m_crawlerName = std::forward<CrawlerNameT>(value);
101 }
102 template <typename CrawlerNameT = Aws::String>
103 Condition& WithCrawlerName(CrawlerNameT&& value) {
104 SetCrawlerName(std::forward<CrawlerNameT>(value));
105 return *this;
106 }
108
110
113 inline CrawlState GetCrawlState() const { return m_crawlState; }
114 inline bool CrawlStateHasBeenSet() const { return m_crawlStateHasBeenSet; }
115 inline void SetCrawlState(CrawlState value) {
116 m_crawlStateHasBeenSet = true;
117 m_crawlState = value;
118 }
120 SetCrawlState(value);
121 return *this;
122 }
124 private:
125 LogicalOperator m_logicalOperator{LogicalOperator::NOT_SET};
126
127 Aws::String m_jobName;
128
130
131 Aws::String m_crawlerName;
132
133 CrawlState m_crawlState{CrawlState::NOT_SET};
134 bool m_logicalOperatorHasBeenSet = false;
135 bool m_jobNameHasBeenSet = false;
136 bool m_stateHasBeenSet = false;
137 bool m_crawlerNameHasBeenSet = false;
138 bool m_crawlStateHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Glue
143} // namespace Aws
const Aws::String & GetJobName() const
Definition Condition.h:58
bool LogicalOperatorHasBeenSet() const
Definition Condition.h:42
CrawlState GetCrawlState() const
Definition Condition.h:113
void SetCrawlState(CrawlState value)
Definition Condition.h:115
Condition & WithCrawlerName(CrawlerNameT &&value)
Definition Condition.h:103
Condition & WithLogicalOperator(LogicalOperator value)
Definition Condition.h:47
AWS_GLUE_API Condition()=default
Condition & WithCrawlState(CrawlState value)
Definition Condition.h:119
bool CrawlerNameHasBeenSet() const
Definition Condition.h:96
void SetLogicalOperator(LogicalOperator value)
Definition Condition.h:43
LogicalOperator GetLogicalOperator() const
Definition Condition.h:41
void SetState(JobRunState value)
Definition Condition.h:81
bool JobNameHasBeenSet() const
Definition Condition.h:59
Condition & WithJobName(JobNameT &&value)
Definition Condition.h:66
void SetJobName(JobNameT &&value)
Definition Condition.h:61
bool StateHasBeenSet() const
Definition Condition.h:80
bool CrawlStateHasBeenSet() const
Definition Condition.h:114
JobRunState GetState() const
Definition Condition.h:79
const Aws::String & GetCrawlerName() const
Definition Condition.h:95
AWS_GLUE_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
Condition & WithState(JobRunState value)
Definition Condition.h:85
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API Condition(Aws::Utils::Json::JsonView jsonValue)
void SetCrawlerName(CrawlerNameT &&value)
Definition Condition.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue