AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutUsersRequest.h
1
6#pragma once
7#include <aws/personalize-events/PersonalizeEvents_EXPORTS.h>
8#include <aws/personalize-events/PersonalizeEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/personalize-events/model/User.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PersonalizeEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZEEVENTS_API PutUsersRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutUsers"; }
33
34 AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
43 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
44 inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; }
45 inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); }
46 inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); }
47 inline PutUsersRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
48 inline PutUsersRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
49 inline PutUsersRequest& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
51
53
56 inline const Aws::Vector<User>& GetUsers() const{ return m_users; }
57 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
58 inline void SetUsers(const Aws::Vector<User>& value) { m_usersHasBeenSet = true; m_users = value; }
59 inline void SetUsers(Aws::Vector<User>&& value) { m_usersHasBeenSet = true; m_users = std::move(value); }
60 inline PutUsersRequest& WithUsers(const Aws::Vector<User>& value) { SetUsers(value); return *this;}
61 inline PutUsersRequest& WithUsers(Aws::Vector<User>&& value) { SetUsers(std::move(value)); return *this;}
62 inline PutUsersRequest& AddUsers(const User& value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; }
63 inline PutUsersRequest& AddUsers(User&& value) { m_usersHasBeenSet = true; m_users.push_back(std::move(value)); return *this; }
65 private:
66
67 Aws::String m_datasetArn;
68 bool m_datasetArnHasBeenSet = false;
69
70 Aws::Vector<User> m_users;
71 bool m_usersHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace PersonalizeEvents
76} // namespace Aws
PutUsersRequest & WithDatasetArn(Aws::String &&value)
AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override
PutUsersRequest & AddUsers(const User &value)
PutUsersRequest & WithUsers(Aws::Vector< User > &&value)
virtual const char * GetServiceRequestName() const override
PutUsersRequest & AddUsers(User &&value)
AWS_PERSONALIZEEVENTS_API PutUsersRequest()
void SetUsers(Aws::Vector< User > &&value)
void SetUsers(const Aws::Vector< User > &value)
const Aws::Vector< User > & GetUsers() const
PutUsersRequest & WithDatasetArn(const Aws::String &value)
PutUsersRequest & WithUsers(const Aws::Vector< User > &value)
PutUsersRequest & WithDatasetArn(const char *value)
void SetDatasetArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector