AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Integration.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/LambdaConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
30 public:
31 AWS_APPSYNC_API Integration() = default;
32 AWS_APPSYNC_API Integration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
41 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
42 template <typename DataSourceNameT = Aws::String>
43 void SetDataSourceName(DataSourceNameT&& value) {
44 m_dataSourceNameHasBeenSet = true;
45 m_dataSourceName = std::forward<DataSourceNameT>(value);
46 }
47 template <typename DataSourceNameT = Aws::String>
48 Integration& WithDataSourceName(DataSourceNameT&& value) {
49 SetDataSourceName(std::forward<DataSourceNameT>(value));
50 return *this;
51 }
53
55
58 inline const LambdaConfig& GetLambdaConfig() const { return m_lambdaConfig; }
59 inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; }
60 template <typename LambdaConfigT = LambdaConfig>
61 void SetLambdaConfig(LambdaConfigT&& value) {
62 m_lambdaConfigHasBeenSet = true;
63 m_lambdaConfig = std::forward<LambdaConfigT>(value);
64 }
65 template <typename LambdaConfigT = LambdaConfig>
66 Integration& WithLambdaConfig(LambdaConfigT&& value) {
67 SetLambdaConfig(std::forward<LambdaConfigT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_dataSourceName;
73
74 LambdaConfig m_lambdaConfig;
75 bool m_dataSourceNameHasBeenSet = false;
76 bool m_lambdaConfigHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AppSync
81} // namespace Aws
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDataSourceName() const
Definition Integration.h:40
AWS_APPSYNC_API Integration()=default
const LambdaConfig & GetLambdaConfig() const
Definition Integration.h:58
AWS_APPSYNC_API Integration & operator=(Aws::Utils::Json::JsonView jsonValue)
Integration & WithLambdaConfig(LambdaConfigT &&value)
Definition Integration.h:66
AWS_APPSYNC_API Integration(Aws::Utils::Json::JsonView jsonValue)
void SetLambdaConfig(LambdaConfigT &&value)
Definition Integration.h:61
void SetDataSourceName(DataSourceNameT &&value)
Definition Integration.h:43
Integration & WithDataSourceName(DataSourceNameT &&value)
Definition Integration.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue