1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 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 13 namespace Aws 14 { 15 namespace Utils 16 { 17 namespace Json 18 { 19 class JsonValue; 20 class JsonView; 21 } // namespace Json 22 } // namespace Utils 23 namespace Glue 24 { 25 namespace Model 26 { 27 28 /** 29 * <p>Status and error information about the most recent crawl.</p><p><h3>See 30 * Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/LastCrawlInfo">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_GLUE_API LastCrawlInfo 35 { 36 public: 37 LastCrawlInfo(); 38 LastCrawlInfo(Aws::Utils::Json::JsonView jsonValue); 39 LastCrawlInfo& operator=(Aws::Utils::Json::JsonView jsonValue); 40 Aws::Utils::Json::JsonValue Jsonize() const; 41 42 43 /** 44 * <p>Status of the last crawl.</p> 45 */ GetStatus()46 inline const LastCrawlStatus& GetStatus() const{ return m_status; } 47 48 /** 49 * <p>Status of the last crawl.</p> 50 */ StatusHasBeenSet()51 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } 52 53 /** 54 * <p>Status of the last crawl.</p> 55 */ SetStatus(const LastCrawlStatus & value)56 inline void SetStatus(const LastCrawlStatus& value) { m_statusHasBeenSet = true; m_status = value; } 57 58 /** 59 * <p>Status of the last crawl.</p> 60 */ SetStatus(LastCrawlStatus && value)61 inline void SetStatus(LastCrawlStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } 62 63 /** 64 * <p>Status of the last crawl.</p> 65 */ WithStatus(const LastCrawlStatus & value)66 inline LastCrawlInfo& WithStatus(const LastCrawlStatus& value) { SetStatus(value); return *this;} 67 68 /** 69 * <p>Status of the last crawl.</p> 70 */ WithStatus(LastCrawlStatus && value)71 inline LastCrawlInfo& WithStatus(LastCrawlStatus&& value) { SetStatus(std::move(value)); return *this;} 72 73 74 /** 75 * <p>If an error occurred, the error information about the last crawl.</p> 76 */ GetErrorMessage()77 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } 78 79 /** 80 * <p>If an error occurred, the error information about the last crawl.</p> 81 */ ErrorMessageHasBeenSet()82 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } 83 84 /** 85 * <p>If an error occurred, the error information about the last crawl.</p> 86 */ SetErrorMessage(const Aws::String & value)87 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } 88 89 /** 90 * <p>If an error occurred, the error information about the last crawl.</p> 91 */ SetErrorMessage(Aws::String && value)92 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } 93 94 /** 95 * <p>If an error occurred, the error information about the last crawl.</p> 96 */ SetErrorMessage(const char * value)97 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } 98 99 /** 100 * <p>If an error occurred, the error information about the last crawl.</p> 101 */ WithErrorMessage(const Aws::String & value)102 inline LastCrawlInfo& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} 103 104 /** 105 * <p>If an error occurred, the error information about the last crawl.</p> 106 */ WithErrorMessage(Aws::String && value)107 inline LastCrawlInfo& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} 108 109 /** 110 * <p>If an error occurred, the error information about the last crawl.</p> 111 */ WithErrorMessage(const char * value)112 inline LastCrawlInfo& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} 113 114 115 /** 116 * <p>The log group for the last crawl.</p> 117 */ GetLogGroup()118 inline const Aws::String& GetLogGroup() const{ return m_logGroup; } 119 120 /** 121 * <p>The log group for the last crawl.</p> 122 */ LogGroupHasBeenSet()123 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; } 124 125 /** 126 * <p>The log group for the last crawl.</p> 127 */ SetLogGroup(const Aws::String & value)128 inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; } 129 130 /** 131 * <p>The log group for the last crawl.</p> 132 */ SetLogGroup(Aws::String && value)133 inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); } 134 135 /** 136 * <p>The log group for the last crawl.</p> 137 */ SetLogGroup(const char * value)138 inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); } 139 140 /** 141 * <p>The log group for the last crawl.</p> 142 */ WithLogGroup(const Aws::String & value)143 inline LastCrawlInfo& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} 144 145 /** 146 * <p>The log group for the last crawl.</p> 147 */ WithLogGroup(Aws::String && value)148 inline LastCrawlInfo& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} 149 150 /** 151 * <p>The log group for the last crawl.</p> 152 */ WithLogGroup(const char * value)153 inline LastCrawlInfo& WithLogGroup(const char* value) { SetLogGroup(value); return *this;} 154 155 156 /** 157 * <p>The log stream for the last crawl.</p> 158 */ GetLogStream()159 inline const Aws::String& GetLogStream() const{ return m_logStream; } 160 161 /** 162 * <p>The log stream for the last crawl.</p> 163 */ LogStreamHasBeenSet()164 inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; } 165 166 /** 167 * <p>The log stream for the last crawl.</p> 168 */ SetLogStream(const Aws::String & value)169 inline void SetLogStream(const Aws::String& value) { m_logStreamHasBeenSet = true; m_logStream = value; } 170 171 /** 172 * <p>The log stream for the last crawl.</p> 173 */ SetLogStream(Aws::String && value)174 inline void SetLogStream(Aws::String&& value) { m_logStreamHasBeenSet = true; m_logStream = std::move(value); } 175 176 /** 177 * <p>The log stream for the last crawl.</p> 178 */ SetLogStream(const char * value)179 inline void SetLogStream(const char* value) { m_logStreamHasBeenSet = true; m_logStream.assign(value); } 180 181 /** 182 * <p>The log stream for the last crawl.</p> 183 */ WithLogStream(const Aws::String & value)184 inline LastCrawlInfo& WithLogStream(const Aws::String& value) { SetLogStream(value); return *this;} 185 186 /** 187 * <p>The log stream for the last crawl.</p> 188 */ WithLogStream(Aws::String && value)189 inline LastCrawlInfo& WithLogStream(Aws::String&& value) { SetLogStream(std::move(value)); return *this;} 190 191 /** 192 * <p>The log stream for the last crawl.</p> 193 */ WithLogStream(const char * value)194 inline LastCrawlInfo& WithLogStream(const char* value) { SetLogStream(value); return *this;} 195 196 197 /** 198 * <p>The prefix for a message about this crawl.</p> 199 */ GetMessagePrefix()200 inline const Aws::String& GetMessagePrefix() const{ return m_messagePrefix; } 201 202 /** 203 * <p>The prefix for a message about this crawl.</p> 204 */ MessagePrefixHasBeenSet()205 inline bool MessagePrefixHasBeenSet() const { return m_messagePrefixHasBeenSet; } 206 207 /** 208 * <p>The prefix for a message about this crawl.</p> 209 */ SetMessagePrefix(const Aws::String & value)210 inline void SetMessagePrefix(const Aws::String& value) { m_messagePrefixHasBeenSet = true; m_messagePrefix = value; } 211 212 /** 213 * <p>The prefix for a message about this crawl.</p> 214 */ SetMessagePrefix(Aws::String && value)215 inline void SetMessagePrefix(Aws::String&& value) { m_messagePrefixHasBeenSet = true; m_messagePrefix = std::move(value); } 216 217 /** 218 * <p>The prefix for a message about this crawl.</p> 219 */ SetMessagePrefix(const char * value)220 inline void SetMessagePrefix(const char* value) { m_messagePrefixHasBeenSet = true; m_messagePrefix.assign(value); } 221 222 /** 223 * <p>The prefix for a message about this crawl.</p> 224 */ WithMessagePrefix(const Aws::String & value)225 inline LastCrawlInfo& WithMessagePrefix(const Aws::String& value) { SetMessagePrefix(value); return *this;} 226 227 /** 228 * <p>The prefix for a message about this crawl.</p> 229 */ WithMessagePrefix(Aws::String && value)230 inline LastCrawlInfo& WithMessagePrefix(Aws::String&& value) { SetMessagePrefix(std::move(value)); return *this;} 231 232 /** 233 * <p>The prefix for a message about this crawl.</p> 234 */ WithMessagePrefix(const char * value)235 inline LastCrawlInfo& WithMessagePrefix(const char* value) { SetMessagePrefix(value); return *this;} 236 237 238 /** 239 * <p>The time at which the crawl started.</p> 240 */ GetStartTime()241 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } 242 243 /** 244 * <p>The time at which the crawl started.</p> 245 */ StartTimeHasBeenSet()246 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } 247 248 /** 249 * <p>The time at which the crawl started.</p> 250 */ SetStartTime(const Aws::Utils::DateTime & value)251 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } 252 253 /** 254 * <p>The time at which the crawl started.</p> 255 */ SetStartTime(Aws::Utils::DateTime && value)256 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } 257 258 /** 259 * <p>The time at which the crawl started.</p> 260 */ WithStartTime(const Aws::Utils::DateTime & value)261 inline LastCrawlInfo& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} 262 263 /** 264 * <p>The time at which the crawl started.</p> 265 */ WithStartTime(Aws::Utils::DateTime && value)266 inline LastCrawlInfo& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} 267 268 private: 269 270 LastCrawlStatus m_status; 271 bool m_statusHasBeenSet; 272 273 Aws::String m_errorMessage; 274 bool m_errorMessageHasBeenSet; 275 276 Aws::String m_logGroup; 277 bool m_logGroupHasBeenSet; 278 279 Aws::String m_logStream; 280 bool m_logStreamHasBeenSet; 281 282 Aws::String m_messagePrefix; 283 bool m_messagePrefixHasBeenSet; 284 285 Aws::Utils::DateTime m_startTime; 286 bool m_startTimeHasBeenSet; 287 }; 288 289 } // namespace Model 290 } // namespace Glue 291 } // namespace Aws 292