AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TraceUser.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/xray/model/ServiceId.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace XRay
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_XRAY_API TraceUser();
38 AWS_XRAY_API TraceUser(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetUserName() const{ return m_userName; }
48 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
49 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
50 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
51 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
52 inline TraceUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
53 inline TraceUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
54 inline TraceUser& WithUserName(const char* value) { SetUserName(value); return *this;}
56
58
61 inline const Aws::Vector<ServiceId>& GetServiceIds() const{ return m_serviceIds; }
62 inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
63 inline void SetServiceIds(const Aws::Vector<ServiceId>& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; }
64 inline void SetServiceIds(Aws::Vector<ServiceId>&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); }
65 inline TraceUser& WithServiceIds(const Aws::Vector<ServiceId>& value) { SetServiceIds(value); return *this;}
66 inline TraceUser& WithServiceIds(Aws::Vector<ServiceId>&& value) { SetServiceIds(std::move(value)); return *this;}
67 inline TraceUser& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; }
68 inline TraceUser& AddServiceIds(ServiceId&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_userName;
73 bool m_userNameHasBeenSet = false;
74
75 Aws::Vector<ServiceId> m_serviceIds;
76 bool m_serviceIdsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace XRay
81} // namespace Aws
AWS_XRAY_API TraceUser & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API TraceUser(Aws::Utils::Json::JsonView jsonValue)
TraceUser & WithUserName(const char *value)
Definition TraceUser.h:54
void SetUserName(const Aws::String &value)
Definition TraceUser.h:49
void SetUserName(Aws::String &&value)
Definition TraceUser.h:50
bool UserNameHasBeenSet() const
Definition TraceUser.h:48
TraceUser & WithUserName(const Aws::String &value)
Definition TraceUser.h:52
TraceUser & AddServiceIds(ServiceId &&value)
Definition TraceUser.h:68
TraceUser & AddServiceIds(const ServiceId &value)
Definition TraceUser.h:67
const Aws::Vector< ServiceId > & GetServiceIds() const
Definition TraceUser.h:61
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
TraceUser & WithServiceIds(const Aws::Vector< ServiceId > &value)
Definition TraceUser.h:65
void SetUserName(const char *value)
Definition TraceUser.h:51
void SetServiceIds(Aws::Vector< ServiceId > &&value)
Definition TraceUser.h:64
bool ServiceIdsHasBeenSet() const
Definition TraceUser.h:62
TraceUser & WithUserName(Aws::String &&value)
Definition TraceUser.h:53
void SetServiceIds(const Aws::Vector< ServiceId > &value)
Definition TraceUser.h:63
TraceUser & WithServiceIds(Aws::Vector< ServiceId > &&value)
Definition TraceUser.h:66
const Aws::String & GetUserName() const
Definition TraceUser.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue