AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
48 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
49 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
50 inline BatchReadRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
51 inline BatchReadRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
52 inline BatchReadRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
54
56
59 inline const Aws::Vector<BatchReadOperation>& GetOperations() const{ return m_operations; }
60 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
61 inline void SetOperations(const Aws::Vector<BatchReadOperation>& value) { m_operationsHasBeenSet = true; m_operations = value; }
62 inline void SetOperations(Aws::Vector<BatchReadOperation>&& value) { m_operationsHasBeenSet = true; m_operations = std::move(value); }
64 inline BatchReadRequest& WithOperations(Aws::Vector<BatchReadOperation>&& value) { SetOperations(std::move(value)); return *this;}
65 inline BatchReadRequest& AddOperations(const BatchReadOperation& value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
66 inline BatchReadRequest& AddOperations(BatchReadOperation&& value) { m_operationsHasBeenSet = true; m_operations.push_back(std::move(value)); return *this; }
68
70
74 inline const ConsistencyLevel& GetConsistencyLevel() const{ return m_consistencyLevel; }
75 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
76 inline void SetConsistencyLevel(const ConsistencyLevel& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = value; }
77 inline void SetConsistencyLevel(ConsistencyLevel&& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = std::move(value); }
78 inline BatchReadRequest& WithConsistencyLevel(const ConsistencyLevel& value) { SetConsistencyLevel(value); return *this;}
79 inline BatchReadRequest& WithConsistencyLevel(ConsistencyLevel&& value) { SetConsistencyLevel(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_directoryArn;
84 bool m_directoryArnHasBeenSet = false;
85
87 bool m_operationsHasBeenSet = false;
88
89 ConsistencyLevel m_consistencyLevel;
90 bool m_consistencyLevelHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CloudDirectory
95} // namespace Aws
BatchReadRequest & WithOperations(Aws::Vector< BatchReadOperation > &&value)
BatchReadRequest & WithConsistencyLevel(const ConsistencyLevel &value)
BatchReadRequest & WithDirectoryArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
BatchReadRequest & WithDirectoryArn(const char *value)
BatchReadRequest & AddOperations(BatchReadOperation &&value)
const Aws::Vector< BatchReadOperation > & GetOperations() const
void SetDirectoryArn(const Aws::String &value)
BatchReadRequest & AddOperations(const BatchReadOperation &value)
const ConsistencyLevel & GetConsistencyLevel() const
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchReadRequest & WithConsistencyLevel(ConsistencyLevel &&value)
void SetOperations(Aws::Vector< BatchReadOperation > &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
BatchReadRequest & WithDirectoryArn(Aws::String &&value)
void SetOperations(const Aws::Vector< BatchReadOperation > &value)
void SetConsistencyLevel(ConsistencyLevel &&value)
BatchReadRequest & WithOperations(const Aws::Vector< BatchReadOperation > &value)
void SetConsistencyLevel(const ConsistencyLevel &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