AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename NameT = Aws::String>
43 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
44 template<typename NameT = Aws::String>
45 GetBlockRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
47
49
55 inline const ValueHolder& GetBlockAddress() const { return m_blockAddress; }
56 inline bool BlockAddressHasBeenSet() const { return m_blockAddressHasBeenSet; }
57 template<typename BlockAddressT = ValueHolder>
58 void SetBlockAddress(BlockAddressT&& value) { m_blockAddressHasBeenSet = true; m_blockAddress = std::forward<BlockAddressT>(value); }
59 template<typename BlockAddressT = ValueHolder>
60 GetBlockRequest& WithBlockAddress(BlockAddressT&& value) { SetBlockAddress(std::forward<BlockAddressT>(value)); return *this;}
62
64
70 inline const ValueHolder& GetDigestTipAddress() const { return m_digestTipAddress; }
71 inline bool DigestTipAddressHasBeenSet() const { return m_digestTipAddressHasBeenSet; }
72 template<typename DigestTipAddressT = ValueHolder>
73 void SetDigestTipAddress(DigestTipAddressT&& value) { m_digestTipAddressHasBeenSet = true; m_digestTipAddress = std::forward<DigestTipAddressT>(value); }
74 template<typename DigestTipAddressT = ValueHolder>
75 GetBlockRequest& WithDigestTipAddress(DigestTipAddressT&& value) { SetDigestTipAddress(std::forward<DigestTipAddressT>(value)); return *this;}
77 private:
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
82 ValueHolder m_blockAddress;
83 bool m_blockAddressHasBeenSet = false;
84
85 ValueHolder m_digestTipAddress;
86 bool m_digestTipAddressHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace QLDB
91} // namespace Aws
GetBlockRequest & WithDigestTipAddress(DigestTipAddressT &&value)
void SetBlockAddress(BlockAddressT &&value)
GetBlockRequest & WithBlockAddress(BlockAddressT &&value)
const ValueHolder & GetBlockAddress() const
const ValueHolder & GetDigestTipAddress() const
void SetDigestTipAddress(DigestTipAddressT &&value)
const Aws::String & GetName() const
AWS_QLDB_API Aws::String SerializePayload() const override
GetBlockRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_QLDB_API GetBlockRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String