AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
GetAttributesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sdb/SimpleDB_EXPORTS.h>
9#include <aws/sdb/model/Attribute.h>
10#include <aws/sdb/model/ResponseMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace SimpleDB {
24namespace Model {
26 public:
27 AWS_SIMPLEDB_API GetAttributesResult() = default;
30
32
35 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
36 template <typename AttributesT = Aws::Vector<Attribute>>
37 void SetAttributes(AttributesT&& value) {
38 m_attributesHasBeenSet = true;
39 m_attributes = std::forward<AttributesT>(value);
40 }
41 template <typename AttributesT = Aws::Vector<Attribute>>
42 GetAttributesResult& WithAttributes(AttributesT&& value) {
43 SetAttributes(std::forward<AttributesT>(value));
44 return *this;
45 }
46 template <typename AttributesT = Attribute>
47 GetAttributesResult& AddAttributes(AttributesT&& value) {
48 m_attributesHasBeenSet = true;
49 m_attributes.emplace_back(std::forward<AttributesT>(value));
50 return *this;
51 }
53
55
56 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
57 template <typename ResponseMetadataT = ResponseMetadata>
58 void SetResponseMetadata(ResponseMetadataT&& value) {
59 m_responseMetadataHasBeenSet = true;
60 m_responseMetadata = std::forward<ResponseMetadataT>(value);
61 }
62 template <typename ResponseMetadataT = ResponseMetadata>
63 GetAttributesResult& WithResponseMetadata(ResponseMetadataT&& value) {
64 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
65 return *this;
66 }
68 private:
69 Aws::Vector<Attribute> m_attributes;
70
71 ResponseMetadata m_responseMetadata;
72 bool m_attributesHasBeenSet = false;
73 bool m_responseMetadataHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace SimpleDB
78} // namespace Aws
void SetResponseMetadata(ResponseMetadataT &&value)
const ResponseMetadata & GetResponseMetadata() const
AWS_SIMPLEDB_API GetAttributesResult()=default
GetAttributesResult & AddAttributes(AttributesT &&value)
AWS_SIMPLEDB_API GetAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetAttributesResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_SIMPLEDB_API GetAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetAttributesResult & WithAttributes(AttributesT &&value)
const Aws::Vector< Attribute > & GetAttributes() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument