AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
LastCrawlInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/LastCrawlStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API LastCrawlInfo() = default;
36
38
41 inline LastCrawlStatus GetStatus() const { return m_status; }
42 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
43 inline void SetStatus(LastCrawlStatus value) {
44 m_statusHasBeenSet = true;
45 m_status = value;
46 }
48 SetStatus(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
58 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
59 template <typename ErrorMessageT = Aws::String>
60 void SetErrorMessage(ErrorMessageT&& value) {
61 m_errorMessageHasBeenSet = true;
62 m_errorMessage = std::forward<ErrorMessageT>(value);
63 }
64 template <typename ErrorMessageT = Aws::String>
65 LastCrawlInfo& WithErrorMessage(ErrorMessageT&& value) {
66 SetErrorMessage(std::forward<ErrorMessageT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
76 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
77 template <typename LogGroupT = Aws::String>
78 void SetLogGroup(LogGroupT&& value) {
79 m_logGroupHasBeenSet = true;
80 m_logGroup = std::forward<LogGroupT>(value);
81 }
82 template <typename LogGroupT = Aws::String>
83 LastCrawlInfo& WithLogGroup(LogGroupT&& value) {
84 SetLogGroup(std::forward<LogGroupT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetLogStream() const { return m_logStream; }
94 inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; }
95 template <typename LogStreamT = Aws::String>
96 void SetLogStream(LogStreamT&& value) {
97 m_logStreamHasBeenSet = true;
98 m_logStream = std::forward<LogStreamT>(value);
99 }
100 template <typename LogStreamT = Aws::String>
101 LastCrawlInfo& WithLogStream(LogStreamT&& value) {
102 SetLogStream(std::forward<LogStreamT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetMessagePrefix() const { return m_messagePrefix; }
112 inline bool MessagePrefixHasBeenSet() const { return m_messagePrefixHasBeenSet; }
113 template <typename MessagePrefixT = Aws::String>
114 void SetMessagePrefix(MessagePrefixT&& value) {
115 m_messagePrefixHasBeenSet = true;
116 m_messagePrefix = std::forward<MessagePrefixT>(value);
117 }
118 template <typename MessagePrefixT = Aws::String>
119 LastCrawlInfo& WithMessagePrefix(MessagePrefixT&& value) {
120 SetMessagePrefix(std::forward<MessagePrefixT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
130 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
131 template <typename StartTimeT = Aws::Utils::DateTime>
132 void SetStartTime(StartTimeT&& value) {
133 m_startTimeHasBeenSet = true;
134 m_startTime = std::forward<StartTimeT>(value);
135 }
136 template <typename StartTimeT = Aws::Utils::DateTime>
137 LastCrawlInfo& WithStartTime(StartTimeT&& value) {
138 SetStartTime(std::forward<StartTimeT>(value));
139 return *this;
140 }
142 private:
144 bool m_statusHasBeenSet = false;
145
146 Aws::String m_errorMessage;
147 bool m_errorMessageHasBeenSet = false;
148
149 Aws::String m_logGroup;
150 bool m_logGroupHasBeenSet = false;
151
152 Aws::String m_logStream;
153 bool m_logStreamHasBeenSet = false;
154
155 Aws::String m_messagePrefix;
156 bool m_messagePrefixHasBeenSet = false;
157
158 Aws::Utils::DateTime m_startTime{};
159 bool m_startTimeHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Glue
164} // namespace Aws
const Aws::String & GetLogStream() const
AWS_GLUE_API LastCrawlInfo()=default
void SetMessagePrefix(MessagePrefixT &&value)
const Aws::String & GetLogGroup() const
AWS_GLUE_API LastCrawlInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(ErrorMessageT &&value)
const Aws::String & GetErrorMessage() const
void SetLogStream(LogStreamT &&value)
const Aws::String & GetMessagePrefix() const
AWS_GLUE_API LastCrawlInfo(Aws::Utils::Json::JsonView jsonValue)
LastCrawlInfo & WithErrorMessage(ErrorMessageT &&value)
LastCrawlInfo & WithLogGroup(LogGroupT &&value)
void SetStatus(LastCrawlStatus value)
void SetStartTime(StartTimeT &&value)
LastCrawlInfo & WithLogStream(LogStreamT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
LastCrawlStatus GetStatus() const
const Aws::Utils::DateTime & GetStartTime() const
LastCrawlInfo & WithMessagePrefix(MessagePrefixT &&value)
LastCrawlInfo & WithStatus(LastCrawlStatus value)
void SetLogGroup(LogGroupT &&value)
LastCrawlInfo & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue