229 lines
7.4 KiB
C++
229 lines
7.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/elasticache/ElastiCache_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/elasticache/model/SourceType.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace ElastiCache
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents a single occurrence of something interesting within the system.
|
|
* Some examples of events are creating a cluster, adding or removing a cache node,
|
|
* or rebooting a node.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Event">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ELASTICACHE_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. For example, if the event
|
|
* occurred at the cluster level, the identifier would be the name of the
|
|
* cluster.</p>
|
|
*/
|
|
inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
|
|
|
|
/**
|
|
* <p>The identifier for the source of the event. For example, if the event
|
|
* occurred at the cluster level, the identifier would be the name of the
|
|
* cluster.</p>
|
|
*/
|
|
inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The identifier for the source of the event. For example, if the event
|
|
* occurred at the cluster level, the identifier would be the name of the
|
|
* cluster.</p>
|
|
*/
|
|
inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
|
|
|
|
/**
|
|
* <p>The identifier for the source of the event. For example, if the event
|
|
* occurred at the cluster level, the identifier would be the name of the
|
|
* cluster.</p>
|
|
*/
|
|
inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
|
|
|
|
/**
|
|
* <p>The identifier for the source of the event. For example, if the event
|
|
* occurred at the cluster level, the identifier would be the name of the
|
|
* cluster.</p>
|
|
*/
|
|
inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
|
|
|
|
/**
|
|
* <p>The identifier for the source of the event. For example, if the event
|
|
* occurred at the cluster level, the identifier would be the name of the
|
|
* cluster.</p>
|
|
*/
|
|
inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
|
|
|
|
/**
|
|
* <p>The identifier for the source of the event. For example, if the event
|
|
* occurred at the cluster level, the identifier would be the name of the
|
|
* cluster.</p>
|
|
*/
|
|
inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The identifier for the source of the event. For example, if the event
|
|
* occurred at the cluster level, the identifier would be the name of the
|
|
* cluster.</p>
|
|
*/
|
|
inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Specifies the origin of this event - a cluster, a parameter group, a security
|
|
* group, etc.</p>
|
|
*/
|
|
inline const SourceType& GetSourceType() const{ return m_sourceType; }
|
|
|
|
/**
|
|
* <p>Specifies the origin of this event - a cluster, a parameter group, a security
|
|
* group, etc.</p>
|
|
*/
|
|
inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the origin of this event - a cluster, a parameter group, a security
|
|
* group, etc.</p>
|
|
*/
|
|
inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
|
|
|
|
/**
|
|
* <p>Specifies the origin of this event - a cluster, a parameter group, a security
|
|
* group, etc.</p>
|
|
*/
|
|
inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies the origin of this event - a cluster, a parameter group, a security
|
|
* group, etc.</p>
|
|
*/
|
|
inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the origin of this event - a cluster, a parameter group, a security
|
|
* group, etc.</p>
|
|
*/
|
|
inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The text of the event.</p>
|
|
*/
|
|
inline const Aws::String& GetMessage() const{ return m_message; }
|
|
|
|
/**
|
|
* <p>The text of the event.</p>
|
|
*/
|
|
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The text of the event.</p>
|
|
*/
|
|
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
|
|
|
/**
|
|
* <p>The text of the event.</p>
|
|
*/
|
|
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
|
|
|
/**
|
|
* <p>The text of the event.</p>
|
|
*/
|
|
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
|
|
|
/**
|
|
* <p>The text of the event.</p>
|
|
*/
|
|
inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
|
|
|
/**
|
|
* <p>The text of the event.</p>
|
|
*/
|
|
inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The text of the event.</p>
|
|
*/
|
|
inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time when the event occurred.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
|
|
|
|
/**
|
|
* <p>The date and time when the event occurred.</p>
|
|
*/
|
|
inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The date and time when the event occurred.</p>
|
|
*/
|
|
inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
|
|
|
|
/**
|
|
* <p>The date and time when the event occurred.</p>
|
|
*/
|
|
inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time when the event occurred.</p>
|
|
*/
|
|
inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time when the event occurred.</p>
|
|
*/
|
|
inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(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::Utils::DateTime m_date;
|
|
bool m_dateHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ElastiCache
|
|
} // namespace Aws
|