AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TestParsingRequest.h
1
6#pragma once
7#include <aws/b2bi/B2BIRequest.h>
8#include <aws/b2bi/B2BI_EXPORTS.h>
9#include <aws/b2bi/model/AdvancedOptions.h>
10#include <aws/b2bi/model/EdiType.h>
11#include <aws/b2bi/model/FileFormat.h>
12#include <aws/b2bi/model/S3Location.h>
13
14#include <utility>
15
16namespace Aws {
17namespace B2BI {
18namespace Model {
19
23 public:
24 AWS_B2BI_API TestParsingRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "TestParsing"; }
31
32 AWS_B2BI_API Aws::String SerializePayload() const override;
33
35
37
41 inline const S3Location& GetInputFile() const { return m_inputFile; }
42 inline bool InputFileHasBeenSet() const { return m_inputFileHasBeenSet; }
43 template <typename InputFileT = S3Location>
44 void SetInputFile(InputFileT&& value) {
45 m_inputFileHasBeenSet = true;
46 m_inputFile = std::forward<InputFileT>(value);
47 }
48 template <typename InputFileT = S3Location>
49 TestParsingRequest& WithInputFile(InputFileT&& value) {
50 SetInputFile(std::forward<InputFileT>(value));
51 return *this;
52 }
54
56
60 inline FileFormat GetFileFormat() const { return m_fileFormat; }
61 inline bool FileFormatHasBeenSet() const { return m_fileFormatHasBeenSet; }
62 inline void SetFileFormat(FileFormat value) {
63 m_fileFormatHasBeenSet = true;
64 m_fileFormat = value;
65 }
67 SetFileFormat(value);
68 return *this;
69 }
71
73
78 inline const EdiType& GetEdiType() const { return m_ediType; }
79 inline bool EdiTypeHasBeenSet() const { return m_ediTypeHasBeenSet; }
80 template <typename EdiTypeT = EdiType>
81 void SetEdiType(EdiTypeT&& value) {
82 m_ediTypeHasBeenSet = true;
83 m_ediType = std::forward<EdiTypeT>(value);
84 }
85 template <typename EdiTypeT = EdiType>
86 TestParsingRequest& WithEdiType(EdiTypeT&& value) {
87 SetEdiType(std::forward<EdiTypeT>(value));
88 return *this;
89 }
91
93
98 inline const AdvancedOptions& GetAdvancedOptions() const { return m_advancedOptions; }
99 inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; }
100 template <typename AdvancedOptionsT = AdvancedOptions>
101 void SetAdvancedOptions(AdvancedOptionsT&& value) {
102 m_advancedOptionsHasBeenSet = true;
103 m_advancedOptions = std::forward<AdvancedOptionsT>(value);
104 }
105 template <typename AdvancedOptionsT = AdvancedOptions>
106 TestParsingRequest& WithAdvancedOptions(AdvancedOptionsT&& value) {
107 SetAdvancedOptions(std::forward<AdvancedOptionsT>(value));
108 return *this;
109 }
111 private:
112 S3Location m_inputFile;
113
114 FileFormat m_fileFormat{FileFormat::NOT_SET};
115
116 EdiType m_ediType;
117
118 AdvancedOptions m_advancedOptions;
119 bool m_inputFileHasBeenSet = false;
120 bool m_fileFormatHasBeenSet = false;
121 bool m_ediTypeHasBeenSet = false;
122 bool m_advancedOptionsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace B2BI
127} // namespace Aws
virtual const char * GetServiceRequestName() const override
const AdvancedOptions & GetAdvancedOptions() const
TestParsingRequest & WithFileFormat(FileFormat value)
TestParsingRequest & WithInputFile(InputFileT &&value)
AWS_B2BI_API Aws::String SerializePayload() const override
AWS_B2BI_API TestParsingRequest()=default
TestParsingRequest & WithAdvancedOptions(AdvancedOptionsT &&value)
const S3Location & GetInputFile() const
void SetAdvancedOptions(AdvancedOptionsT &&value)
TestParsingRequest & WithEdiType(EdiTypeT &&value)
AWS_B2BI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String