/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DataExchange { namespace Model { class CreateEventActionResult { public: AWS_DATAEXCHANGE_API CreateEventActionResult(); AWS_DATAEXCHANGE_API CreateEventActionResult(const Aws::AmazonWebServiceResult& result); AWS_DATAEXCHANGE_API CreateEventActionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

What occurs after a certain event.

*/ inline const Action& GetAction() const{ return m_action; } /** *

What occurs after a certain event.

*/ inline void SetAction(const Action& value) { m_action = value; } /** *

What occurs after a certain event.

*/ inline void SetAction(Action&& value) { m_action = std::move(value); } /** *

What occurs after a certain event.

*/ inline CreateEventActionResult& WithAction(const Action& value) { SetAction(value); return *this;} /** *

What occurs after a certain event.

*/ inline CreateEventActionResult& WithAction(Action&& value) { SetAction(std::move(value)); return *this;} /** *

The ARN for the event action.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN for the event action.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The ARN for the event action.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The ARN for the event action.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The ARN for the event action.

*/ inline CreateEventActionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN for the event action.

*/ inline CreateEventActionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN for the event action.

*/ inline CreateEventActionResult& 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 void SetCreatedAt(const Aws::Utils::DateTime& value) { 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_createdAt = std::move(value); } /** *

The date and time that the event action was created, in ISO 8601 format.

*/ inline CreateEventActionResult& 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 CreateEventActionResult& 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 void SetEvent(const Event& value) { m_event = value; } /** *

What occurs to start an action.

*/ inline void SetEvent(Event&& value) { m_event = std::move(value); } /** *

What occurs to start an action.

*/ inline CreateEventActionResult& WithEvent(const Event& value) { SetEvent(value); return *this;} /** *

What occurs to start an action.

*/ inline CreateEventActionResult& 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 void SetId(const Aws::String& value) { m_id = value; } /** *

The unique identifier for the event action.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The unique identifier for the event action.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The unique identifier for the event action.

*/ inline CreateEventActionResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the event action.

*/ inline CreateEventActionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the event action.

*/ inline CreateEventActionResult& 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 void SetUpdatedAt(const Aws::Utils::DateTime& value) { 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_updatedAt = std::move(value); } /** *

The date and time that the event action was last updated, in ISO 8601 * format.

*/ inline CreateEventActionResult& 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 CreateEventActionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateEventActionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateEventActionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateEventActionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Action m_action; Aws::String m_arn; Aws::Utils::DateTime m_createdAt; Event m_event; Aws::String m_id; Aws::Utils::DateTime m_updatedAt; Aws::String m_requestId; }; } // namespace Model } // namespace DataExchange } // namespace Aws