AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchWriteRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/BatchWriteOperation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudDirectory {
17namespace Model {
18
22 public:
23 AWS_CLOUDDIRECTORY_API BatchWriteRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchWrite"; }
30
31 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
41 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
42 template <typename DirectoryArnT = Aws::String>
43 void SetDirectoryArn(DirectoryArnT&& value) {
44 m_directoryArnHasBeenSet = true;
45 m_directoryArn = std::forward<DirectoryArnT>(value);
46 }
47 template <typename DirectoryArnT = Aws::String>
48 BatchWriteRequest& WithDirectoryArn(DirectoryArnT&& value) {
49 SetDirectoryArn(std::forward<DirectoryArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<BatchWriteOperation>& GetOperations() const { return m_operations; }
59 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
60 template <typename OperationsT = Aws::Vector<BatchWriteOperation>>
61 void SetOperations(OperationsT&& value) {
62 m_operationsHasBeenSet = true;
63 m_operations = std::forward<OperationsT>(value);
64 }
65 template <typename OperationsT = Aws::Vector<BatchWriteOperation>>
66 BatchWriteRequest& WithOperations(OperationsT&& value) {
67 SetOperations(std::forward<OperationsT>(value));
68 return *this;
69 }
70 template <typename OperationsT = BatchWriteOperation>
71 BatchWriteRequest& AddOperations(OperationsT&& value) {
72 m_operationsHasBeenSet = true;
73 m_operations.emplace_back(std::forward<OperationsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_directoryArn;
79
81 bool m_directoryArnHasBeenSet = false;
82 bool m_operationsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CloudDirectory
87} // namespace Aws
AWS_CLOUDDIRECTORY_API BatchWriteRequest()=default
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchWriteRequest & AddOperations(OperationsT &&value)
BatchWriteRequest & WithOperations(OperationsT &&value)
BatchWriteRequest & WithDirectoryArn(DirectoryArnT &&value)
const Aws::Vector< BatchWriteOperation > & GetOperations() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector