/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Contains the information for a run of a crawler.

See Also:

* AWS * API Reference

*/ class CrawlerHistory { public: AWS_GLUE_API CrawlerHistory(); AWS_GLUE_API CrawlerHistory(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API CrawlerHistory& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A UUID identifier for each crawl.

*/ inline const Aws::String& GetCrawlId() const{ return m_crawlId; } /** *

A UUID identifier for each crawl.

*/ inline bool CrawlIdHasBeenSet() const { return m_crawlIdHasBeenSet; } /** *

A UUID identifier for each crawl.

*/ inline void SetCrawlId(const Aws::String& value) { m_crawlIdHasBeenSet = true; m_crawlId = value; } /** *

A UUID identifier for each crawl.

*/ inline void SetCrawlId(Aws::String&& value) { m_crawlIdHasBeenSet = true; m_crawlId = std::move(value); } /** *

A UUID identifier for each crawl.

*/ inline void SetCrawlId(const char* value) { m_crawlIdHasBeenSet = true; m_crawlId.assign(value); } /** *

A UUID identifier for each crawl.

*/ inline CrawlerHistory& WithCrawlId(const Aws::String& value) { SetCrawlId(value); return *this;} /** *

A UUID identifier for each crawl.

*/ inline CrawlerHistory& WithCrawlId(Aws::String&& value) { SetCrawlId(std::move(value)); return *this;} /** *

A UUID identifier for each crawl.

*/ inline CrawlerHistory& WithCrawlId(const char* value) { SetCrawlId(value); return *this;} /** *

The state of the crawl.

*/ inline const CrawlerHistoryState& GetState() const{ return m_state; } /** *

The state of the crawl.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the crawl.

*/ inline void SetState(const CrawlerHistoryState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the crawl.

*/ inline void SetState(CrawlerHistoryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the crawl.

*/ inline CrawlerHistory& WithState(const CrawlerHistoryState& value) { SetState(value); return *this;} /** *

The state of the crawl.

*/ inline CrawlerHistory& WithState(CrawlerHistoryState&& value) { SetState(std::move(value)); return *this;} /** *

The date and time on which the crawl started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The date and time on which the crawl started.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The date and time on which the crawl started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The date and time on which the crawl started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The date and time on which the crawl started.

*/ inline CrawlerHistory& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The date and time on which the crawl started.

*/ inline CrawlerHistory& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The date and time on which the crawl ended.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The date and time on which the crawl ended.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The date and time on which the crawl ended.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The date and time on which the crawl ended.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The date and time on which the crawl ended.

*/ inline CrawlerHistory& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The date and time on which the crawl ended.

*/ inline CrawlerHistory& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

A run summary for the specific crawl in JSON. Contains the catalog tables and * partitions that were added, updated, or deleted.

*/ inline const Aws::String& GetSummary() const{ return m_summary; } /** *

A run summary for the specific crawl in JSON. Contains the catalog tables and * partitions that were added, updated, or deleted.

*/ inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; } /** *

A run summary for the specific crawl in JSON. Contains the catalog tables and * partitions that were added, updated, or deleted.

*/ inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; } /** *

A run summary for the specific crawl in JSON. Contains the catalog tables and * partitions that were added, updated, or deleted.

*/ inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); } /** *

A run summary for the specific crawl in JSON. Contains the catalog tables and * partitions that were added, updated, or deleted.

*/ inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); } /** *

A run summary for the specific crawl in JSON. Contains the catalog tables and * partitions that were added, updated, or deleted.

*/ inline CrawlerHistory& WithSummary(const Aws::String& value) { SetSummary(value); return *this;} /** *

A run summary for the specific crawl in JSON. Contains the catalog tables and * partitions that were added, updated, or deleted.

*/ inline CrawlerHistory& WithSummary(Aws::String&& value) { SetSummary(std::move(value)); return *this;} /** *

A run summary for the specific crawl in JSON. Contains the catalog tables and * partitions that were added, updated, or deleted.

*/ inline CrawlerHistory& WithSummary(const char* value) { SetSummary(value); return *this;} /** *

If an error occurred, the error message associated with the crawl.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

If an error occurred, the error message associated with the crawl.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

If an error occurred, the error message associated with the crawl.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

If an error occurred, the error message associated with the crawl.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

If an error occurred, the error message associated with the crawl.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

If an error occurred, the error message associated with the crawl.

*/ inline CrawlerHistory& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

If an error occurred, the error message associated with the crawl.

*/ inline CrawlerHistory& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

If an error occurred, the error message associated with the crawl.

*/ inline CrawlerHistory& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The log group associated with the crawl.

