AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
EndpointUser.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
31 public:
32 AWS_PINPOINT_API EndpointUser() = default;
33 AWS_PINPOINT_API EndpointUser(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
50 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetUserAttributes() const { return m_userAttributes; }
51 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
52 template <typename UserAttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
53 void SetUserAttributes(UserAttributesT&& value) {
54 m_userAttributesHasBeenSet = true;
55 m_userAttributes = std::forward<UserAttributesT>(value);
56 }
57 template <typename UserAttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
58 EndpointUser& WithUserAttributes(UserAttributesT&& value) {
59 SetUserAttributes(std::forward<UserAttributesT>(value));
60 return *this;
61 }
62 template <typename UserAttributesKeyT = Aws::String, typename UserAttributesValueT = Aws::Vector<Aws::String>>
63 EndpointUser& AddUserAttributes(UserAttributesKeyT&& key, UserAttributesValueT&& value) {
64 m_userAttributesHasBeenSet = true;
65 m_userAttributes.emplace(std::forward<UserAttributesKeyT>(key), std::forward<UserAttributesValueT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetUserId() const { return m_userId; }
75 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
76 template <typename UserIdT = Aws::String>
77 void SetUserId(UserIdT&& value) {
78 m_userIdHasBeenSet = true;
79 m_userId = std::forward<UserIdT>(value);
80 }
81 template <typename UserIdT = Aws::String>
82 EndpointUser& WithUserId(UserIdT&& value) {
83 SetUserId(std::forward<UserIdT>(value));
84 return *this;
85 }
87 private:
89
90 Aws::String m_userId;
91 bool m_userAttributesHasBeenSet = false;
92 bool m_userIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Pinpoint
97} // namespace Aws
AWS_PINPOINT_API EndpointUser & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUserId() const
EndpointUser & WithUserAttributes(UserAttributesT &&value)
EndpointUser & WithUserId(UserIdT &&value)
AWS_PINPOINT_API EndpointUser()=default
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUserAttributes(UserAttributesT &&value)
void SetUserId(UserIdT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetUserAttributes() const
AWS_PINPOINT_API EndpointUser(Aws::Utils::Json::JsonView jsonValue)
EndpointUser & AddUserAttributes(UserAttributesKeyT &&key, UserAttributesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue