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

A structure that contains information about the user session that this batch * of events was collected from.

See Also:

AWS API * Reference

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

The session ID that the performance events are from.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The session ID that the performance events are from.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

The session ID that the performance events are from.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } /** *

The session ID that the performance events are from.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } /** *

The session ID that the performance events are from.

*/ inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } /** *

The session ID that the performance events are from.

*/ inline UserDetails& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The session ID that the performance events are from.

*/ inline UserDetails& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The session ID that the performance events are from.

*/ inline UserDetails& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

The ID of the user for this user session. This ID is generated by RUM and * does not include any personally identifiable information about the user.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The ID of the user for this user session. This ID is generated by RUM and * does not include any personally identifiable information about the user.

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The ID of the user for this user session. This ID is generated by RUM and * does not include any personally identifiable information about the user.

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The ID of the user for this user session. This ID is generated by RUM and * does not include any personally identifiable information about the user.

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The ID of the user for this user session. This ID is generated by RUM and * does not include any personally identifiable information about the user.

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The ID of the user for this user session. This ID is generated by RUM and * does not include any personally identifiable information about the user.

*/ inline UserDetails& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The ID of the user for this user session. This ID is generated by RUM and * does not include any personally identifiable information about the user.

*/ inline UserDetails& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The ID of the user for this user session. This ID is generated by RUM and * does not include any personally identifiable information about the user.

*/ inline UserDetails& WithUserId(const char* value) { SetUserId(value); return *this;} private: Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws