AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutItemsRequest.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/Item.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PersonalizeEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZEEVENTS_API PutItemsRequest();
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 "PutItems"; }
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 PutItemsRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
48 inline PutItemsRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
49 inline PutItemsRequest& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
51
53
56 inline const Aws::Vector<Item>& GetItems() const{ return m_items; }
57 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
58 inline void SetItems(const Aws::Vector<Item>& value) { m_itemsHasBeenSet = true; m_items = value; }
59 inline void SetItems(Aws::Vector<Item>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
60 inline PutItemsRequest& WithItems(const Aws::Vector<Item>& value) { SetItems(value); return *this;}
61 inline PutItemsRequest& WithItems(Aws::Vector<Item>&& value) { SetItems(std::move(value)); return *this;}
62 inline PutItemsRequest& AddItems(const Item& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
63 inline PutItemsRequest& AddItems(Item&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
65 private:
66
67 Aws::String m_datasetArn;
68 bool m_datasetArnHasBeenSet = false;
69
70 Aws::Vector<Item> m_items;
71 bool m_itemsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace PersonalizeEvents
76} // namespace Aws
void SetItems(Aws::Vector< Item > &&value)
PutItemsRequest & AddItems(const Item &value)
PutItemsRequest & WithDatasetArn(const char *value)
PutItemsRequest & WithItems(Aws::Vector< Item > &&value)
void SetItems(const Aws::Vector< Item > &value)
virtual const char * GetServiceRequestName() const override
AWS_PERSONALIZEEVENTS_API PutItemsRequest()
PutItemsRequest & AddItems(Item &&value)
const Aws::Vector< Item > & GetItems() const
void SetDatasetArn(const Aws::String &value)
PutItemsRequest & WithDatasetArn(const Aws::String &value)
PutItemsRequest & WithItems(const Aws::Vector< Item > &value)
AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override
PutItemsRequest & WithDatasetArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector