AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SyncConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/ConflictHandlerType.h>
9#include <aws/appsync/model/ConflictDetectionType.h>
10#include <aws/appsync/model/LambdaConflictHandlerConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppSync
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_APPSYNC_API SyncConfig() = default;
39 AWS_APPSYNC_API SyncConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPSYNC_API SyncConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
54 inline ConflictHandlerType GetConflictHandler() const { return m_conflictHandler; }
55 inline bool ConflictHandlerHasBeenSet() const { return m_conflictHandlerHasBeenSet; }
56 inline void SetConflictHandler(ConflictHandlerType value) { m_conflictHandlerHasBeenSet = true; m_conflictHandler = value; }
59
61
67 inline ConflictDetectionType GetConflictDetection() const { return m_conflictDetection; }
68 inline bool ConflictDetectionHasBeenSet() const { return m_conflictDetectionHasBeenSet; }
69 inline void SetConflictDetection(ConflictDetectionType value) { m_conflictDetectionHasBeenSet = true; m_conflictDetection = value; }
72
74
78 inline const LambdaConflictHandlerConfig& GetLambdaConflictHandlerConfig() const { return m_lambdaConflictHandlerConfig; }
79 inline bool LambdaConflictHandlerConfigHasBeenSet() const { return m_lambdaConflictHandlerConfigHasBeenSet; }
80 template<typename LambdaConflictHandlerConfigT = LambdaConflictHandlerConfig>
81 void SetLambdaConflictHandlerConfig(LambdaConflictHandlerConfigT&& value) { m_lambdaConflictHandlerConfigHasBeenSet = true; m_lambdaConflictHandlerConfig = std::forward<LambdaConflictHandlerConfigT>(value); }
82 template<typename LambdaConflictHandlerConfigT = LambdaConflictHandlerConfig>
83 SyncConfig& WithLambdaConflictHandlerConfig(LambdaConflictHandlerConfigT&& value) { SetLambdaConflictHandlerConfig(std::forward<LambdaConflictHandlerConfigT>(value)); return *this;}
85 private:
86
88 bool m_conflictHandlerHasBeenSet = false;
89
91 bool m_conflictDetectionHasBeenSet = false;
92
93 LambdaConflictHandlerConfig m_lambdaConflictHandlerConfig;
94 bool m_lambdaConflictHandlerConfigHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AppSync
99} // namespace Aws
AWS_APPSYNC_API SyncConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictDetectionType GetConflictDetection() const
Definition SyncConfig.h:67
void SetConflictDetection(ConflictDetectionType value)
Definition SyncConfig.h:69
void SetConflictHandler(ConflictHandlerType value)
Definition SyncConfig.h:56
bool ConflictDetectionHasBeenSet() const
Definition SyncConfig.h:68
ConflictHandlerType GetConflictHandler() const
Definition SyncConfig.h:54
SyncConfig & WithConflictHandler(ConflictHandlerType value)
Definition SyncConfig.h:57
SyncConfig & WithConflictDetection(ConflictDetectionType value)
Definition SyncConfig.h:70
bool ConflictHandlerHasBeenSet() const
Definition SyncConfig.h:55
bool LambdaConflictHandlerConfigHasBeenSet() const
Definition SyncConfig.h:79
SyncConfig & WithLambdaConflictHandlerConfig(LambdaConflictHandlerConfigT &&value)
Definition SyncConfig.h:83
AWS_APPSYNC_API SyncConfig(Aws::Utils::Json::JsonView jsonValue)
const LambdaConflictHandlerConfig & GetLambdaConflictHandlerConfig() const
Definition SyncConfig.h:78
AWS_APPSYNC_API SyncConfig()=default
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLambdaConflictHandlerConfig(LambdaConflictHandlerConfigT &&value)
Definition SyncConfig.h:81
Aws::Utils::Json::JsonValue JsonValue