AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
MappingParameters.h
1
6#pragma once
7#include <aws/kinesisanalyticsv2/KinesisAnalyticsV2_EXPORTS.h>
8#include <aws/kinesisanalyticsv2/model/CSVMappingParameters.h>
9#include <aws/kinesisanalyticsv2/model/JSONMappingParameters.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace KinesisAnalyticsV2 {
21namespace Model {
22
33 public:
34 AWS_KINESISANALYTICSV2_API MappingParameters() = default;
35 AWS_KINESISANALYTICSV2_API MappingParameters(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KINESISANALYTICSV2_API MappingParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KINESISANALYTICSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const JSONMappingParameters& GetJSONMappingParameters() const { return m_jSONMappingParameters; }
45 inline bool JSONMappingParametersHasBeenSet() const { return m_jSONMappingParametersHasBeenSet; }
46 template <typename JSONMappingParametersT = JSONMappingParameters>
47 void SetJSONMappingParameters(JSONMappingParametersT&& value) {
48 m_jSONMappingParametersHasBeenSet = true;
49 m_jSONMappingParameters = std::forward<JSONMappingParametersT>(value);
50 }
51 template <typename JSONMappingParametersT = JSONMappingParameters>
52 MappingParameters& WithJSONMappingParameters(JSONMappingParametersT&& value) {
53 SetJSONMappingParameters(std::forward<JSONMappingParametersT>(value));
54 return *this;
55 }
57
59
63 inline const CSVMappingParameters& GetCSVMappingParameters() const { return m_cSVMappingParameters; }
64 inline bool CSVMappingParametersHasBeenSet() const { return m_cSVMappingParametersHasBeenSet; }
65 template <typename CSVMappingParametersT = CSVMappingParameters>
66 void SetCSVMappingParameters(CSVMappingParametersT&& value) {
67 m_cSVMappingParametersHasBeenSet = true;
68 m_cSVMappingParameters = std::forward<CSVMappingParametersT>(value);
69 }
70 template <typename CSVMappingParametersT = CSVMappingParameters>
71 MappingParameters& WithCSVMappingParameters(CSVMappingParametersT&& value) {
72 SetCSVMappingParameters(std::forward<CSVMappingParametersT>(value));
73 return *this;
74 }
76 private:
77 JSONMappingParameters m_jSONMappingParameters;
78
79 CSVMappingParameters m_cSVMappingParameters;
80 bool m_jSONMappingParametersHasBeenSet = false;
81 bool m_cSVMappingParametersHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace KinesisAnalyticsV2
86} // namespace Aws
AWS_KINESISANALYTICSV2_API MappingParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
MappingParameters & WithJSONMappingParameters(JSONMappingParametersT &&value)
const CSVMappingParameters & GetCSVMappingParameters() const
const JSONMappingParameters & GetJSONMappingParameters() const
MappingParameters & WithCSVMappingParameters(CSVMappingParametersT &&value)
AWS_KINESISANALYTICSV2_API MappingParameters()=default
AWS_KINESISANALYTICSV2_API MappingParameters(Aws::Utils::Json::JsonView jsonValue)
void SetJSONMappingParameters(JSONMappingParametersT &&value)
void SetCSVMappingParameters(CSVMappingParametersT &&value)
AWS_KINESISANALYTICSV2_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue