/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an identifiable significant activity that affects a replication
* instance or task. This object can provide the message, the available event
* categories, the date and source of the event, and the DMS resource
* type.See Also:
AWS API
* Reference
The identifier of an event source.
*/ inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; } /** *The identifier of an event source.
*/ inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; } /** *The identifier of an event source.
*/ inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; } /** *The identifier of an event source.
*/ inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); } /** *The identifier of an event source.
*/ inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); } /** *The identifier of an event source.
*/ inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;} /** *The identifier of an event source.
*/ inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;} /** *The identifier of an event source.
*/ inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;} /** *The type of DMS resource that generates events.
Valid values: * replication-instance | endpoint | replication-task
*/ inline const SourceType& GetSourceType() const{ return m_sourceType; } /** *The type of DMS resource that generates events.
Valid values: * replication-instance | endpoint | replication-task
*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *The type of DMS resource that generates events.
Valid values: * replication-instance | endpoint | replication-task
*/ inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *The type of DMS resource that generates events.
Valid values: * replication-instance | endpoint | replication-task
*/ inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *The type of DMS resource that generates events.
Valid values: * replication-instance | endpoint | replication-task
*/ inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;} /** *The type of DMS resource that generates events.
Valid values: * replication-instance | endpoint | replication-task
*/ inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;} /** *The event message.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The event message.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The event message.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The event message.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The event message.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The event message.
*/ inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The event message.
*/ inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The event message.
*/ inline Event& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The event categories available for the specified source type.
*/ inline const Aws::VectorThe event categories available for the specified source type.
*/ inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; } /** *The event categories available for the specified source type.
*/ inline void SetEventCategories(const Aws::VectorThe event categories available for the specified source type.
*/ inline void SetEventCategories(Aws::VectorThe event categories available for the specified source type.
*/ inline Event& WithEventCategories(const Aws::VectorThe event categories available for the specified source type.
*/ inline Event& WithEventCategories(Aws::VectorThe event categories available for the specified source type.
*/ inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *The event categories available for the specified source type.
*/ inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; } /** *The event categories available for the specified source type.
*/ inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *The date of the event.
*/ inline const Aws::Utils::DateTime& GetDate() const{ return m_date; } /** *The date of the event.
*/ inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } /** *The date of the event.
*/ inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; } /** *The date of the event.
*/ inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } /** *The date of the event.
*/ inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;} /** *The date of the event.
*/ inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;} private: Aws::String m_sourceIdentifier; bool m_sourceIdentifierHasBeenSet = false; SourceType m_sourceType; bool m_sourceTypeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector