AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchWriteRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/CloudDirectoryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/clouddirectory/model/BatchWriteOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudDirectory
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDDIRECTORY_API BatchWriteRequest() = default;
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 "BatchWrite"; }
33
34 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
45 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
46 template<typename DirectoryArnT = Aws::String>
47 void SetDirectoryArn(DirectoryArnT&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::forward<DirectoryArnT>(value); }
48 template<typename DirectoryArnT = Aws::String>
49 BatchWriteRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
51
53
56 inline const Aws::Vector<BatchWriteOperation>& GetOperations() const { return m_operations; }
57 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
58 template<typename OperationsT = Aws::Vector<BatchWriteOperation>>
59 void SetOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations = std::forward<OperationsT>(value); }
60 template<typename OperationsT = Aws::Vector<BatchWriteOperation>>
61 BatchWriteRequest& WithOperations(OperationsT&& value) { SetOperations(std::forward<OperationsT>(value)); return *this;}
62 template<typename OperationsT = BatchWriteOperation>
63 BatchWriteRequest& AddOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations.emplace_back(std::forward<OperationsT>(value)); return *this; }
65 private:
66
67 Aws::String m_directoryArn;
68 bool m_directoryArnHasBeenSet = false;
69
71 bool m_operationsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudDirectory
76} // 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