AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
GetDocumentContentRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/OutputFormat.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace QBusiness
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QBUSINESS_API GetDocumentContentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetDocumentContent"; }
36
37 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
38
39 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
48 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
49 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
50 template<typename ApplicationIdT = Aws::String>
51 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
52 template<typename ApplicationIdT = Aws::String>
53 GetDocumentContentRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetIndexId() const { return m_indexId; }
61 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
62 template<typename IndexIdT = Aws::String>
63 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
64 template<typename IndexIdT = Aws::String>
65 GetDocumentContentRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
67
69
75 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
76 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
77 template<typename DataSourceIdT = Aws::String>
78 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
79 template<typename DataSourceIdT = Aws::String>
80 GetDocumentContentRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
82
84
89 inline const Aws::String& GetDocumentId() const { return m_documentId; }
90 inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
91 template<typename DocumentIdT = Aws::String>
92 void SetDocumentId(DocumentIdT&& value) { m_documentIdHasBeenSet = true; m_documentId = std::forward<DocumentIdT>(value); }
93 template<typename DocumentIdT = Aws::String>
94 GetDocumentContentRequest& WithDocumentId(DocumentIdT&& value) { SetDocumentId(std::forward<DocumentIdT>(value)); return *this;}
96
98
101 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
102 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
103 inline void SetOutputFormat(OutputFormat value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
106 private:
107
108 Aws::String m_applicationId;
109 bool m_applicationIdHasBeenSet = false;
110
111 Aws::String m_indexId;
112 bool m_indexIdHasBeenSet = false;
113
114 Aws::String m_dataSourceId;
115 bool m_dataSourceIdHasBeenSet = false;
116
117 Aws::String m_documentId;
118 bool m_documentIdHasBeenSet = false;
119
120 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
121 bool m_outputFormatHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace QBusiness
126} // namespace Aws
GetDocumentContentRequest & WithApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetDocumentContentRequest & WithOutputFormat(OutputFormat value)
AWS_QBUSINESS_API GetDocumentContentRequest()=default
virtual const char * GetServiceRequestName() const override
GetDocumentContentRequest & WithIndexId(IndexIdT &&value)
GetDocumentContentRequest & WithDocumentId(DocumentIdT &&value)
GetDocumentContentRequest & WithDataSourceId(DataSourceIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String