/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An event action is an object that defines the relationship between a specific
* event and an automated action that will be taken on behalf of the
* customer.See Also:
AWS
* API Reference
What occurs after a certain event.
*/ inline const Action& GetAction() const{ return m_action; } /** *What occurs after a certain event.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *What occurs after a certain event.
*/ inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; } /** *What occurs after a certain event.
*/ inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *What occurs after a certain event.
*/ inline EventActionEntry& WithAction(const Action& value) { SetAction(value); return *this;} /** *What occurs after a certain event.
*/ inline EventActionEntry& WithAction(Action&& value) { SetAction(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the event action.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) for the event action.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) for the event action.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) for the event action.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) for the event action.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) for the event action.
*/ inline EventActionEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) for the event action.
*/ inline EventActionEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the event action.
*/ inline EventActionEntry& WithArn(const char* value) { SetArn(value); return *this;} /** *The date and time that the event action was created, in ISO 8601 format.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time that the event action was created, in ISO 8601 format.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time that the event action was created, in ISO 8601 format.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time that the event action was created, in ISO 8601 format.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time that the event action was created, in ISO 8601 format.
*/ inline EventActionEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time that the event action was created, in ISO 8601 format.
*/ inline EventActionEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *What occurs to start an action.
*/ inline const Event& GetEvent() const{ return m_event; } /** *What occurs to start an action.
*/ inline bool EventHasBeenSet() const { return m_eventHasBeenSet; } /** *What occurs to start an action.
*/ inline void SetEvent(const Event& value) { m_eventHasBeenSet = true; m_event = value; } /** *What occurs to start an action.
*/ inline void SetEvent(Event&& value) { m_eventHasBeenSet = true; m_event = std::move(value); } /** *What occurs to start an action.
*/ inline EventActionEntry& WithEvent(const Event& value) { SetEvent(value); return *this;} /** *What occurs to start an action.
*/ inline EventActionEntry& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;} /** *The unique identifier for the event action.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The unique identifier for the event action.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The unique identifier for the event action.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The unique identifier for the event action.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The unique identifier for the event action.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The unique identifier for the event action.
*/ inline EventActionEntry& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The unique identifier for the event action.
*/ inline EventActionEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The unique identifier for the event action.
*/ inline EventActionEntry& WithId(const char* value) { SetId(value); return *this;} /** *The date and time that the event action was last updated, in ISO 8601 * format.
*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *The date and time that the event action was last updated, in ISO 8601 * format.
*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *The date and time that the event action was last updated, in ISO 8601 * format.
*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *The date and time that the event action was last updated, in ISO 8601 * format.
*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *The date and time that the event action was last updated, in ISO 8601 * format.
*/ inline EventActionEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *The date and time that the event action was last updated, in ISO 8601 * format.
*/ inline EventActionEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Action m_action; bool m_actionHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Event m_event; bool m_eventHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws