/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The details of a crawl in the workflow.See Also:
AWS API
* Reference
The state of the crawler.
*/ inline const CrawlState& GetState() const{ return m_state; } /** *The state of the crawler.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the crawler.
*/ inline void SetState(const CrawlState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the crawler.
*/ inline void SetState(CrawlState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the crawler.
*/ inline Crawl& WithState(const CrawlState& value) { SetState(value); return *this;} /** *The state of the crawler.
*/ inline Crawl& WithState(CrawlState&& value) { SetState(std::move(value)); return *this;} /** *The date and time on which the crawl started.
*/ inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; } /** *The date and time on which the crawl started.
*/ inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; } /** *The date and time on which the crawl started.
*/ inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; } /** *The date and time on which the crawl started.
*/ inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); } /** *The date and time on which the crawl started.
*/ inline Crawl& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;} /** *The date and time on which the crawl started.
*/ inline Crawl& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;} /** *The date and time on which the crawl completed.
*/ inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; } /** *The date and time on which the crawl completed.
*/ inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; } /** *The date and time on which the crawl completed.
*/ inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; } /** *The date and time on which the crawl completed.
*/ inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); } /** *The date and time on which the crawl completed.
*/ inline Crawl& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;} /** *The date and time on which the crawl completed.
*/ inline Crawl& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;} /** *The error message associated with the crawl.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *The error message associated with the crawl.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *The error message associated with the crawl.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *The error message associated with the crawl.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *The error message associated with the crawl.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *The error message associated with the crawl.
*/ inline Crawl& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *The error message associated with the crawl.
*/ inline Crawl& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *The error message associated with the crawl.
*/ inline Crawl& 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 Crawl& WithLogGroup(const Aws::String& value) { SetLogGroup(value); return *this;} /** *The log group associated with the crawl.
*/ inline Crawl& WithLogGroup(Aws::String&& value) { SetLogGroup(std::move(value)); return *this;} /** *The log group associated with the crawl.
*/ inline Crawl& 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 Crawl& WithLogStream(const Aws::String& value) { SetLogStream(value); return *this;} /** *The log stream associated with the crawl.
*/ inline Crawl& WithLogStream(Aws::String&& value) { SetLogStream(std::move(value)); return *this;} /** *The log stream associated with the crawl.
*/ inline Crawl& WithLogStream(const char* value) { SetLogStream(value); return *this;} private: CrawlState m_state; bool m_stateHasBeenSet = false; Aws::Utils::DateTime m_startedOn; bool m_startedOnHasBeenSet = false; Aws::Utils::DateTime m_completedOn; bool m_completedOnHasBeenSet = 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; }; } // namespace Model } // namespace Glue } // namespace Aws