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

Information about the payload of an event recording Amazon CodeCatalyst * activity.

See Also:

AWS * API Reference

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

The type of content in the event payload.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The type of content in the event payload.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The type of content in the event payload.

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The type of content in the event payload.

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The type of content in the event payload.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The type of content in the event payload.

*/ inline EventPayload& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The type of content in the event payload.

*/ inline EventPayload& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The type of content in the event payload.

*/ inline EventPayload& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The data included in the event payload.

*/ inline const Aws::String& GetData() const{ return m_data; } /** *

The data included in the event payload.

*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *

The data included in the event payload.

*/ inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; } /** *

The data included in the event payload.

*/ inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *

The data included in the event payload.

*/ inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); } /** *

The data included in the event payload.

*/ inline EventPayload& WithData(const Aws::String& value) { SetData(value); return *this;} /** *

The data included in the event payload.

*/ inline EventPayload& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} /** *

The data included in the event payload.

*/ inline EventPayload& WithData(const char* value) { SetData(value); return *this;} private: Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; Aws::String m_data; bool m_dataHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws