AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
47 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
48 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
49 inline BatchWriteRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
50 inline BatchWriteRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
51 inline BatchWriteRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
53
55
58 inline const Aws::Vector<BatchWriteOperation>& GetOperations() const{ return m_operations; }
59 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
60 inline void SetOperations(const Aws::Vector<BatchWriteOperation>& value) { m_operationsHasBeenSet = true; m_operations = value; }
61 inline void SetOperations(Aws::Vector<BatchWriteOperation>&& value) { m_operationsHasBeenSet = true; m_operations = std::move(value); }
63 inline BatchWriteRequest& WithOperations(Aws::Vector<BatchWriteOperation>&& value) { SetOperations(std::move(value)); return *this;}
64 inline BatchWriteRequest& AddOperations(const BatchWriteOperation& value) { m_operationsHasBeenSet = true; m_operations.push_back(value); return *this; }
65 inline BatchWriteRequest& AddOperations(BatchWriteOperation&& value) { m_operationsHasBeenSet = true; m_operations.push_back(std::move(value)); return *this; }
67 private:
68
69 Aws::String m_directoryArn;
70 bool m_directoryArnHasBeenSet = false;
71
73 bool m_operationsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudDirectory
78} // namespace Aws
BatchWriteRequest & WithOperations(Aws::Vector< BatchWriteOperation > &&value)
BatchWriteRequest & AddOperations(const BatchWriteOperation &value)
BatchWriteRequest & WithOperations(const Aws::Vector< BatchWriteOperation > &value)
BatchWriteRequest & AddOperations(BatchWriteOperation &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchWriteRequest & WithDirectoryArn(Aws::String &&value)
void SetOperations(const Aws::Vector< BatchWriteOperation > &value)
void SetDirectoryArn(const Aws::String &value)
BatchWriteRequest & WithDirectoryArn(const char *value)
void SetOperations(Aws::Vector< BatchWriteOperation > &&value)
BatchWriteRequest & WithDirectoryArn(const Aws::String &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