AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WriteRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/PutRequest.h>
9#include <aws/dynamodb/model/DeleteRequest.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_DYNAMODB_API WriteRequest();
40 AWS_DYNAMODB_API WriteRequest(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const PutRequest& GetPutRequest() const{ return m_putRequest; }
50 inline bool PutRequestHasBeenSet() const { return m_putRequestHasBeenSet; }
51 inline void SetPutRequest(const PutRequest& value) { m_putRequestHasBeenSet = true; m_putRequest = value; }
52 inline void SetPutRequest(PutRequest&& value) { m_putRequestHasBeenSet = true; m_putRequest = std::move(value); }
53 inline WriteRequest& WithPutRequest(const PutRequest& value) { SetPutRequest(value); return *this;}
54 inline WriteRequest& WithPutRequest(PutRequest&& value) { SetPutRequest(std::move(value)); return *this;}
56
58
61 inline const DeleteRequest& GetDeleteRequest() const{ return m_deleteRequest; }
62 inline bool DeleteRequestHasBeenSet() const { return m_deleteRequestHasBeenSet; }
63 inline void SetDeleteRequest(const DeleteRequest& value) { m_deleteRequestHasBeenSet = true; m_deleteRequest = value; }
64 inline void SetDeleteRequest(DeleteRequest&& value) { m_deleteRequestHasBeenSet = true; m_deleteRequest = std::move(value); }
65 inline WriteRequest& WithDeleteRequest(const DeleteRequest& value) { SetDeleteRequest(value); return *this;}
66 inline WriteRequest& WithDeleteRequest(DeleteRequest&& value) { SetDeleteRequest(std::move(value)); return *this;}
68 private:
69
70 PutRequest m_putRequest;
71 bool m_putRequestHasBeenSet = false;
72
73 DeleteRequest m_deleteRequest;
74 bool m_deleteRequestHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace DynamoDB
79} // namespace Aws
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
WriteRequest & WithDeleteRequest(DeleteRequest &&value)
WriteRequest & WithDeleteRequest(const DeleteRequest &value)
AWS_DYNAMODB_API WriteRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPutRequest(const PutRequest &value)
void SetDeleteRequest(DeleteRequest &&value)
void SetDeleteRequest(const DeleteRequest &value)
const DeleteRequest & GetDeleteRequest() const
WriteRequest & WithPutRequest(const PutRequest &value)
AWS_DYNAMODB_API WriteRequest(Aws::Utils::Json::JsonView jsonValue)
void SetPutRequest(PutRequest &&value)
const PutRequest & GetPutRequest() const
WriteRequest & WithPutRequest(PutRequest &&value)
Aws::Utils::Json::JsonValue JsonValue