/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Status and error information about the most recent crawl.See
* Also:
AWS
* API Reference
Status of the last crawl.
*/ inline const LastCrawlStatus& GetStatus() const{ return m_status; } /** *Status of the last crawl.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *Status of the last crawl.
*/ inline void SetStatus(const LastCrawlStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *Status of the last crawl.
*/ inline void SetStatus(LastCrawlStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *Status of the last crawl.
*/ inline LastCrawlInfo& WithStatus(const LastCrawlStatus& value) { SetStatus(value); return *this;} /** *Status of the last crawl.
*/ inline LastCrawlInfo& WithStatus(LastCrawlStatus&& value) { SetStatus(std::move(value)); return *this;} /** *If an error occurred, the error information about the last crawl.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *If an error occurred, the error information about the last crawl.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *If an error occurred, the error information about the last crawl.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *If an error occurred, the error information about the last crawl.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *If an error occurred, the error information about the last crawl.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *If an error occurred, the error information about the last crawl.
*/ inline LastCrawlInfo& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *If an error occurred, the error information about the last crawl.
*/ inline LastCrawlInfo& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *If an error occurred, the error information about the last crawl.
*/ inline LastCrawlInfo& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *The log group for the last crawl.
*/ inline const Aws::String& GetLogGroup() const{ return m_logGroup; } /** *The log group for the last crawl.
*/ inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; } /** *The log group for the last crawl.
*/ inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; } /** *The log group for the last crawl.
*/ inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); } /** *The log group for the last crawl.
*/ inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); } /** *The log group for the last crawl.
*/ inline LastCrawlInfo& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} /** *The log group for the last crawl.
*/ inline LastCrawlInfo& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} /** *The log group for the last crawl.
*/ inline LastCrawlInfo& WithLogGroup(const char* value) { SetLogGroup(value); return *this;} /** *The log stream for the last crawl.
*/ inline const Aws::String& GetLogStream() const{ return m_logStream; } /** *The log stream for the last crawl.
*/ inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; } /** *The log stream for the last crawl.
*/ inline void SetLogStream(const Aws::String& value) { m_logStreamHasBeenSet = true; m_logStream = value; } /** *The log stream for the last crawl.
*/ inline void SetLogStream(Aws::String&& value) { m_logStreamHasBeenSet = true; m_logStream = std::move(value); } /** *The log stream for the last crawl.
*/ inline void SetLogStream(const char* value) { m_logStreamHasBeenSet = true; m_logStream.assign(value); } /** *The log stream for the last crawl.
*/ inline LastCrawlInfo& WithLogStream(const Aws::String& value) { SetLogStream(value); return *this;} /** *The log stream for the last crawl.
*/ inline LastCrawlInfo& WithLogStream(Aws::String&& value) { SetLogStream(std::move(value)); return *this;} /** *The log stream for the last crawl.
*/ inline LastCrawlInfo& WithLogStream(const char* value) { SetLogStream(value); return *this;} /** *The prefix for a message about this crawl.
*/ inline const Aws::String& GetMessagePrefix() const{ return m_messagePrefix; } /** *The prefix for a message about this crawl.
*/ inline bool MessagePrefixHasBeenSet() const { return m_messagePrefixHasBeenSet; } /** *The prefix for a message about this crawl.
*/ inline void SetMessagePrefix(const Aws::String& value) { m_messagePrefixHasBeenSet = true; m_messagePrefix = value; } /** *The prefix for a message about this crawl.
*/ inline void SetMessagePrefix(Aws::String&& value) { m_messagePrefixHasBeenSet = true; m_messagePrefix = std::move(value); } /** *The prefix for a message about this crawl.
*/ inline void SetMessagePrefix(const char* value) { m_messagePrefixHasBeenSet = true; m_messagePrefix.assign(value); } /** *The prefix for a message about this crawl.
*/ inline LastCrawlInfo& WithMessagePrefix(const Aws::String& value) { SetMessagePrefix(value); return *this;} /** *The prefix for a message about this crawl.
*/ inline LastCrawlInfo& WithMessagePrefix(Aws::String&& value) { SetMessagePrefix(std::move(value)); return *this;} /** *The prefix for a message about this crawl.
*/ inline LastCrawlInfo& WithMessagePrefix(const char* value) { SetMessagePrefix(value); return *this;} /** *The time at which the crawl started.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The time at which the crawl started.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The time at which the crawl started.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The time at which the crawl started.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The time at which the crawl started.
*/ inline LastCrawlInfo& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The time at which the crawl started.
*/ inline LastCrawlInfo& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} private: LastCrawlStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_logGroup; bool m_logGroupHasBeenSet = false; Aws::String m_logStream; bool m_logStreamHasBeenSet = false; Aws::String m_messagePrefix; bool m_messagePrefixHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws