AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EndpointUser.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 Pinpoint
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PINPOINT_API EndpointUser() = default;
38 AWS_PINPOINT_API EndpointUser(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
56 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetUserAttributes() const { return m_userAttributes; }
57 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
58 template<typename UserAttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
59 void SetUserAttributes(UserAttributesT&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::forward<UserAttributesT>(value); }
60 template<typename UserAttributesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
61 EndpointUser& WithUserAttributes(UserAttributesT&& value) { SetUserAttributes(std::forward<UserAttributesT>(value)); return *this;}
62 template<typename UserAttributesKeyT = Aws::String, typename UserAttributesValueT = Aws::Vector<Aws::String>>
63 EndpointUser& AddUserAttributes(UserAttributesKeyT&& key, UserAttributesValueT&& value) {
64 m_userAttributesHasBeenSet = true; m_userAttributes.emplace(std::forward<UserAttributesKeyT>(key), std::forward<UserAttributesValueT>(value)); return *this;
65 }
67
69
72 inline const Aws::String& GetUserId() const { return m_userId; }
73 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
74 template<typename UserIdT = Aws::String>
75 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
76 template<typename UserIdT = Aws::String>
77 EndpointUser& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
79 private:
80
82 bool m_userAttributesHasBeenSet = false;
83
84 Aws::String m_userId;
85 bool m_userIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Pinpoint
90} // 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