*/ inline const Aws::String& GetLogGroup() const{ return m_logGroup; } /** *

The log group associated with the crawl.

*/ inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; } /** *

The log group associated with the crawl.

*/ inline void SetLogGroup(const Aws::String& value) { m_logGroupHasBeenSet = true; m_logGroup = value; } /** *

The log group associated with the crawl.

*/ inline void SetLogGroup(Aws::String&& value) { m_logGroupHasBeenSet = true; m_logGroup = std::move(value); } /** *

The log group associated with the crawl.

*/ inline void SetLogGroup(const char* value) { m_logGroupHasBeenSet = true; m_logGroup.assign(value); } /** *

The log group associated with the crawl.

*/ inline CrawlerHistory& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} /** *

The log group associated with the crawl.

*/ inline CrawlerHistory& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} /** *

The log group associated with the crawl.

*/ inline CrawlerHistory& WithLogGroup(const char* value) { SetLogGroup(value); return *this;} /** *

The log stream associated with the crawl.

*/ inline const Aws::String& GetLogStream() const{ return m_logStream; } /** *

The log stream associated with the crawl.

*/ inline bool LogStreamHasBeenSet() const { return m_logStreamHasBeenSet; } /** *

The log stream associated with the crawl.

*/ inline void SetLogStream(const Aws::String& value) { m_logStreamHasBeenSet = true; m_logStream = value; } /** *

The log stream associated with the crawl.

*/ inline void SetLogStream(Aws::String&& value) { m_logStreamHasBeenSet = true; m_logStream = std::move(value); } /** *

The log stream associated with the crawl.

*/ inline void SetLogStream(const char* value) { m_logStreamHasBeenSet = true; m_logStream.assign(value); } /** *

The log stream associated with the crawl.

*/ inline CrawlerHistory& WithLogStream(const Aws::String& value) { SetLogStream(value); return *this;} /** *

The log stream associated with the crawl.

*/ inline CrawlerHistory& WithLogStream(Aws::String&& value) { SetLogStream(std::move(value)); return *this;} /** *

The log stream associated with the crawl.

*/ inline CrawlerHistory& WithLogStream(const char* value) { SetLogStream(value); return *this;} /** *

The prefix for a CloudWatch message about this crawl.

*/ inline const Aws::String& GetMessagePrefix() const{ return m_messagePrefix; } /** *

The prefix for a CloudWatch message about this crawl.

*/ inline bool MessagePrefixHasBeenSet() const { return m_messagePrefixHasBeenSet; } /** *

The prefix for a CloudWatch message about this crawl.

*/ inline void SetMessagePrefix(const Aws::String& value) { m_messagePrefixHasBeenSet = true; m_messagePrefix = value; } /** *

The prefix for a CloudWatch message about this crawl.

*/ inline void SetMessagePrefix(Aws::String&& value) { m_messagePrefixHasBeenSet = true; m_messagePrefix = std::move(value); } /** *

The prefix for a CloudWatch message about this crawl.

*/ inline void SetMessagePrefix(const char* value) { m_messagePrefixHasBeenSet = true; m_messagePrefix.assign(value); } /** *

The prefix for a CloudWatch message about this crawl.

*/ inline CrawlerHistory& WithMessagePrefix(const Aws::String& value) { SetMessagePrefix(value); return *this;} /** *

The prefix for a CloudWatch message about this crawl.

*/ inline CrawlerHistory& WithMessagePrefix(Aws::String&& value) { SetMessagePrefix(std::move(value)); return *this;} /** *

The prefix for a CloudWatch message about this crawl.

*/ inline CrawlerHistory& WithMessagePrefix(const char* value) { SetMessagePrefix(value); return *this;} /** *

The number of data processing units (DPU) used in hours for the crawl.

*/ inline double GetDPUHour() const{ return m_dPUHour; } /** *

The number of data processing units (DPU) used in hours for the crawl.

*/ inline bool DPUHourHasBeenSet() const { return m_dPUHourHasBeenSet; } /** *

The number of data processing units (DPU) used in hours for the crawl.

*/ inline void SetDPUHour(double value) { m_dPUHourHasBeenSet = true; m_dPUHour = value; } /** *

The number of data processing units (DPU) used in hours for the crawl.

*/ inline CrawlerHistory& WithDPUHour(double value) { SetDPUHour(value); return *this;} private: Aws::String m_crawlId; bool m_crawlIdHasBeenSet = false; CrawlerHistoryState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_summary; bool m_summaryHasBeenSet = 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; double m_dPUHour; bool m_dPUHourHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws