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-rds/include/aws/rds/model/Event.h

300 lines
9.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds/RDS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/rds/model/SourceType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace RDS
{
namespace Model
{
/**
* <p> This data type is used as a response element in the
* <code>DescribeEvents</code> action. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/Event">AWS API
* Reference</a></p>
*/
class AWS_RDS_API Event
{
public:
Event();
Event(const Aws::Utils::Xml::XmlNode& xmlNode);
Event& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>Provides the identifier for the source of the event.</p>
*/
inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
/**
* <p>Provides the identifier for the source of the event.</p>
*/
inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
/**
* <p>Provides the identifier for the source of the event.</p>
*/
inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
/**
* <p>Provides the identifier for the source of the event.</p>
*/
inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
/**
* <p>Provides the identifier for the source of the event.</p>
*/
inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
/**
* <p>Provides the identifier for the source of the event.</p>
*/
inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
/**
* <p>Provides the identifier for the source of the event.</p>
*/
inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
/**
* <p>Provides the identifier for the source of the event.</p>
*/
inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
/**
* <p>Specifies the source type for this event.</p>
*/
inline const SourceType& GetSourceType() const{ return m_sourceType; }
/**
* <p>Specifies the source type for this event.</p>
*/
inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
/**
* <p>Specifies the source type for this event.</p>
*/
inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
/**
* <p>Specifies the source type for this event.</p>
*/
inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
/**
* <p>Specifies the source type for this event.</p>
*/
inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
/**
* <p>Specifies the source type for this event.</p>
*/
inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
/**
* <p>Provides the text of this event.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Provides the text of this event.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Provides the text of this event.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Provides the text of this event.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Provides the text of this event.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Provides the text of this event.</p>
*/
inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Provides the text of this event.</p>
*/
inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Provides the text of this event.</p>
*/
inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>Specifies the category for the event.</p>
*/
inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
/**
* <p>Specifies the category for the event.</p>
*/
inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
/**
* <p>Specifies the category for the event.</p>
*/
inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
/**
* <p>Specifies the category for the event.</p>
*/
inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
/**
* <p>Specifies the category for the event.</p>
*/
inline Event& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
/**
* <p>Specifies the category for the event.</p>
*/
inline Event& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
/**
* <p>Specifies the category for the event.</p>
*/
inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
/**
* <p>Specifies the category for the event.</p>
*/
inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the category for the event.</p>
*/
inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
/**
* <p>Specifies the date and time of the event.</p>
*/
inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
/**
* <p>Specifies the date and time of the event.</p>
*/
inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
/**
* <p>Specifies the date and time of the event.</p>
*/
inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
/**
* <p>Specifies the date and time of the event.</p>
*/
inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
/**
* <p>Specifies the date and time of the event.</p>
*/
inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
/**
* <p>Specifies the date and time of the event.</p>
*/
inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the event.</p>
*/
inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
/**
* <p>The Amazon Resource Name (ARN) for the event.</p>
*/
inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) for the event.</p>
*/
inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) for the event.</p>
*/
inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) for the event.</p>
*/
inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) for the event.</p>
*/
inline Event& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the event.</p>
*/
inline Event& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the event.</p>
*/
inline Event& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
private:
Aws::String m_sourceIdentifier;
bool m_sourceIdentifierHasBeenSet;
SourceType m_sourceType;
bool m_sourceTypeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Vector<Aws::String> m_eventCategories;
bool m_eventCategoriesHasBeenSet;
Aws::Utils::DateTime m_date;
bool m_dateHasBeenSet;
Aws::String m_sourceArn;
bool m_sourceArnHasBeenSet;
};
} // namespace Model
} // namespace RDS
} // namespace Aws