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

An event that is related to the server, such as the start of maintenance or * backup.

See Also:

AWS * API Reference

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

The time when the event occurred.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time when the event occurred.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time when the event occurred.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time when the event occurred.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time when the event occurred.

*/ inline ServerEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time when the event occurred.

*/ inline ServerEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The name of the server on or for which the event occurred.

*/ inline const Aws::String& GetServerName() const{ return m_serverName; } /** *

The name of the server on or for which the event occurred.

*/ inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; } /** *

The name of the server on or for which the event occurred.

*/ inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; } /** *

The name of the server on or for which the event occurred.

*/ inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); } /** *

The name of the server on or for which the event occurred.

*/ inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); } /** *

The name of the server on or for which the event occurred.

*/ inline ServerEvent& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} /** *

The name of the server on or for which the event occurred.

*/ inline ServerEvent& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} /** *

The name of the server on or for which the event occurred.

*/ inline ServerEvent& WithServerName(const char* value) { SetServerName(value); return *this;} /** *

A human-readable informational or status message.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A human-readable informational or status message.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A human-readable informational or status message.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A human-readable informational or status message.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A human-readable informational or status message.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A human-readable informational or status message.

*/ inline ServerEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A human-readable informational or status message.

*/ inline ServerEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A human-readable informational or status message.

*/ inline ServerEvent& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The Amazon S3 URL of the event's log file.

*/ inline const Aws::String& GetLogUrl() const{ return m_logUrl; } /** *

The Amazon S3 URL of the event's log file.

*/ inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; } /** *

The Amazon S3 URL of the event's log file.

*/ inline void SetLogUrl(const Aws::String& value) { m_logUrlHasBeenSet = true; m_logUrl = value; } /** *

The Amazon S3 URL of the event's log file.

*/ inline void SetLogUrl(Aws::String&& value) { m_logUrlHasBeenSet = true; m_logUrl = std::move(value); } /** *

The Amazon S3 URL of the event's log file.

*/ inline void SetLogUrl(const char* value) { m_logUrlHasBeenSet = true; m_logUrl.assign(value); } /** *

The Amazon S3 URL of the event's log file.

*/ inline ServerEvent& WithLogUrl(const Aws::String& value) { SetLogUrl(value); return *this;} /** *

The Amazon S3 URL of the event's log file.

*/ inline ServerEvent& WithLogUrl(Aws::String&& value) { SetLogUrl(std::move(value)); return *this;} /** *

The Amazon S3 URL of the event's log file.

*/ inline ServerEvent& WithLogUrl(const char* value) { SetLogUrl(value); return *this;} private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_serverName; bool m_serverNameHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_logUrl; bool m_logUrlHasBeenSet = false; }; } // namespace Model } // namespace OpsWorksCM } // namespace Aws