/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace EventBridge { namespace Model { /** */ class TestEventPatternRequest : public EventBridgeRequest { public: AWS_EVENTBRIDGE_API TestEventPatternRequest(); // 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 "TestEventPattern"; } AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override; AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline const Aws::String& GetEventPattern() const{ return m_eventPattern; } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline TestEventPatternRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;} /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline TestEventPatternRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;} /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline TestEventPatternRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;} /** *

The event, in JSON format, to test against the event pattern. The JSON must * follow the format specified in Amazon * Web Services Events, and the following fields are mandatory:

  • *

    id

  • account

  • * source

  • time

  • * region

  • resources

  • *

    detail-type

*/ inline const Aws::String& GetEvent() const{ return m_event; } /** *

The event, in JSON format, to test against the event pattern. The JSON must * follow the format specified in Amazon * Web Services Events, and the following fields are mandatory:

  • *

    id

  • account

  • * source

  • time

  • * region

  • resources

  • *

    detail-type

*/ inline bool EventHasBeenSet() const { return m_eventHasBeenSet; } /** *

The event, in JSON format, to test against the event pattern. The JSON must * follow the format specified in Amazon * Web Services Events, and the following fields are mandatory:

  • *

    id

  • account

  • * source

  • time

  • * region

  • resources

  • *

    detail-type

*/ inline void SetEvent(const Aws::String& value) { m_eventHasBeenSet = true; m_event = value; } /** *

The event, in JSON format, to test against the event pattern. The JSON must * follow the format specified in Amazon * Web Services Events, and the following fields are mandatory:

  • *

    id

  • account

  • * source

  • time

  • * region

  • resources

  • *

    detail-type

*/ inline void SetEvent(Aws::String&& value) { m_eventHasBeenSet = true; m_event = std::move(value); } /** *

The event, in JSON format, to test against the event pattern. The JSON must * follow the format specified in Amazon * Web Services Events, and the following fields are mandatory:

  • *

    id

  • account

  • * source

  • time

  • * region

  • resources

  • *

    detail-type

*/ inline void SetEvent(const char* value) { m_eventHasBeenSet = true; m_event.assign(value); } /** *

The event, in JSON format, to test against the event pattern. The JSON must * follow the format specified in Amazon * Web Services Events, and the following fields are mandatory:

  • *

    id

  • account

  • * source

  • time

  • * region

  • resources

  • *

    detail-type

*/ inline TestEventPatternRequest& WithEvent(const Aws::String& value) { SetEvent(value); return *this;} /** *

The event, in JSON format, to test against the event pattern. The JSON must * follow the format specified in Amazon * Web Services Events, and the following fields are mandatory:

  • *

    id

  • account

  • * source

  • time

  • * region

  • resources

  • *

    detail-type

*/ inline TestEventPatternRequest& WithEvent(Aws::String&& value) { SetEvent(std::move(value)); return *this;} /** *

The event, in JSON format, to test against the event pattern. The JSON must * follow the format specified in Amazon * Web Services Events, and the following fields are mandatory:

  • *

    id

  • account

  • * source

  • time

  • * region

  • resources

  • *

    detail-type

*/ inline TestEventPatternRequest& WithEvent(const char* value) { SetEvent(value); return *this;} private: Aws::String m_eventPattern; bool m_eventPatternHasBeenSet = false; Aws::String m_event; bool m_eventHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws