AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TraceUser.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/xray/XRay_EXPORTS.h>
10#include <aws/xray/model/ServiceId.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay {
22namespace Model {
23
30class TraceUser {
31 public:
32 AWS_XRAY_API TraceUser() = default;
33 AWS_XRAY_API TraceUser(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetUserName() const { return m_userName; }
42 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
43 template <typename UserNameT = Aws::String>
44 void SetUserName(UserNameT&& value) {
45 m_userNameHasBeenSet = true;
46 m_userName = std::forward<UserNameT>(value);
47 }
48 template <typename UserNameT = Aws::String>
49 TraceUser& WithUserName(UserNameT&& value) {
50 SetUserName(std::forward<UserNameT>(value));
51 return *this;
52 }
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) {
63 m_serviceIdsHasBeenSet = true;
64 m_serviceIds = std::forward<ServiceIdsT>(value);
65 }
66 template <typename ServiceIdsT = Aws::Vector<ServiceId>>
67 TraceUser& WithServiceIds(ServiceIdsT&& value) {
68 SetServiceIds(std::forward<ServiceIdsT>(value));
69 return *this;
70 }
71 template <typename ServiceIdsT = ServiceId>
72 TraceUser& AddServiceIds(ServiceIdsT&& value) {
73 m_serviceIdsHasBeenSet = true;
74 m_serviceIds.emplace_back(std::forward<ServiceIdsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_userName;
80
81 Aws::Vector<ServiceId> m_serviceIds;
82 bool m_userNameHasBeenSet = false;
83 bool m_serviceIdsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace XRay
88} // 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:49
bool UserNameHasBeenSet() const
Definition TraceUser.h:42
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:72
AWS_XRAY_API TraceUser()=default
bool ServiceIdsHasBeenSet() const
Definition TraceUser.h:60
const Aws::String & GetUserName() const
Definition TraceUser.h:41
TraceUser & WithServiceIds(ServiceIdsT &&value)
Definition TraceUser.h:67
void SetUserName(UserNameT &&value)
Definition TraceUser.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue