AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
SyncConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/ConflictDetectionType.h>
9#include <aws/appsync/model/ConflictHandlerType.h>
10#include <aws/appsync/model/LambdaConflictHandlerConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppSync {
22namespace Model {
23
32 public:
33 AWS_APPSYNC_API SyncConfig() = default;
34 AWS_APPSYNC_API SyncConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPSYNC_API SyncConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline ConflictHandlerType GetConflictHandler() const { return m_conflictHandler; }
49 inline bool ConflictHandlerHasBeenSet() const { return m_conflictHandlerHasBeenSet; }
51 m_conflictHandlerHasBeenSet = true;
52 m_conflictHandler = value;
53 }
55 SetConflictHandler(value);
56 return *this;
57 }
59
61
67 inline ConflictDetectionType GetConflictDetection() const { return m_conflictDetection; }
68 inline bool ConflictDetectionHasBeenSet() const { return m_conflictDetectionHasBeenSet; }
70 m_conflictDetectionHasBeenSet = true;
71 m_conflictDetection = value;
72 }
75 return *this;
76 }
78
80
84 inline const LambdaConflictHandlerConfig& GetLambdaConflictHandlerConfig() const { return m_lambdaConflictHandlerConfig; }
85 inline bool LambdaConflictHandlerConfigHasBeenSet() const { return m_lambdaConflictHandlerConfigHasBeenSet; }
86 template <typename LambdaConflictHandlerConfigT = LambdaConflictHandlerConfig>
87 void SetLambdaConflictHandlerConfig(LambdaConflictHandlerConfigT&& value) {
88 m_lambdaConflictHandlerConfigHasBeenSet = true;
89 m_lambdaConflictHandlerConfig = std::forward<LambdaConflictHandlerConfigT>(value);
90 }
91 template <typename LambdaConflictHandlerConfigT = LambdaConflictHandlerConfig>
92 SyncConfig& WithLambdaConflictHandlerConfig(LambdaConflictHandlerConfigT&& value) {
93 SetLambdaConflictHandlerConfig(std::forward<LambdaConflictHandlerConfigT>(value));
94 return *this;
95 }
97 private:
99
101
102 LambdaConflictHandlerConfig m_lambdaConflictHandlerConfig;
103 bool m_conflictHandlerHasBeenSet = false;
104 bool m_conflictDetectionHasBeenSet = false;
105 bool m_lambdaConflictHandlerConfigHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace AppSync
110} // 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:50
bool ConflictDetectionHasBeenSet() const
Definition SyncConfig.h:68
ConflictHandlerType GetConflictHandler() const
Definition SyncConfig.h:48
SyncConfig & WithConflictHandler(ConflictHandlerType value)
Definition SyncConfig.h:54
SyncConfig & WithConflictDetection(ConflictDetectionType value)
Definition SyncConfig.h:73
bool ConflictHandlerHasBeenSet() const
Definition SyncConfig.h:49
bool LambdaConflictHandlerConfigHasBeenSet() const
Definition SyncConfig.h:85
SyncConfig & WithLambdaConflictHandlerConfig(LambdaConflictHandlerConfigT &&value)
Definition SyncConfig.h:92
AWS_APPSYNC_API SyncConfig(Aws::Utils::Json::JsonView jsonValue)
const LambdaConflictHandlerConfig & GetLambdaConflictHandlerConfig() const
Definition SyncConfig.h:84
AWS_APPSYNC_API SyncConfig()=default
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLambdaConflictHandlerConfig(LambdaConflictHandlerConfigT &&value)
Definition SyncConfig.h:87
Aws::Utils::Json::JsonValue JsonValue