AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AdaptersConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/textract/Textract_EXPORTS.h>
9#include <aws/textract/model/Adapter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Textract {
21namespace Model {
22
30 public:
31 AWS_TEXTRACT_API AdaptersConfig() = default;
32 AWS_TEXTRACT_API AdaptersConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Adapter>& GetAdapters() const { return m_adapters; }
41 inline bool AdaptersHasBeenSet() const { return m_adaptersHasBeenSet; }
42 template <typename AdaptersT = Aws::Vector<Adapter>>
43 void SetAdapters(AdaptersT&& value) {
44 m_adaptersHasBeenSet = true;
45 m_adapters = std::forward<AdaptersT>(value);
46 }
47 template <typename AdaptersT = Aws::Vector<Adapter>>
48 AdaptersConfig& WithAdapters(AdaptersT&& value) {
49 SetAdapters(std::forward<AdaptersT>(value));
50 return *this;
51 }
52 template <typename AdaptersT = Adapter>
53 AdaptersConfig& AddAdapters(AdaptersT&& value) {
54 m_adaptersHasBeenSet = true;
55 m_adapters.emplace_back(std::forward<AdaptersT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<Adapter> m_adapters;
61 bool m_adaptersHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace Textract
66} // namespace Aws
AdaptersConfig & WithAdapters(AdaptersT &&value)
AWS_TEXTRACT_API AdaptersConfig()=default
const Aws::Vector< Adapter > & GetAdapters() const
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TEXTRACT_API AdaptersConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API AdaptersConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AdaptersConfig & AddAdapters(AdaptersT &&value)
void SetAdapters(AdaptersT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue