AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DynamodbDataSourceConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/DeltaSyncConfig.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 DynamodbDataSourceConfig() = default;
34 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTableName() const { return m_tableName; }
41 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
42 template <typename TableNameT = Aws::String>
43 void SetTableName(TableNameT&& value) {
44 m_tableNameHasBeenSet = true;
45 m_tableName = std::forward<TableNameT>(value);
46 }
47 template <typename TableNameT = Aws::String>
49 SetTableName(std::forward<TableNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
59 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
60 template <typename AwsRegionT = Aws::String>
61 void SetAwsRegion(AwsRegionT&& value) {
62 m_awsRegionHasBeenSet = true;
63 m_awsRegion = std::forward<AwsRegionT>(value);
64 }
65 template <typename AwsRegionT = Aws::String>
67 SetAwsRegion(std::forward<AwsRegionT>(value));
68 return *this;
69 }
71
73
76 inline bool GetUseCallerCredentials() const { return m_useCallerCredentials; }
77 inline bool UseCallerCredentialsHasBeenSet() const { return m_useCallerCredentialsHasBeenSet; }
78 inline void SetUseCallerCredentials(bool value) {
79 m_useCallerCredentialsHasBeenSet = true;
80 m_useCallerCredentials = value;
81 }
84 return *this;
85 }
87
89
92 inline const DeltaSyncConfig& GetDeltaSyncConfig() const { return m_deltaSyncConfig; }
93 inline bool DeltaSyncConfigHasBeenSet() const { return m_deltaSyncConfigHasBeenSet; }
94 template <typename DeltaSyncConfigT = DeltaSyncConfig>
95 void SetDeltaSyncConfig(DeltaSyncConfigT&& value) {
96 m_deltaSyncConfigHasBeenSet = true;
97 m_deltaSyncConfig = std::forward<DeltaSyncConfigT>(value);
98 }
99 template <typename DeltaSyncConfigT = DeltaSyncConfig>
101 SetDeltaSyncConfig(std::forward<DeltaSyncConfigT>(value));
102 return *this;
103 }
105
107
111 inline bool GetVersioned() const { return m_versioned; }
112 inline bool VersionedHasBeenSet() const { return m_versionedHasBeenSet; }
113 inline void SetVersioned(bool value) {
114 m_versionedHasBeenSet = true;
115 m_versioned = value;
116 }
118 SetVersioned(value);
119 return *this;
120 }
122 private:
123 Aws::String m_tableName;
124
125 Aws::String m_awsRegion;
126
127 bool m_useCallerCredentials{false};
128
129 DeltaSyncConfig m_deltaSyncConfig;
130
131 bool m_versioned{false};
132 bool m_tableNameHasBeenSet = false;
133 bool m_awsRegionHasBeenSet = false;
134 bool m_useCallerCredentialsHasBeenSet = false;
135 bool m_deltaSyncConfigHasBeenSet = false;
136 bool m_versionedHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace AppSync
141} // namespace Aws
DynamodbDataSourceConfig & WithTableName(TableNameT &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
DynamodbDataSourceConfig & WithDeltaSyncConfig(DeltaSyncConfigT &&value)
AWS_APPSYNC_API DynamodbDataSourceConfig(Aws::Utils::Json::JsonView jsonValue)
DynamodbDataSourceConfig & WithUseCallerCredentials(bool value)
AWS_APPSYNC_API DynamodbDataSourceConfig()=default
DynamodbDataSourceConfig & WithAwsRegion(AwsRegionT &&value)
AWS_APPSYNC_API DynamodbDataSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
DynamodbDataSourceConfig & WithVersioned(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue