352 lines
11 KiB
C
352 lines
11 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/redshift/Redshift_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/redshift/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 Redshift
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Describes an event.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/Event">AWS API
|
|||
|
|
* Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_REDSHIFT_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>The identifier for the source of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier for the source of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier for the source of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier for the source of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier for the source of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier for the source of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier for the source of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier for the source of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source type for this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline const SourceType& GetSourceType() const{ return m_sourceType; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source type for this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source type for this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source type for this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source type for this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source type for this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The text of this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetMessage() const{ return m_message; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The text of this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The text of this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The text of this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The text of this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The text of this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The text of this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The text of this event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of the event categories.</p> <p>Values: Configuration, Management,
|
|||
|
|
* Monitoring, Security</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The severity of the event.</p> <p>Values: ERROR, INFO</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSeverity() const{ return m_severity; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The severity of the event.</p> <p>Values: ERROR, INFO</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The severity of the event.</p> <p>Values: ERROR, INFO</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The severity of the event.</p> <p>Values: ERROR, INFO</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The severity of the event.</p> <p>Values: ERROR, INFO</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The severity of the event.</p> <p>Values: ERROR, INFO</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The severity of the event.</p> <p>Values: ERROR, INFO</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The severity of the event.</p> <p>Values: ERROR, INFO</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithSeverity(const char* value) { SetSeverity(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetEventId() const{ return m_eventId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The identifier of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline Event& WithEventId(const char* value) { SetEventId(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::String m_severity;
|
|||
|
|
bool m_severityHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_date;
|
|||
|
|
bool m_dateHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_eventId;
|
|||
|
|
bool m_eventIdHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace Redshift
|
|||
|
|
} // namespace Aws
|