/** * 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 PersonalizeEvents { namespace Model { /** *

Contains information about a metric attribution associated with an event. For * more information about metric attributions, see Measuring * impact of recommendations.

See Also:

AWS * API Reference

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

The source of the event, such as a third party.

*/ inline const Aws::String& GetEventAttributionSource() const{ return m_eventAttributionSource; } /** *

The source of the event, such as a third party.

*/ inline bool EventAttributionSourceHasBeenSet() const { return m_eventAttributionSourceHasBeenSet; } /** *

The source of the event, such as a third party.

*/ inline void SetEventAttributionSource(const Aws::String& value) { m_eventAttributionSourceHasBeenSet = true; m_eventAttributionSource = value; } /** *

The source of the event, such as a third party.

*/ inline void SetEventAttributionSource(Aws::String&& value) { m_eventAttributionSourceHasBeenSet = true; m_eventAttributionSource = std::move(value); } /** *

The source of the event, such as a third party.

*/ inline void SetEventAttributionSource(const char* value) { m_eventAttributionSourceHasBeenSet = true; m_eventAttributionSource.assign(value); } /** *

The source of the event, such as a third party.

*/ inline MetricAttribution& WithEventAttributionSource(const Aws::String& value) { SetEventAttributionSource(value); return *this;} /** *

The source of the event, such as a third party.

*/ inline MetricAttribution& WithEventAttributionSource(Aws::String&& value) { SetEventAttributionSource(std::move(value)); return *this;} /** *

The source of the event, such as a third party.

*/ inline MetricAttribution& WithEventAttributionSource(const char* value) { SetEventAttributionSource(value); return *this;} private: Aws::String m_eventAttributionSource; bool m_eventAttributionSourceHasBeenSet = false; }; } // namespace Model } // namespace PersonalizeEvents } // namespace Aws