AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename UserNameT = Aws::String>
50 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
51 template<typename UserNameT = Aws::String>
52 TraceUser& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
54
56
59 inline const Aws::Vector<ServiceId>& GetServiceIds() const { return m_serviceIds; }
60 inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
61 template<typename ServiceIdsT = Aws::Vector<ServiceId>>
62 void SetServiceIds(ServiceIdsT&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::forward<ServiceIdsT>(value); }
63 template<typename ServiceIdsT = Aws::Vector<ServiceId>>
64 TraceUser& WithServiceIds(ServiceIdsT&& value) { SetServiceIds(std::forward<ServiceIdsT>(value)); return *this;}
65 template<typename ServiceIdsT = ServiceId>
66 TraceUser& AddServiceIds(ServiceIdsT&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.emplace_back(std::forward<ServiceIdsT>(value)); return *this; }
68 private:
69
70 Aws::String m_userName;
71 bool m_userNameHasBeenSet = false;
72
73 Aws::Vector<ServiceId> m_serviceIds;
74 bool m_serviceIdsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace XRay
79} // namespace Aws
AWS_XRAY_API TraceUser & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API TraceUser(Aws::Utils::Json::JsonView jsonValue)
void SetServiceIds(ServiceIdsT &&value)
Definition TraceUser.h:62
TraceUser & WithUserName(UserNameT &&value)
Definition TraceUser.h:52
bool UserNameHasBeenSet() const
Definition TraceUser.h:48
const Aws::Vector< ServiceId > & GetServiceIds() const
Definition TraceUser.h:59
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
TraceUser & AddServiceIds(ServiceIdsT &&value)
Definition TraceUser.h:66
AWS_XRAY_API TraceUser()=default
bool ServiceIdsHasBeenSet() const
Definition TraceUser.h:60
const Aws::String & GetUserName() const
Definition TraceUser.h:47
TraceUser & WithServiceIds(ServiceIdsT &&value)
Definition TraceUser.h:64
void SetUserName(UserNameT &&value)
Definition TraceUser.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue