AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Crawl.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/CrawlState.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.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 Crawl
34 {
35 public:
36 AWS_GLUE_API Crawl() = default;
37 AWS_GLUE_API Crawl(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLUE_API Crawl& operator=(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline CrawlState GetState() const { return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(CrawlState value) { m_stateHasBeenSet = true; m_state = value; }
49 inline Crawl& WithState(CrawlState value) { SetState(value); return *this;}
51
53
56 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
57 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
58 template<typename StartedOnT = Aws::Utils::DateTime>
59 void SetStartedOn(StartedOnT&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::forward<StartedOnT>(value); }
60 template<typename StartedOnT = Aws::Utils::DateTime>
61 Crawl& WithStartedOn(StartedOnT&& value) { SetStartedOn(std::forward<StartedOnT>(value)); return *this;}
63
65
68 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
69 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
70 template<typename CompletedOnT = Aws::Utils::DateTime>
71 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::forward<CompletedOnT>(value); }
72 template<typename CompletedOnT = Aws::Utils::DateTime>
73 Crawl& WithCompletedOn(CompletedOnT&& value) { SetCompletedOn(std::forward<CompletedOnT>(value)); return *this;}
75
77
80 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
81 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
82 template<typename ErrorMessageT = Aws::String>
83 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
84 template<typename ErrorMessageT = Aws::String>
85 Crawl& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
87
89
92 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
93 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
94 template<typename LogGroupT = Aws::String>
95 void SetLogGroup(LogGroupT&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::forward<LogGroupT>(value); }
96 template<typename LogGroupT = Aws::String>
97 Crawl& WithLogGroup(LogGroupT&& value) { SetLogGroup(std::forward<LogGroupT>(value)); return *this;}
99
101
104 inline const Aws::String& GetLogStream() const { return m_logStream; }
105 inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; }
106 template<typename LogStreamT = Aws::String>
107 void SetLogStream(LogStreamT&& value) { m_logStreamHasBeenSet = true; m_logStream = std::forward<LogStreamT>(value); }
108 template<typename LogStreamT = Aws::String>
109 Crawl& WithLogStream(LogStreamT&& value) { SetLogStream(std::forward<LogStreamT>(value)); return *this;}
111 private:
112
114 bool m_stateHasBeenSet = false;
115
116 Aws::Utils::DateTime m_startedOn{};
117 bool m_startedOnHasBeenSet = false;
118
119 Aws::Utils::DateTime m_completedOn{};
120 bool m_completedOnHasBeenSet = false;
121
122 Aws::String m_errorMessage;
123 bool m_errorMessageHasBeenSet = false;
124
125 Aws::String m_logGroup;
126 bool m_logGroupHasBeenSet = false;
127
128 Aws::String m_logStream;
129 bool m_logStreamHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Glue
134} // namespace Aws
bool StartedOnHasBeenSet() const
Definition Crawl.h:57
Crawl & WithLogGroup(LogGroupT &&value)
Definition Crawl.h:97
bool LogStreamHasBeenSet() const
Definition Crawl.h:105
AWS_GLUE_API Crawl & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CompletedOnHasBeenSet() const
Definition Crawl.h:69
void SetStartedOn(StartedOnT &&value)
Definition Crawl.h:59
const Aws::Utils::DateTime & GetStartedOn() const
Definition Crawl.h:56
Crawl & WithCompletedOn(CompletedOnT &&value)
Definition Crawl.h:73
const Aws::String & GetErrorMessage() const
Definition Crawl.h:80
void SetErrorMessage(ErrorMessageT &&value)
Definition Crawl.h:83
const Aws::String & GetLogStream() const
Definition Crawl.h:104
bool StateHasBeenSet() const
Definition Crawl.h:47
const Aws::String & GetLogGroup() const
Definition Crawl.h:92
void SetLogStream(LogStreamT &&value)
Definition Crawl.h:107
CrawlState GetState() const
Definition Crawl.h:46
Crawl & WithErrorMessage(ErrorMessageT &&value)
Definition Crawl.h:85
bool ErrorMessageHasBeenSet() const
Definition Crawl.h:81
Crawl & WithLogStream(LogStreamT &&value)
Definition Crawl.h:109
AWS_GLUE_API Crawl()=default
void SetState(CrawlState value)
Definition Crawl.h:48
bool LogGroupHasBeenSet() const
Definition Crawl.h:93
Crawl & WithState(CrawlState value)
Definition Crawl.h:49
Crawl & WithStartedOn(StartedOnT &&value)
Definition Crawl.h:61
AWS_GLUE_API Crawl(Aws::Utils::Json::JsonView jsonValue)
void SetCompletedOn(CompletedOnT &&value)
Definition Crawl.h:71
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogGroup(LogGroupT &&value)
Definition Crawl.h:95
const Aws::Utils::DateTime & GetCompletedOn() const
Definition Crawl.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue