This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-lightsail/include/aws/lightsail/model/RelationalDatabaseEvent.h

218 lines
7.1 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lightsail/Lightsail_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Lightsail
{
namespace Model
{
/**
* <p>Describes an event for a database.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RelationalDatabaseEvent">AWS
* API Reference</a></p>
*/
class AWS_LIGHTSAIL_API RelationalDatabaseEvent
{
public:
RelationalDatabaseEvent();
RelationalDatabaseEvent(Aws::Utils::Json::JsonView jsonValue);
RelationalDatabaseEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The database that the database event relates to.</p>
*/
inline const Aws::String& GetResource() const{ return m_resource; }
/**
* <p>The database that the database event relates to.</p>
*/
inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
/**
* <p>The database that the database event relates to.</p>
*/
inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
/**
* <p>The database that the database event relates to.</p>
*/
inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
/**
* <p>The database that the database event relates to.</p>
*/
inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
/**
* <p>The database that the database event relates to.</p>
*/
inline RelationalDatabaseEvent& WithResource(const Aws::String& value) { SetResource(value); return *this;}
/**
* <p>The database that the database event relates to.</p>
*/
inline RelationalDatabaseEvent& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
/**
* <p>The database that the database event relates to.</p>
*/
inline RelationalDatabaseEvent& WithResource(const char* value) { SetResource(value); return *this;}
/**
* <p>The timestamp when the database event was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The timestamp when the database event was created.</p>
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* <p>The timestamp when the database event was created.</p>
*/
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* <p>The timestamp when the database event was created.</p>
*/
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* <p>The timestamp when the database event was created.</p>
*/
inline RelationalDatabaseEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The timestamp when the database event was created.</p>
*/
inline RelationalDatabaseEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The message of the database event.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The message of the database event.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The message of the database event.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The message of the database event.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The message of the database event.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The message of the database event.</p>
*/
inline RelationalDatabaseEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The message of the database event.</p>
*/
inline RelationalDatabaseEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The message of the database event.</p>
*/
inline RelationalDatabaseEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The category that the database event belongs to.</p>
*/
inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
/**
* <p>The category that the database event belongs to.</p>
*/
inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
/**
* <p>The category that the database event belongs to.</p>
*/
inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
/**
* <p>The category that the database event belongs to.</p>
*/
inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
/**
* <p>The category that the database event belongs to.</p>
*/
inline RelationalDatabaseEvent& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
/**
* <p>The category that the database event belongs to.</p>
*/
inline RelationalDatabaseEvent& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
/**
* <p>The category that the database event belongs to.</p>
*/
inline RelationalDatabaseEvent& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
/**
* <p>The category that the database event belongs to.</p>
*/
inline RelationalDatabaseEvent& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
/**
* <p>The category that the database event belongs to.</p>
*/
inline RelationalDatabaseEvent& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
private:
Aws::String m_resource;
bool m_resourceHasBeenSet;
Aws::Utils::DateTime m_createdAt;
bool m_createdAtHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Vector<Aws::String> m_eventCategories;
bool m_eventCategoriesHasBeenSet;
};
} // namespace Model
} // namespace Lightsail
} // namespace Aws