136 lines
3.7 KiB
C
136 lines
3.7 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/xray/XRay_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/xray/model/ServiceId.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace XRay
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about a user recorded in segment documents.</p><p><h3>See
|
|||
|
|
* Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/TraceUser">AWS API
|
|||
|
|
* Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_XRAY_API TraceUser
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
TraceUser();
|
|||
|
|
TraceUser(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
TraceUser& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The user's name.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetUserName() const{ return m_userName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The user's name.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The user's name.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The user's name.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The user's name.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The user's name.</p>
|
|||
|
|
*/
|
|||
|
|
inline TraceUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The user's name.</p>
|
|||
|
|
*/
|
|||
|
|
inline TraceUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The user's name.</p>
|
|||
|
|
*/
|
|||
|
|
inline TraceUser& WithUserName(const char* value) { SetUserName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Services that the user's request hit.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<ServiceId>& GetServiceIds() const{ return m_serviceIds; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Services that the user's request hit.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Services that the user's request hit.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetServiceIds(const Aws::Vector<ServiceId>& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Services that the user's request hit.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetServiceIds(Aws::Vector<ServiceId>&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Services that the user's request hit.</p>
|
|||
|
|
*/
|
|||
|
|
inline TraceUser& WithServiceIds(const Aws::Vector<ServiceId>& value) { SetServiceIds(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Services that the user's request hit.</p>
|
|||
|
|
*/
|
|||
|
|
inline TraceUser& WithServiceIds(Aws::Vector<ServiceId>&& value) { SetServiceIds(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Services that the user's request hit.</p>
|
|||
|
|
*/
|
|||
|
|
inline TraceUser& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Services that the user's request hit.</p>
|
|||
|
|
*/
|
|||
|
|
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;
|
|||
|
|
|
|||
|
|
Aws::Vector<ServiceId> m_serviceIds;
|
|||
|
|
bool m_serviceIdsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace XRay
|
|||
|
|
} // namespace Aws
|