AWS SDK for C++  1.9.108
AWS SDK for C++
TraceUser.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace XRay
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetUserName() const{ return m_userName; }
47 
51  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
52 
56  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
57 
61  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
62 
66  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
67 
71  inline TraceUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
72 
76  inline TraceUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
77 
81  inline TraceUser& WithUserName(const char* value) { SetUserName(value); return *this;}
82 
83 
87  inline const Aws::Vector<ServiceId>& GetServiceIds() const{ return m_serviceIds; }
88 
92  inline bool ServiceIdsHasBeenSet() const { return m_serviceIdsHasBeenSet; }
93 
97  inline void SetServiceIds(const Aws::Vector<ServiceId>& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = value; }
98 
102  inline void SetServiceIds(Aws::Vector<ServiceId>&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds = std::move(value); }
103 
107  inline TraceUser& WithServiceIds(const Aws::Vector<ServiceId>& value) { SetServiceIds(value); return *this;}
108 
112  inline TraceUser& WithServiceIds(Aws::Vector<ServiceId>&& value) { SetServiceIds(std::move(value)); return *this;}
113 
117  inline TraceUser& AddServiceIds(const ServiceId& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(value); return *this; }
118 
122  inline TraceUser& AddServiceIds(ServiceId&& value) { m_serviceIdsHasBeenSet = true; m_serviceIds.push_back(std::move(value)); return *this; }
123 
124  private:
125 
126  Aws::String m_userName;
127  bool m_userNameHasBeenSet;
128 
129  Aws::Vector<ServiceId> m_serviceIds;
130  bool m_serviceIdsHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace XRay
135 } // namespace Aws
Aws::XRay::Model::TraceUser::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: TraceUser.h:51
ServiceId.h
Aws::XRay::Model::TraceUser::ServiceIdsHasBeenSet
bool ServiceIdsHasBeenSet() const
Definition: TraceUser.h:92
Aws::XRay::Model::TraceUser::SetServiceIds
void SetServiceIds(Aws::Vector< ServiceId > &&value)
Definition: TraceUser.h:102
Aws::XRay::Model::TraceUser
Definition: TraceUser.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::XRay::Model::TraceUser::AddServiceIds
TraceUser & AddServiceIds(const ServiceId &value)
Definition: TraceUser.h:117
Aws::XRay::Model::TraceUser::TraceUser
TraceUser()
AWSVector.h
Aws::XRay::Model::TraceUser::GetUserName
const Aws::String & GetUserName() const
Definition: TraceUser.h:46
Aws::XRay::Model::TraceUser::AddServiceIds
TraceUser & AddServiceIds(ServiceId &&value)
Definition: TraceUser.h:122
Aws::XRay::Model::TraceUser::WithServiceIds
TraceUser & WithServiceIds(const Aws::Vector< ServiceId > &value)
Definition: TraceUser.h:107
Aws::XRay::Model::TraceUser::GetServiceIds
const Aws::Vector< ServiceId > & GetServiceIds() const
Definition: TraceUser.h:87
Aws::XRay::Model::TraceUser::operator=
TraceUser & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::XRay::Model::TraceUser::SetServiceIds
void SetServiceIds(const Aws::Vector< ServiceId > &value)
Definition: TraceUser.h:97
Aws::XRay::Model::TraceUser::SetUserName
void SetUserName(const char *value)
Definition: TraceUser.h:66
Aws::XRay::Model::TraceUser::WithUserName
TraceUser & WithUserName(Aws::String &&value)
Definition: TraceUser.h:76
Aws::XRay::Model::TraceUser::SetUserName
void SetUserName(Aws::String &&value)
Definition: TraceUser.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
XRay_EXPORTS.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_XRAY_API
#define AWS_XRAY_API
Definition: XRay_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::XRay::Model::TraceUser::TraceUser
TraceUser(Aws::Utils::Json::JsonView jsonValue)
Aws::XRay::Model::TraceUser::WithUserName
TraceUser & WithUserName(const Aws::String &value)
Definition: TraceUser.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::XRay::Model::TraceUser::WithServiceIds
TraceUser & WithServiceIds(Aws::Vector< ServiceId > &&value)
Definition: TraceUser.h:112
Aws::XRay::Model::ServiceId
Definition: ServiceId.h:33
Aws::XRay::Model::TraceUser::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::XRay::Model::TraceUser::WithUserName
TraceUser & WithUserName(const char *value)
Definition: TraceUser.h:81
Aws::XRay::Model::TraceUser::SetUserName
void SetUserName(const Aws::String &value)
Definition: TraceUser.h:56