AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
UpdateAdapterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/textract/TextractRequest.h>
9#include <aws/textract/Textract_EXPORTS.h>
10#include <aws/textract/model/AutoUpdate.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Textract {
16namespace Model {
17
21 public:
22 AWS_TEXTRACT_API UpdateAdapterRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateAdapter"; }
29
30 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetAdapterId() const { return m_adapterId; }
39 inline bool AdapterIdHasBeenSet() const { return m_adapterIdHasBeenSet; }
40 template <typename AdapterIdT = Aws::String>
41 void SetAdapterId(AdapterIdT&& value) {
42 m_adapterIdHasBeenSet = true;
43 m_adapterId = std::forward<AdapterIdT>(value);
44 }
45 template <typename AdapterIdT = Aws::String>
46 UpdateAdapterRequest& WithAdapterId(AdapterIdT&& value) {
47 SetAdapterId(std::forward<AdapterIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 UpdateAdapterRequest& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAdapterName() const { return m_adapterName; }
75 inline bool AdapterNameHasBeenSet() const { return m_adapterNameHasBeenSet; }
76 template <typename AdapterNameT = Aws::String>
77 void SetAdapterName(AdapterNameT&& value) {
78 m_adapterNameHasBeenSet = true;
79 m_adapterName = std::forward<AdapterNameT>(value);
80 }
81 template <typename AdapterNameT = Aws::String>
82 UpdateAdapterRequest& WithAdapterName(AdapterNameT&& value) {
83 SetAdapterName(std::forward<AdapterNameT>(value));
84 return *this;
85 }
87
89
92 inline AutoUpdate GetAutoUpdate() const { return m_autoUpdate; }
93 inline bool AutoUpdateHasBeenSet() const { return m_autoUpdateHasBeenSet; }
94 inline void SetAutoUpdate(AutoUpdate value) {
95 m_autoUpdateHasBeenSet = true;
96 m_autoUpdate = value;
97 }
99 SetAutoUpdate(value);
100 return *this;
101 }
103 private:
104 Aws::String m_adapterId;
105 bool m_adapterIdHasBeenSet = false;
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
110 Aws::String m_adapterName;
111 bool m_adapterNameHasBeenSet = false;
112
113 AutoUpdate m_autoUpdate{AutoUpdate::NOT_SET};
114 bool m_autoUpdateHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Textract
119} // namespace Aws
AWS_TEXTRACT_API UpdateAdapterRequest()=default
AWS_TEXTRACT_API Aws::String SerializePayload() const override
AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAdapterRequest & WithAutoUpdate(AutoUpdate value)
UpdateAdapterRequest & WithDescription(DescriptionT &&value)
UpdateAdapterRequest & WithAdapterName(AdapterNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAdapterRequest & WithAdapterId(AdapterIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String