/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an event for a database.See Also:
AWS
* API Reference
The database that the database event relates to.
*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *The database that the database event relates to.
*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *The database that the database event relates to.
*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *The database that the database event relates to.
*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *The database that the database event relates to.
*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *The database that the database event relates to.
*/ inline RelationalDatabaseEvent& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *The database that the database event relates to.
*/ inline RelationalDatabaseEvent& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *The database that the database event relates to.
*/ inline RelationalDatabaseEvent& WithResource(const char* value) { SetResource(value); return *this;} /** *The timestamp when the database event was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The timestamp when the database event was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The timestamp when the database event was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The timestamp when the database event was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The timestamp when the database event was created.
*/ inline RelationalDatabaseEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The timestamp when the database event was created.
*/ inline RelationalDatabaseEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The message of the database event.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The message of the database event.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The message of the database event.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The message of the database event.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The message of the database event.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The message of the database event.
*/ inline RelationalDatabaseEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The message of the database event.
*/ inline RelationalDatabaseEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The message of the database event.
*/ inline RelationalDatabaseEvent& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The category that the database event belongs to.
*/ inline const Aws::VectorThe category that the database event belongs to.
*/ inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; } /** *The category that the database event belongs to.
*/ inline void SetEventCategories(const Aws::VectorThe category that the database event belongs to.
*/ inline void SetEventCategories(Aws::VectorThe category that the database event belongs to.
*/ inline RelationalDatabaseEvent& WithEventCategories(const Aws::VectorThe category that the database event belongs to.
*/ inline RelationalDatabaseEvent& WithEventCategories(Aws::VectorThe category that the database event belongs to.
*/ inline RelationalDatabaseEvent& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *The category that the database event belongs to.
*/ inline RelationalDatabaseEvent& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; } /** *The category that the database event belongs to.
*/ inline RelationalDatabaseEvent& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } private: Aws::String m_resource; bool m_resourceHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector