AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CrawlState& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const CrawlState& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(CrawlState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline Crawl& WithState(const CrawlState& value) { SetState(value); return *this;}
51 inline Crawl& WithState(CrawlState&& value) { SetState(std::move(value)); return *this;}
53
55
58 inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
59 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
60 inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
61 inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); }
62 inline Crawl& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
63 inline Crawl& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
71 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
72 inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
73 inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); }
74 inline Crawl& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
75 inline Crawl& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
77
79
82 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
83 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
84 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
85 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
86 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
87 inline Crawl& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
88 inline Crawl& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
89 inline Crawl& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
91
93
96 inline const Aws::String& GetLogGroup() const{ return m_logGroup; }
97 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
98 inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; }
99 inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); }
100 inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); }
101 inline Crawl& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;}
102 inline Crawl& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;}
103 inline Crawl& WithLogGroup(const char* value) { SetLogGroup(value); return *this;}
105
107
110 inline const Aws::String& GetLogStream() const{ return m_logStream; }
111 inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; }
112 inline void SetLogStream(const Aws::String& value) { m_logStreamHasBeenSet = true; m_logStream = value; }
113 inline void SetLogStream(Aws::String&& value) { m_logStreamHasBeenSet = true; m_logStream = std::move(value); }
114 inline void SetLogStream(const char* value) { m_logStreamHasBeenSet = true; m_logStream.assign(value); }
115 inline Crawl& WithLogStream(const Aws::String& value) { SetLogStream(value); return *this;}
116 inline Crawl& WithLogStream(Aws::String&& value) { SetLogStream(std::move(value)); return *this;}
117 inline Crawl& WithLogStream(const char* value) { SetLogStream(value); return *this;}
119 private:
120
121 CrawlState m_state;
122 bool m_stateHasBeenSet = false;
123
124 Aws::Utils::DateTime m_startedOn;
125 bool m_startedOnHasBeenSet = false;
126
127 Aws::Utils::DateTime m_completedOn;
128 bool m_completedOnHasBeenSet = false;
129
130 Aws::String m_errorMessage;
131 bool m_errorMessageHasBeenSet = false;
132
133 Aws::String m_logGroup;
134 bool m_logGroupHasBeenSet = false;
135
136 Aws::String m_logStream;
137 bool m_logStreamHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Glue
142} // namespace Aws
Crawl & WithLogStream(const Aws::String &value)
Definition Crawl.h:115
void SetLogGroup(const Aws::String &value)
Definition Crawl.h:98
bool StartedOnHasBeenSet() const
Definition Crawl.h:59
const CrawlState & GetState() const
Definition Crawl.h:46
void SetLogStream(Aws::String &&value)
Definition Crawl.h:113
Crawl & WithStartedOn(Aws::Utils::DateTime &&value)
Definition Crawl.h:63
bool LogStreamHasBeenSet() const
Definition Crawl.h:111
AWS_GLUE_API Crawl & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogStream(const char *value)
Definition Crawl.h:114
void SetStartedOn(Aws::Utils::DateTime &&value)
Definition Crawl.h:61
Crawl & WithCompletedOn(const Aws::Utils::DateTime &value)
Definition Crawl.h:74
Crawl & WithStartedOn(const Aws::Utils::DateTime &value)
Definition Crawl.h:62
bool CompletedOnHasBeenSet() const
Definition Crawl.h:71
AWS_GLUE_API Crawl()
Crawl & WithState(CrawlState &&value)
Definition Crawl.h:51
void SetState(const CrawlState &value)
Definition Crawl.h:48
const Aws::Utils::DateTime & GetStartedOn() const
Definition Crawl.h:58
const Aws::String & GetErrorMessage() const
Definition Crawl.h:82
void SetCompletedOn(Aws::Utils::DateTime &&value)
Definition Crawl.h:73
const Aws::String & GetLogStream() const
Definition Crawl.h:110
void SetCompletedOn(const Aws::Utils::DateTime &value)
Definition Crawl.h:72
bool StateHasBeenSet() const
Definition Crawl.h:47
Crawl & WithLogGroup(const Aws::String &value)
Definition Crawl.h:101
void SetLogGroup(const char *value)
Definition Crawl.h:100
Crawl & WithLogStream(Aws::String &&value)
Definition Crawl.h:116
Crawl & WithLogStream(const char *value)
Definition Crawl.h:117
Crawl & WithErrorMessage(Aws::String &&value)
Definition Crawl.h:88
const Aws::String & GetLogGroup() const
Definition Crawl.h:96
void SetErrorMessage(const char *value)
Definition Crawl.h:86
Crawl & WithErrorMessage(const Aws::String &value)
Definition Crawl.h:87
bool ErrorMessageHasBeenSet() const
Definition Crawl.h:83
void SetErrorMessage(const Aws::String &value)
Definition Crawl.h:84
Crawl & WithState(const CrawlState &value)
Definition Crawl.h:50
void SetStartedOn(const Aws::Utils::DateTime &value)
Definition Crawl.h:60
bool LogGroupHasBeenSet() const
Definition Crawl.h:97
Crawl & WithLogGroup(const char *value)
Definition Crawl.h:103
void SetErrorMessage(Aws::String &&value)
Definition Crawl.h:85
AWS_GLUE_API Crawl(Aws::Utils::Json::JsonView jsonValue)
Crawl & WithCompletedOn(Aws::Utils::DateTime &&value)
Definition Crawl.h:75
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogStream(const Aws::String &value)
Definition Crawl.h:112
const Aws::Utils::DateTime & GetCompletedOn() const
Definition Crawl.h:70
Crawl & WithErrorMessage(const char *value)
Definition Crawl.h:89
void SetState(CrawlState &&value)
Definition Crawl.h:49
Crawl & WithLogGroup(Aws::String &&value)
Definition Crawl.h:102
void SetLogGroup(Aws::String &&value)
Definition Crawl.h:99
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue