AWS SDK for C++

AWS SDK for C++ Version 1.11.779

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