/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Scheduler { namespace Model { /** *

The templated target type for the EventBridge * PutEvents API operation.

See Also:

AWS * API Reference

*/ class EventBridgeParameters { public: AWS_SCHEDULER_API EventBridgeParameters(); AWS_SCHEDULER_API EventBridgeParameters(Aws::Utils::Json::JsonView jsonValue); AWS_SCHEDULER_API EventBridgeParameters& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline const Aws::String& GetDetailType() const{ return m_detailType; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline EventBridgeParameters& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;} /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline EventBridgeParameters& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;} /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline EventBridgeParameters& WithDetailType(const char* value) { SetDetailType(value); return *this;} /** *

The source of the event.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The source of the event.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source of the event.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source of the event.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source of the event.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The source of the event.

*/ inline EventBridgeParameters& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The source of the event.

*/ inline EventBridgeParameters& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The source of the event.

*/ inline EventBridgeParameters& WithSource(const char* value) { SetSource(value); return *this;} private: Aws::String m_detailType; bool m_detailTypeHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; }; } // namespace Model } // namespace Scheduler } // namespace Aws