AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchReadRequest.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/ConsistencyLevel.h>
12#include <aws/clouddirectory/model/BatchReadOperation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudDirectory
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDDIRECTORY_API BatchReadRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "BatchRead"; }
34
35 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetDirectoryArn() const { return m_directoryArn; }
46 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
47 template<typename DirectoryArnT = Aws::String>
48 void SetDirectoryArn(DirectoryArnT&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::forward<DirectoryArnT>(value); }
49 template<typename DirectoryArnT = Aws::String>
50 BatchReadRequest& WithDirectoryArn(DirectoryArnT&& value) { SetDirectoryArn(std::forward<DirectoryArnT>(value)); return *this;}
52
54
57 inline const Aws::Vector<BatchReadOperation>& GetOperations() const { return m_operations; }
58 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
59 template<typename OperationsT = Aws::Vector<BatchReadOperation>>
60 void SetOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations = std::forward<OperationsT>(value); }
61 template<typename OperationsT = Aws::Vector<BatchReadOperation>>
62 BatchReadRequest& WithOperations(OperationsT&& value) { SetOperations(std::forward<OperationsT>(value)); return *this;}
63 template<typename OperationsT = BatchReadOperation>
64 BatchReadRequest& AddOperations(OperationsT&& value) { m_operationsHasBeenSet = true; m_operations.emplace_back(std::forward<OperationsT>(value)); return *this; }
66
68
72 inline ConsistencyLevel GetConsistencyLevel() const { return m_consistencyLevel; }
73 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
74 inline void SetConsistencyLevel(ConsistencyLevel value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = value; }
77 private:
78
79 Aws::String m_directoryArn;
80 bool m_directoryArnHasBeenSet = false;
81
83 bool m_operationsHasBeenSet = false;
84
86 bool m_consistencyLevelHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudDirectory
91} // 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