/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Detailed information about an event.See Also:
AWS API
* Reference
Provides the identifier for the source of the event.
*/ inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; } /** *Provides the identifier for the source of the event.
*/ inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; } /** *Provides the identifier for the source of the event.
*/ inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; } /** *Provides the identifier for the source of the event.
*/ inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); } /** *Provides the identifier for the source of the event.
*/ inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); } /** *Provides the identifier for the source of the event.
*/ inline Event& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;} /** *Provides the identifier for the source of the event.
*/ inline Event& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;} /** *Provides the identifier for the source of the event.
*/ inline Event& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;} /** *Specifies the source type for this event.
*/ inline const SourceType& GetSourceType() const{ return m_sourceType; } /** *Specifies the source type for this event.
*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *Specifies the source type for this event.
*/ inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *Specifies the source type for this event.
*/ inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *Specifies the source type for this event.
*/ inline Event& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;} /** *Specifies the source type for this event.
*/ inline Event& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;} /** *Provides the text of this event.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *Provides the text of this event.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *Provides the text of this event.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *Provides the text of this event.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *Provides the text of this event.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *Provides the text of this event.
*/ inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *Provides the text of this event.
*/ inline Event& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *Provides the text of this event.
*/ inline Event& WithMessage(const char* value) { SetMessage(value); return *this;} /** *Specifies the category for the event.
*/ inline const Aws::VectorSpecifies the category for the event.
*/ inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; } /** *Specifies the category for the event.
*/ inline void SetEventCategories(const Aws::VectorSpecifies the category for the event.
*/ inline void SetEventCategories(Aws::VectorSpecifies the category for the event.
*/ inline Event& WithEventCategories(const Aws::VectorSpecifies the category for the event.
*/ inline Event& WithEventCategories(Aws::VectorSpecifies the category for the event.
*/ inline Event& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *Specifies the category for the event.
*/ inline Event& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; } /** *Specifies the category for the event.
*/ inline Event& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *Specifies the date and time of the event.
*/ inline const Aws::Utils::DateTime& GetDate() const{ return m_date; } /** *Specifies the date and time of the event.
*/ inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } /** *Specifies the date and time of the event.
*/ inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; } /** *Specifies the date and time of the event.
*/ inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } /** *Specifies the date and time of the event.
*/ inline Event& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;} /** *Specifies the date and time of the event.
*/ inline Event& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the event.
*/ inline const Aws::String& GetSourceArn() const{ return m_sourceArn; } /** *The Amazon Resource Name (ARN) for the event.
*/ inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; } /** *The Amazon Resource Name (ARN) for the event.
*/ inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; } /** *The Amazon Resource Name (ARN) for the event.
*/ inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); } /** *The Amazon Resource Name (ARN) for the event.
*/ inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); } /** *The Amazon Resource Name (ARN) for the event.
*/ inline Event& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;} /** *The Amazon Resource Name (ARN) for the event.
*/ inline Event& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the event.
*/ inline Event& WithSourceArn(const char* value) { SetSourceArn(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