AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LastCrawlInfo.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/LastCrawlStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.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
35 {
36 public:
37 AWS_GLUE_API LastCrawlInfo() = default;
41
42
44
47 inline LastCrawlStatus GetStatus() const { return m_status; }
48 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
49 inline void SetStatus(LastCrawlStatus value) { m_statusHasBeenSet = true; m_status = value; }
50 inline LastCrawlInfo& WithStatus(LastCrawlStatus value) { SetStatus(value); return *this;}
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) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
61 template<typename ErrorMessageT = Aws::String>
62 LastCrawlInfo& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
64
66
69 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
70 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
71 template<typename LogGroupT = Aws::String>
72 void SetLogGroup(LogGroupT&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::forward<LogGroupT>(value); }
73 template<typename LogGroupT = Aws::String>
74 LastCrawlInfo& WithLogGroup(LogGroupT&& value) { SetLogGroup(std::forward<LogGroupT>(value)); return *this;}
76
78
81 inline const Aws::String& GetLogStream() const { return m_logStream; }
82 inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; }
83 template<typename LogStreamT = Aws::String>
84 void SetLogStream(LogStreamT&& value) { m_logStreamHasBeenSet = true; m_logStream = std::forward<LogStreamT>(value); }
85 template<typename LogStreamT = Aws::String>
86 LastCrawlInfo& WithLogStream(LogStreamT&& value) { SetLogStream(std::forward<LogStreamT>(value)); return *this;}
88
90
93 inline const Aws::String& GetMessagePrefix() const { return m_messagePrefix; }
94 inline bool MessagePrefixHasBeenSet() const { return m_messagePrefixHasBeenSet; }
95 template<typename MessagePrefixT = Aws::String>
96 void SetMessagePrefix(MessagePrefixT&& value) { m_messagePrefixHasBeenSet = true; m_messagePrefix = std::forward<MessagePrefixT>(value); }
97 template<typename MessagePrefixT = Aws::String>
98 LastCrawlInfo& WithMessagePrefix(MessagePrefixT&& value) { SetMessagePrefix(std::forward<MessagePrefixT>(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
106 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
107 template<typename StartTimeT = Aws::Utils::DateTime>
108 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
109 template<typename StartTimeT = Aws::Utils::DateTime>
110 LastCrawlInfo& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
112 private:
113
115 bool m_statusHasBeenSet = false;
116
117 Aws::String m_errorMessage;
118 bool m_errorMessageHasBeenSet = false;
119
120 Aws::String m_logGroup;
121 bool m_logGroupHasBeenSet = false;
122
123 Aws::String m_logStream;
124 bool m_logStreamHasBeenSet = false;
125
126 Aws::String m_messagePrefix;
127 bool m_messagePrefixHasBeenSet = false;
128
129 Aws::Utils::DateTime m_startTime{};
130 bool m_startTimeHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Glue
135} // 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