AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetBlockRequest.h
1
6#pragma once
7#include <aws/qldb/QLDB_EXPORTS.h>
8#include <aws/qldb/QLDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qldb/model/ValueHolder.h>
11#include <utility>
12
13namespace Aws
14{
15namespace QLDB
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_QLDB_API GetBlockRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetBlock"; }
32
33 AWS_QLDB_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const{ return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
43 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
44 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
45 inline GetBlockRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
46 inline GetBlockRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
47 inline GetBlockRequest& WithName(const char* value) { SetName(value); return *this;}
49
51
57 inline const ValueHolder& GetBlockAddress() const{ return m_blockAddress; }
58 inline bool BlockAddressHasBeenSet() const { return m_blockAddressHasBeenSet; }
59 inline void SetBlockAddress(const ValueHolder& value) { m_blockAddressHasBeenSet = true; m_blockAddress = value; }
60 inline void SetBlockAddress(ValueHolder&& value) { m_blockAddressHasBeenSet = true; m_blockAddress = std::move(value); }
61 inline GetBlockRequest& WithBlockAddress(const ValueHolder& value) { SetBlockAddress(value); return *this;}
62 inline GetBlockRequest& WithBlockAddress(ValueHolder&& value) { SetBlockAddress(std::move(value)); return *this;}
64
66
72 inline const ValueHolder& GetDigestTipAddress() const{ return m_digestTipAddress; }
73 inline bool DigestTipAddressHasBeenSet() const { return m_digestTipAddressHasBeenSet; }
74 inline void SetDigestTipAddress(const ValueHolder& value) { m_digestTipAddressHasBeenSet = true; m_digestTipAddress = value; }
75 inline void SetDigestTipAddress(ValueHolder&& value) { m_digestTipAddressHasBeenSet = true; m_digestTipAddress = std::move(value); }
76 inline GetBlockRequest& WithDigestTipAddress(const ValueHolder& value) { SetDigestTipAddress(value); return *this;}
77 inline GetBlockRequest& WithDigestTipAddress(ValueHolder&& value) { SetDigestTipAddress(std::move(value)); return *this;}
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 ValueHolder m_blockAddress;
85 bool m_blockAddressHasBeenSet = false;
86
87 ValueHolder m_digestTipAddress;
88 bool m_digestTipAddressHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace QLDB
93} // namespace Aws
void SetBlockAddress(ValueHolder &&value)
GetBlockRequest & WithDigestTipAddress(ValueHolder &&value)
GetBlockRequest & WithBlockAddress(const ValueHolder &value)
const ValueHolder & GetBlockAddress() const
const ValueHolder & GetDigestTipAddress() const
void SetName(const char *value)
GetBlockRequest & WithName(const Aws::String &value)
void SetDigestTipAddress(const ValueHolder &value)
void SetBlockAddress(const ValueHolder &value)
void SetName(const Aws::String &value)
const Aws::String & GetName() const
AWS_QLDB_API Aws::String SerializePayload() const override
void SetName(Aws::String &&value)
GetBlockRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
GetBlockRequest & WithBlockAddress(ValueHolder &&value)
GetBlockRequest & WithName(Aws::String &&value)
void SetDigestTipAddress(ValueHolder &&value)
GetBlockRequest & WithDigestTipAddress(const ValueHolder &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String