AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetAttributesRequest.h
1
6#pragma once
7#include <aws/sdb/SimpleDB_EXPORTS.h>
8#include <aws/sdb/SimpleDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SimpleDB
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SIMPLEDB_API GetAttributesRequest() = 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 "GetAttributes"; }
32
33 AWS_SIMPLEDB_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetDomainName() const { return m_domainName; }
45 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
46 template<typename DomainNameT = Aws::String>
47 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
48 template<typename DomainNameT = Aws::String>
49 GetAttributesRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetItemName() const { return m_itemName; }
57 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
58 template<typename ItemNameT = Aws::String>
59 void SetItemName(ItemNameT&& value) { m_itemNameHasBeenSet = true; m_itemName = std::forward<ItemNameT>(value); }
60 template<typename ItemNameT = Aws::String>
61 GetAttributesRequest& WithItemName(ItemNameT&& value) { SetItemName(std::forward<ItemNameT>(value)); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
69 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
70 template<typename AttributeNamesT = Aws::Vector<Aws::String>>
71 void SetAttributeNames(AttributeNamesT&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::forward<AttributeNamesT>(value); }
72 template<typename AttributeNamesT = Aws::Vector<Aws::String>>
73 GetAttributesRequest& WithAttributeNames(AttributeNamesT&& value) { SetAttributeNames(std::forward<AttributeNamesT>(value)); return *this;}
74 template<typename AttributeNamesT = Aws::String>
75 GetAttributesRequest& AddAttributeNames(AttributeNamesT&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value)); return *this; }
77
79
85 inline bool GetConsistentRead() const { return m_consistentRead; }
86 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
87 inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
88 inline GetAttributesRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
90 private:
91
92 Aws::String m_domainName;
93 bool m_domainNameHasBeenSet = false;
94
95 Aws::String m_itemName;
96 bool m_itemNameHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_attributeNames;
99 bool m_attributeNamesHasBeenSet = false;
100
101 bool m_consistentRead{false};
102 bool m_consistentReadHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SimpleDB
107} // namespace Aws
GetAttributesRequest & WithAttributeNames(AttributeNamesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetAttributeNames() const
GetAttributesRequest & WithConsistentRead(bool value)
GetAttributesRequest & AddAttributeNames(AttributeNamesT &&value)
AWS_SIMPLEDB_API GetAttributesRequest()=default
AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetAttributeNames(AttributeNamesT &&value)
GetAttributesRequest & WithDomainName(DomainNameT &&value)
AWS_SIMPLEDB_API Aws::String SerializePayload() const override
GetAttributesRequest & WithItemName(ItemNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector