/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchRUM { namespace Model { /** *

A structure that contains the information for one performance event that RUM * collects from a user session with your application.

See Also:

* AWS API * Reference

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

A string containing details about the event.

*/ inline const Aws::String& GetDetails() const{ return m_details; } /** *

A string containing details about the event.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

A string containing details about the event.

*/ inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

A string containing details about the event.

*/ inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

A string containing details about the event.

*/ inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); } /** *

A string containing details about the event.

*/ inline RumEvent& WithDetails(const Aws::String& value) { SetDetails(value); return *this;} /** *

A string containing details about the event.

*/ inline RumEvent& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;} /** *

A string containing details about the event.

*/ inline RumEvent& WithDetails(const char* value) { SetDetails(value); return *this;} /** *

A unique ID for this event.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

A unique ID for this event.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

A unique ID for this event.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

A unique ID for this event.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

A unique ID for this event.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

A unique ID for this event.

*/ inline RumEvent& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

A unique ID for this event.

*/ inline RumEvent& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

A unique ID for this event.

*/ inline RumEvent& WithId(const char* value) { SetId(value); return *this;} /** *

Metadata about this event, which contains a JSON serialization of the * identity of the user for this session. The user information comes from * information such as the HTTP user-agent request header and document * interface.

*/ inline const Aws::String& GetMetadata() const{ return m_metadata; } /** *

Metadata about this event, which contains a JSON serialization of the * identity of the user for this session. The user information comes from * information such as the HTTP user-agent request header and document * interface.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

Metadata about this event, which contains a JSON serialization of the * identity of the user for this session. The user information comes from * information such as the HTTP user-agent request header and document * interface.

*/ inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

Metadata about this event, which contains a JSON serialization of the * identity of the user for this session. The user information comes from * information such as the HTTP user-agent request header and document * interface.

*/ inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

Metadata about this event, which contains a JSON serialization of the * identity of the user for this session. The user information comes from * information such as the HTTP user-agent request header and document * interface.

*/ inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); } /** *

Metadata about this event, which contains a JSON serialization of the * identity of the user for this session. The user information comes from * information such as the HTTP user-agent request header and document * interface.

*/ inline RumEvent& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;} /** *

Metadata about this event, which contains a JSON serialization of the * identity of the user for this session. The user information comes from * information such as the HTTP user-agent request header and document * interface.

*/ inline RumEvent& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;} /** *

Metadata about this event, which contains a JSON serialization of the * identity of the user for this session. The user information comes from * information such as the HTTP user-agent request header and document * interface.

*/ inline RumEvent& WithMetadata(const char* value) { SetMetadata(value); return *this;} /** *

The exact time that this event occurred.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

The exact time that this event occurred.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The exact time that this event occurred.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The exact time that this event occurred.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The exact time that this event occurred.

*/ inline RumEvent& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

The exact time that this event occurred.

*/ inline RumEvent& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The JSON schema that denotes the type of event this is, such as a page load * or a new session.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The JSON schema that denotes the type of event this is, such as a page load * or a new session.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The JSON schema that denotes the type of event this is, such as a page load * or a new session.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The JSON schema that denotes the type of event this is, such as a page load * or a new session.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The JSON schema that denotes the type of event this is, such as a page load * or a new session.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The JSON schema that denotes the type of event this is, such as a page load * or a new session.

*/ inline RumEvent& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The JSON schema that denotes the type of event this is, such as a page load * or a new session.

*/ inline RumEvent& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The JSON schema that denotes the type of event this is, such as a page load * or a new session.

*/ inline RumEvent& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_details; bool m_detailsHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_metadata; bool m_metadataHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws