AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
IndexDocumentsResult.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/cloudsearch/model/ResponseMetadata.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 CloudSearch {
25namespace Model {
34 public:
35 AWS_CLOUDSEARCH_API IndexDocumentsResult() = default;
38
40
43 inline const Aws::Vector<Aws::String>& GetFieldNames() const { return m_fieldNames; }
44 template <typename FieldNamesT = Aws::Vector<Aws::String>>
45 void SetFieldNames(FieldNamesT&& value) {
46 m_fieldNamesHasBeenSet = true;
47 m_fieldNames = std::forward<FieldNamesT>(value);
48 }
49 template <typename FieldNamesT = Aws::Vector<Aws::String>>
50 IndexDocumentsResult& WithFieldNames(FieldNamesT&& value) {
51 SetFieldNames(std::forward<FieldNamesT>(value));
52 return *this;
53 }
54 template <typename FieldNamesT = Aws::String>
55 IndexDocumentsResult& AddFieldNames(FieldNamesT&& value) {
56 m_fieldNamesHasBeenSet = true;
57 m_fieldNames.emplace_back(std::forward<FieldNamesT>(value));
58 return *this;
59 }
61
63
64 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
65 template <typename ResponseMetadataT = ResponseMetadata>
66 void SetResponseMetadata(ResponseMetadataT&& value) {
67 m_responseMetadataHasBeenSet = true;
68 m_responseMetadata = std::forward<ResponseMetadataT>(value);
69 }
70 template <typename ResponseMetadataT = ResponseMetadata>
71 IndexDocumentsResult& WithResponseMetadata(ResponseMetadataT&& value) {
72 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
73 return *this;
74 }
76 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
77
78 private:
79 Aws::Vector<Aws::String> m_fieldNames;
80
81 ResponseMetadata m_responseMetadata;
82 Aws::Http::HttpResponseCode m_HttpResponseCode;
83 bool m_fieldNamesHasBeenSet = false;
84 bool m_responseMetadataHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace CloudSearch
89} // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
AWS_CLOUDSEARCH_API IndexDocumentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
IndexDocumentsResult & AddFieldNames(FieldNamesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
IndexDocumentsResult & WithResponseMetadata(ResponseMetadataT &&value)
IndexDocumentsResult & WithFieldNames(FieldNamesT &&value)
AWS_CLOUDSEARCH_API IndexDocumentsResult()=default
const Aws::Vector< Aws::String > & GetFieldNames() const
AWS_CLOUDSEARCH_API IndexDocumentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument