AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DynamodbDataSourceConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/DeltaSyncConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPSYNC_API DynamodbDataSourceConfig() = default;
39 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetTableName() const { return m_tableName; }
47 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
48 template<typename TableNameT = Aws::String>
49 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
50 template<typename TableNameT = Aws::String>
51 DynamodbDataSourceConfig& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
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) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
62 template<typename AwsRegionT = Aws::String>
63 DynamodbDataSourceConfig& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
65
67
70 inline bool GetUseCallerCredentials() const { return m_useCallerCredentials; }
71 inline bool UseCallerCredentialsHasBeenSet() const { return m_useCallerCredentialsHasBeenSet; }
72 inline void SetUseCallerCredentials(bool value) { m_useCallerCredentialsHasBeenSet = true; m_useCallerCredentials = value; }
75
77
80 inline const DeltaSyncConfig& GetDeltaSyncConfig() const { return m_deltaSyncConfig; }
81 inline bool DeltaSyncConfigHasBeenSet() const { return m_deltaSyncConfigHasBeenSet; }
82 template<typename DeltaSyncConfigT = DeltaSyncConfig>
83 void SetDeltaSyncConfig(DeltaSyncConfigT&& value) { m_deltaSyncConfigHasBeenSet = true; m_deltaSyncConfig = std::forward<DeltaSyncConfigT>(value); }
84 template<typename DeltaSyncConfigT = DeltaSyncConfig>
85 DynamodbDataSourceConfig& WithDeltaSyncConfig(DeltaSyncConfigT&& value) { SetDeltaSyncConfig(std::forward<DeltaSyncConfigT>(value)); return *this;}
87
89
93 inline bool GetVersioned() const { return m_versioned; }
94 inline bool VersionedHasBeenSet() const { return m_versionedHasBeenSet; }
95 inline void SetVersioned(bool value) { m_versionedHasBeenSet = true; m_versioned = value; }
96 inline DynamodbDataSourceConfig& WithVersioned(bool value) { SetVersioned(value); return *this;}
98 private:
99
100 Aws::String m_tableName;
101 bool m_tableNameHasBeenSet = false;
102
103 Aws::String m_awsRegion;
104 bool m_awsRegionHasBeenSet = false;
105
106 bool m_useCallerCredentials{false};
107 bool m_useCallerCredentialsHasBeenSet = false;
108
109 DeltaSyncConfig m_deltaSyncConfig;
110 bool m_deltaSyncConfigHasBeenSet = false;
111
112 bool m_versioned{false};
113 bool m_versionedHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace AppSync
118} // 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