/** * 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 mgn { namespace Model { /** *

Job log.

See Also:

AWS API * Reference

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

Job log event.

*/ inline const JobLogEvent& GetEvent() const{ return m_event; } /** *

Job log event.

*/ inline bool EventHasBeenSet() const { return m_eventHasBeenSet; } /** *

Job log event.

*/ inline void SetEvent(const JobLogEvent& value) { m_eventHasBeenSet = true; m_event = value; } /** *

Job log event.

*/ inline void SetEvent(JobLogEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); } /** *

Job log event.

*/ inline JobLog& WithEvent(const JobLogEvent& value) { SetEvent(value); return *this;} /** *

Job log event.

*/ inline JobLog& WithEvent(JobLogEvent&& value) { SetEvent(std::move(value)); return *this;} /** *

Job event data

*/ inline const JobLogEventData& GetEventData() const{ return m_eventData; } /** *

Job event data

*/ inline bool EventDataHasBeenSet() const { return m_eventDataHasBeenSet; } /** *

Job event data

*/ inline void SetEventData(const JobLogEventData& value) { m_eventDataHasBeenSet = true; m_eventData = value; } /** *

Job event data

*/ inline void SetEventData(JobLogEventData&& value) { m_eventDataHasBeenSet = true; m_eventData = std::move(value); } /** *

Job event data

*/ inline JobLog& WithEventData(const JobLogEventData& value) { SetEventData(value); return *this;} /** *

Job event data

*/ inline JobLog& WithEventData(JobLogEventData&& value) { SetEventData(std::move(value)); return *this;} /** *

Job log event date and time.

*/ inline const Aws::String& GetLogDateTime() const{ return m_logDateTime; } /** *

Job log event date and time.

*/ inline bool LogDateTimeHasBeenSet() const { return m_logDateTimeHasBeenSet; } /** *

Job log event date and time.

*/ inline void SetLogDateTime(const Aws::String& value) { m_logDateTimeHasBeenSet = true; m_logDateTime = value; } /** *

Job log event date and time.

*/ inline void SetLogDateTime(Aws::String&& value) { m_logDateTimeHasBeenSet = true; m_logDateTime = std::move(value); } /** *

Job log event date and time.

*/ inline void SetLogDateTime(const char* value) { m_logDateTimeHasBeenSet = true; m_logDateTime.assign(value); } /** *

Job log event date and time.

*/ inline JobLog& WithLogDateTime(const Aws::String& value) { SetLogDateTime(value); return *this;} /** *

Job log event date and time.

*/ inline JobLog& WithLogDateTime(Aws::String&& value) { SetLogDateTime(std::move(value)); return *this;} /** *

Job log event date and time.

*/ inline JobLog& WithLogDateTime(const char* value) { SetLogDateTime(value); return *this;} private: JobLogEvent m_event; bool m_eventHasBeenSet = false; JobLogEventData m_eventData; bool m_eventDataHasBeenSet = false; Aws::String m_logDateTime; bool m_logDateTimeHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws