/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DataExchange { namespace Model { /** */ class CreateEventActionRequest : public DataExchangeRequest { public: AWS_DATAEXCHANGE_API CreateEventActionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateEventAction"; } AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override; /** *

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 CreateEventActionRequest& WithAction(const Action& value) { SetAction(value); return *this;} /** *

What occurs after a certain event.

*/ inline CreateEventActionRequest& WithAction(Action&& value) { SetAction(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 CreateEventActionRequest& WithEvent(const Event& value) { SetEvent(value); return *this;} /** *

What occurs to start an action.

*/ inline CreateEventActionRequest& WithEvent(Event&& value) { SetEvent(std::move(value)); return *this;} private: Action m_action; bool m_actionHasBeenSet = false; Event m_event; bool m_eventHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws