AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ConflictHandlerType& GetConflictHandler() const{ return m_conflictHandler; }
55 inline bool ConflictHandlerHasBeenSet() const { return m_conflictHandlerHasBeenSet; }
56 inline void SetConflictHandler(const ConflictHandlerType& value) { m_conflictHandlerHasBeenSet = true; m_conflictHandler = value; }
57 inline void SetConflictHandler(ConflictHandlerType&& value) { m_conflictHandlerHasBeenSet = true; m_conflictHandler = std::move(value); }
58 inline SyncConfig& WithConflictHandler(const ConflictHandlerType& value) { SetConflictHandler(value); return *this;}
59 inline SyncConfig& WithConflictHandler(ConflictHandlerType&& value) { SetConflictHandler(std::move(value)); return *this;}
61
63
69 inline const ConflictDetectionType& GetConflictDetection() const{ return m_conflictDetection; }
70 inline bool ConflictDetectionHasBeenSet() const { return m_conflictDetectionHasBeenSet; }
71 inline void SetConflictDetection(const ConflictDetectionType& value) { m_conflictDetectionHasBeenSet = true; m_conflictDetection = value; }
72 inline void SetConflictDetection(ConflictDetectionType&& value) { m_conflictDetectionHasBeenSet = true; m_conflictDetection = std::move(value); }
73 inline SyncConfig& WithConflictDetection(const ConflictDetectionType& value) { SetConflictDetection(value); return *this;}
74 inline SyncConfig& WithConflictDetection(ConflictDetectionType&& value) { SetConflictDetection(std::move(value)); return *this;}
76
78
82 inline const LambdaConflictHandlerConfig& GetLambdaConflictHandlerConfig() const{ return m_lambdaConflictHandlerConfig; }
83 inline bool LambdaConflictHandlerConfigHasBeenSet() const { return m_lambdaConflictHandlerConfigHasBeenSet; }
84 inline void SetLambdaConflictHandlerConfig(const LambdaConflictHandlerConfig& value) { m_lambdaConflictHandlerConfigHasBeenSet = true; m_lambdaConflictHandlerConfig = value; }
85 inline void SetLambdaConflictHandlerConfig(LambdaConflictHandlerConfig&& value) { m_lambdaConflictHandlerConfigHasBeenSet = true; m_lambdaConflictHandlerConfig = std::move(value); }
89 private:
90
91 ConflictHandlerType m_conflictHandler;
92 bool m_conflictHandlerHasBeenSet = false;
93
94 ConflictDetectionType m_conflictDetection;
95 bool m_conflictDetectionHasBeenSet = false;
96
97 LambdaConflictHandlerConfig m_lambdaConflictHandlerConfig;
98 bool m_lambdaConflictHandlerConfigHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace AppSync
103} // namespace Aws
SyncConfig & WithConflictHandler(const ConflictHandlerType &value)
Definition SyncConfig.h:58
void SetLambdaConflictHandlerConfig(const LambdaConflictHandlerConfig &value)
Definition SyncConfig.h:84
void SetConflictHandler(const ConflictHandlerType &value)
Definition SyncConfig.h:56
void SetConflictDetection(const ConflictDetectionType &value)
Definition SyncConfig.h:71
SyncConfig & WithLambdaConflictHandlerConfig(LambdaConflictHandlerConfig &&value)
Definition SyncConfig.h:87
AWS_APPSYNC_API SyncConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConflictDetectionHasBeenSet() const
Definition SyncConfig.h:70
SyncConfig & WithLambdaConflictHandlerConfig(const LambdaConflictHandlerConfig &value)
Definition SyncConfig.h:86
void SetLambdaConflictHandlerConfig(LambdaConflictHandlerConfig &&value)
Definition SyncConfig.h:85
bool ConflictHandlerHasBeenSet() const
Definition SyncConfig.h:55
const ConflictDetectionType & GetConflictDetection() const
Definition SyncConfig.h:69
bool LambdaConflictHandlerConfigHasBeenSet() const
Definition SyncConfig.h:83
const ConflictHandlerType & GetConflictHandler() const
Definition SyncConfig.h:54
SyncConfig & WithConflictDetection(const ConflictDetectionType &value)
Definition SyncConfig.h:73
void SetConflictHandler(ConflictHandlerType &&value)
Definition SyncConfig.h:57
void SetConflictDetection(ConflictDetectionType &&value)
Definition SyncConfig.h:72
AWS_APPSYNC_API SyncConfig(Aws::Utils::Json::JsonView jsonValue)
const LambdaConflictHandlerConfig & GetLambdaConflictHandlerConfig() const
Definition SyncConfig.h:82
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
SyncConfig & WithConflictHandler(ConflictHandlerType &&value)
Definition SyncConfig.h:59
SyncConfig & WithConflictDetection(ConflictDetectionType &&value)
Definition SyncConfig.h:74
Aws::Utils::Json::JsonValue JsonValue