/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an event.See Also:
AWS API
* Reference
The identifier for the source of the event.
*/ inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; } /** *The identifier for the source of the event.
*/ inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; } /** *The identifier for the source of the event.
*/ inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; } /** *The identifier for the source of the event.
*/ inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); } /** *The identifier for the source of the event.
*/ inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); } /** *The identifier for the source of the event.
*/ inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;} /** *The identifier for the source of the event.
*/ inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;} /** *The identifier for the source of the event.
*/ inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;} /** *The source type for this event.
*/ inline const SourceType& GetSourceType() const{ return m_sourceType; } /** *The source type for this event.
*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *The source type for this event.
*/ inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *The source type for this event.
*/ inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *The source type for this event.
*/ inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;} /** *The source type for this event.
*/ inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;} /** *The text of this event.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The text of this event.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The text of this event.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The text of this event.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The text of this event.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The text of this event.
*/ inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The text of this event.
*/ inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The text of this event.
*/ inline Event& WithMessage(const char* value) { SetMessage(value); return *this;} /** *A list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline const Aws::VectorA list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; } /** *A list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline void SetEventCategories(const Aws::VectorA list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline void SetEventCategories(Aws::VectorA list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline Event& WithEventCategories(const Aws::VectorA list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline Event& WithEventCategories(Aws::VectorA list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *A list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; } /** *A list of the event categories.
Values: Configuration, Management, * Monitoring, Security, Pending
*/ inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *The severity of the event.
Values: ERROR, INFO
*/ inline const Aws::String& GetSeverity() const{ return m_severity; } /** *The severity of the event.
Values: ERROR, INFO
*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *The severity of the event.
Values: ERROR, INFO
*/ inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; } /** *The severity of the event.
Values: ERROR, INFO
*/ inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *The severity of the event.
Values: ERROR, INFO
*/ inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); } /** *The severity of the event.
Values: ERROR, INFO
*/ inline Event& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;} /** *The severity of the event.
Values: ERROR, INFO
*/ inline Event& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;} /** *The severity of the event.
Values: ERROR, INFO
*/ inline Event& WithSeverity(const char* value) { SetSeverity(value); return *this;} /** *The date and time of the event.
*/ inline const Aws::Utils::DateTime& GetDate() const{ return m_date; } /** *The date and time of the event.
*/ inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } /** *The date and time of the event.
*/ inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; } /** *The date and time of the event.
*/ inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } /** *The date and time of the event.
*/ inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;} /** *The date and time of the event.
*/ inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;} /** *The identifier of the event.
*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *The identifier of the event.
*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *The identifier of the event.
*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *The identifier of the event.
*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *The identifier of the event.
*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *The identifier of the event.
*/ inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *The identifier of the event.
*/ inline Event& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *The identifier of the event.
*/ inline Event& WithEventId(const char* value) { SetEventId(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