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

Information about a user recorded in segment documents.

See * Also:

AWS API * Reference

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

The user's name.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The user's name.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The user's name.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The user's name.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The user's name.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The user's name.

*/ inline TraceUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The user's name.

*/ inline TraceUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The user's name.

*/ inline TraceUser& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

Services that the user's request hit.

*/ inline const Aws::Vector& GetServiceIds() const{ return m_serviceIds; } /** *

Services that the user's request hit.

*/ inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; } /** *

Services that the user's request hit.

*/ inline void SetServiceIds(const Aws::Vector& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; } /** *

Services that the user's request hit.

*/ inline void SetServiceIds(Aws::Vector&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); } /** *

Services that the user's request hit.

*/ inline TraceUser& WithServiceIds(const Aws::Vector& value) { SetServiceIds(value); return *this;} /** *

Services that the user's request hit.

*/ inline TraceUser& WithServiceIds(Aws::Vector&& value) { SetServiceIds(std::move(value)); return *this;} /** *

Services that the user's request hit.

*/ inline TraceUser& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; } /** *

Services that the user's request hit.

*/ inline TraceUser& AddServiceIds(ServiceId&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(std::move(value)); return *this; } private: Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::Vector m_serviceIds; bool m_serviceIdsHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws