AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchReadRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectoryRequest.h>
8#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
9#include <aws/clouddirectory/model/BatchReadOperation.h>
10#include <aws/clouddirectory/model/ConsistencyLevel.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudDirectory {
18namespace Model {
19
23 public:
24 AWS_CLOUDDIRECTORY_API BatchReadRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "BatchRead"; }
31
32 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
41 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
42 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
43 template <typename DirectoryArnT = Aws::String>
44 void SetDirectoryArn(DirectoryArnT&& value) {
45 m_directoryArnHasBeenSet = true;
46 m_directoryArn = std::forward<DirectoryArnT>(value);
47 }
48 template <typename DirectoryArnT = Aws::String>
49 BatchReadRequest& WithDirectoryArn(DirectoryArnT&& value) {
50 SetDirectoryArn(std::forward<DirectoryArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<BatchReadOperation>& GetOperations() const { return m_operations; }
60 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
61 template <typename OperationsT = Aws::Vector<BatchReadOperation>>
62 void SetOperations(OperationsT&& value) {
63 m_operationsHasBeenSet = true;
64 m_operations = std::forward<OperationsT>(value);
65 }
66 template <typename OperationsT = Aws::Vector<BatchReadOperation>>
67 BatchReadRequest& WithOperations(OperationsT&& value) {
68 SetOperations(std::forward<OperationsT>(value));
69 return *this;
70 }
71 template <typename OperationsT = BatchReadOperation>
72 BatchReadRequest& AddOperations(OperationsT&& value) {
73 m_operationsHasBeenSet = true;
74 m_operations.emplace_back(std::forward<OperationsT>(value));
75 return *this;
76 }
78
80
84 inline ConsistencyLevel GetConsistencyLevel() const { return m_consistencyLevel; }
85 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
87 m_consistencyLevelHasBeenSet = true;
88 m_consistencyLevel = value;
89 }
92 return *this;
93 }
95 private:
96 Aws::String m_directoryArn;
97
99
101 bool m_directoryArnHasBeenSet = false;
102 bool m_operationsHasBeenSet = false;
103 bool m_consistencyLevelHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace CloudDirectory
108} // namespace Aws
AWS_CLOUDDIRECTORY_API BatchReadRequest()=default
virtual const char * GetServiceRequestName() const override
BatchReadRequest & WithOperations(OperationsT &&value)
void SetConsistencyLevel(ConsistencyLevel value)
BatchReadRequest & WithConsistencyLevel(ConsistencyLevel value)
const Aws::Vector< BatchReadOperation > & GetOperations() const
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchReadRequest & WithDirectoryArn(DirectoryArnT &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
BatchReadRequest & AddOperations(OperationsT &&value)
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