AWS SDK for C++  1.9.158
AWS SDK for C++
SyncConfig.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AppSync
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
52  inline const ConflictHandlerType& GetConflictHandler() const{ return m_conflictHandler; }
53 
62  inline bool ConflictHandlerHasBeenSet() const { return m_conflictHandlerHasBeenSet; }
63 
72  inline void SetConflictHandler(const ConflictHandlerType& value) { m_conflictHandlerHasBeenSet = true; m_conflictHandler = value; }
73 
82  inline void SetConflictHandler(ConflictHandlerType&& value) { m_conflictHandlerHasBeenSet = true; m_conflictHandler = std::move(value); }
83 
92  inline SyncConfig& WithConflictHandler(const ConflictHandlerType& value) { SetConflictHandler(value); return *this;}
93 
102  inline SyncConfig& WithConflictHandler(ConflictHandlerType&& value) { SetConflictHandler(std::move(value)); return *this;}
103 
104 
111  inline const ConflictDetectionType& GetConflictDetection() const{ return m_conflictDetection; }
112 
119  inline bool ConflictDetectionHasBeenSet() const { return m_conflictDetectionHasBeenSet; }
120 
127  inline void SetConflictDetection(const ConflictDetectionType& value) { m_conflictDetectionHasBeenSet = true; m_conflictDetection = value; }
128 
135  inline void SetConflictDetection(ConflictDetectionType&& value) { m_conflictDetectionHasBeenSet = true; m_conflictDetection = std::move(value); }
136 
143  inline SyncConfig& WithConflictDetection(const ConflictDetectionType& value) { SetConflictDetection(value); return *this;}
144 
151  inline SyncConfig& WithConflictDetection(ConflictDetectionType&& value) { SetConflictDetection(std::move(value)); return *this;}
152 
153 
158  inline const LambdaConflictHandlerConfig& GetLambdaConflictHandlerConfig() const{ return m_lambdaConflictHandlerConfig; }
159 
164  inline bool LambdaConflictHandlerConfigHasBeenSet() const { return m_lambdaConflictHandlerConfigHasBeenSet; }
165 
170  inline void SetLambdaConflictHandlerConfig(const LambdaConflictHandlerConfig& value) { m_lambdaConflictHandlerConfigHasBeenSet = true; m_lambdaConflictHandlerConfig = value; }
171 
176  inline void SetLambdaConflictHandlerConfig(LambdaConflictHandlerConfig&& value) { m_lambdaConflictHandlerConfigHasBeenSet = true; m_lambdaConflictHandlerConfig = std::move(value); }
177 
182  inline SyncConfig& WithLambdaConflictHandlerConfig(const LambdaConflictHandlerConfig& value) { SetLambdaConflictHandlerConfig(value); return *this;}
183 
188  inline SyncConfig& WithLambdaConflictHandlerConfig(LambdaConflictHandlerConfig&& value) { SetLambdaConflictHandlerConfig(std::move(value)); return *this;}
189 
190  private:
191 
192  ConflictHandlerType m_conflictHandler;
193  bool m_conflictHandlerHasBeenSet;
194 
195  ConflictDetectionType m_conflictDetection;
196  bool m_conflictDetectionHasBeenSet;
197 
198  LambdaConflictHandlerConfig m_lambdaConflictHandlerConfig;
199  bool m_lambdaConflictHandlerConfigHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace AppSync
204 } // namespace Aws
Aws::AppSync::Model::SyncConfig::WithConflictHandler
SyncConfig & WithConflictHandler(const ConflictHandlerType &value)
Definition: SyncConfig.h:92
Aws::AppSync::Model::SyncConfig::SetLambdaConflictHandlerConfig
void SetLambdaConflictHandlerConfig(const LambdaConflictHandlerConfig &value)
Definition: SyncConfig.h:170
Aws::AppSync::Model::SyncConfig::SetConflictDetection
void SetConflictDetection(const ConflictDetectionType &value)
Definition: SyncConfig.h:127
Aws::AppSync::Model::SyncConfig::SyncConfig
SyncConfig()
Aws::AppSync::Model::SyncConfig::GetConflictHandler
const ConflictHandlerType & GetConflictHandler() const
Definition: SyncConfig.h:52
Aws::AppSync::Model::SyncConfig::WithConflictHandler
SyncConfig & WithConflictHandler(ConflictHandlerType &&value)
Definition: SyncConfig.h:102
Aws::AppSync::Model::SyncConfig::operator=
SyncConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::ConflictHandlerType
ConflictHandlerType
Definition: ConflictHandlerType.h:17
Aws::AppSync::Model::SyncConfig::SetConflictHandler
void SetConflictHandler(const ConflictHandlerType &value)
Definition: SyncConfig.h:72
AppSync_EXPORTS.h
Aws::AppSync::Model::SyncConfig::WithConflictDetection
SyncConfig & WithConflictDetection(ConflictDetectionType &&value)
Definition: SyncConfig.h:151
Aws::AppSync::Model::SyncConfig::WithConflictDetection
SyncConfig & WithConflictDetection(const ConflictDetectionType &value)
Definition: SyncConfig.h:143
Aws::AppSync::Model::SyncConfig::SetConflictDetection
void SetConflictDetection(ConflictDetectionType &&value)
Definition: SyncConfig.h:135
Aws::AppSync::Model::SyncConfig::WithLambdaConflictHandlerConfig
SyncConfig & WithLambdaConflictHandlerConfig(const LambdaConflictHandlerConfig &value)
Definition: SyncConfig.h:182
Aws::AppSync::Model::SyncConfig::WithLambdaConflictHandlerConfig
SyncConfig & WithLambdaConflictHandlerConfig(LambdaConflictHandlerConfig &&value)
Definition: SyncConfig.h:188
Aws::AppSync::Model::SyncConfig::SetLambdaConflictHandlerConfig
void SetLambdaConflictHandlerConfig(LambdaConflictHandlerConfig &&value)
Definition: SyncConfig.h:176
LambdaConflictHandlerConfig.h
Aws::AppSync::Model::SyncConfig::ConflictDetectionHasBeenSet
bool ConflictDetectionHasBeenSet() const
Definition: SyncConfig.h:119
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AppSync::Model::SyncConfig::LambdaConflictHandlerConfigHasBeenSet
bool LambdaConflictHandlerConfigHasBeenSet() const
Definition: SyncConfig.h:164
Aws::AppSync::Model::SyncConfig::GetLambdaConflictHandlerConfig
const LambdaConflictHandlerConfig & GetLambdaConflictHandlerConfig() const
Definition: SyncConfig.h:158
Aws::AppSync::Model::SyncConfig::ConflictHandlerHasBeenSet
bool ConflictHandlerHasBeenSet() const
Definition: SyncConfig.h:62
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppSync::Model::LambdaConflictHandlerConfig
Definition: LambdaConflictHandlerConfig.h:33
Aws::AppSync::Model::SyncConfig::SyncConfig
SyncConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::AppSync::Model::SyncConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ConflictDetectionType.h
ConflictHandlerType.h
Aws::AppSync::Model::ConflictDetectionType
ConflictDetectionType
Definition: ConflictDetectionType.h:17
Aws::AppSync::Model::SyncConfig
Definition: SyncConfig.h:36
Aws::AppSync::Model::SyncConfig::GetConflictDetection
const ConflictDetectionType & GetConflictDetection() const
Definition: SyncConfig.h:111
Aws::AppSync::Model::SyncConfig::SetConflictHandler
void SetConflictHandler(ConflictHandlerType &&value)
Definition: SyncConfig.h:82