1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/appsync/AppSync_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace AppSync 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>The <code>LambdaConflictHandlerConfig</code> object when configuring LAMBDA 28 * as the Conflict Handler.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/LambdaConflictHandlerConfig">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_APPSYNC_API LambdaConflictHandlerConfig 33 { 34 public: 35 LambdaConflictHandlerConfig(); 36 LambdaConflictHandlerConfig(Aws::Utils::Json::JsonView jsonValue); 37 LambdaConflictHandlerConfig& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The Arn for the Lambda function to use as the Conflict Handler.</p> 43 */ GetLambdaConflictHandlerArn()44 inline const Aws::String& GetLambdaConflictHandlerArn() const{ return m_lambdaConflictHandlerArn; } 45 46 /** 47 * <p>The Arn for the Lambda function to use as the Conflict Handler.</p> 48 */ LambdaConflictHandlerArnHasBeenSet()49 inline bool LambdaConflictHandlerArnHasBeenSet() const { return m_lambdaConflictHandlerArnHasBeenSet; } 50 51 /** 52 * <p>The Arn for the Lambda function to use as the Conflict Handler.</p> 53 */ SetLambdaConflictHandlerArn(const Aws::String & value)54 inline void SetLambdaConflictHandlerArn(const Aws::String& value) { m_lambdaConflictHandlerArnHasBeenSet = true; m_lambdaConflictHandlerArn = value; } 55 56 /** 57 * <p>The Arn for the Lambda function to use as the Conflict Handler.</p> 58 */ SetLambdaConflictHandlerArn(Aws::String && value)59 inline void SetLambdaConflictHandlerArn(Aws::String&& value) { m_lambdaConflictHandlerArnHasBeenSet = true; m_lambdaConflictHandlerArn = std::move(value); } 60 61 /** 62 * <p>The Arn for the Lambda function to use as the Conflict Handler.</p> 63 */ SetLambdaConflictHandlerArn(const char * value)64 inline void SetLambdaConflictHandlerArn(const char* value) { m_lambdaConflictHandlerArnHasBeenSet = true; m_lambdaConflictHandlerArn.assign(value); } 65 66 /** 67 * <p>The Arn for the Lambda function to use as the Conflict Handler.</p> 68 */ WithLambdaConflictHandlerArn(const Aws::String & value)69 inline LambdaConflictHandlerConfig& WithLambdaConflictHandlerArn(const Aws::String& value) { SetLambdaConflictHandlerArn(value); return *this;} 70 71 /** 72 * <p>The Arn for the Lambda function to use as the Conflict Handler.</p> 73 */ WithLambdaConflictHandlerArn(Aws::String && value)74 inline LambdaConflictHandlerConfig& WithLambdaConflictHandlerArn(Aws::String&& value) { SetLambdaConflictHandlerArn(std::move(value)); return *this;} 75 76 /** 77 * <p>The Arn for the Lambda function to use as the Conflict Handler.</p> 78 */ WithLambdaConflictHandlerArn(const char * value)79 inline LambdaConflictHandlerConfig& WithLambdaConflictHandlerArn(const char* value) { SetLambdaConflictHandlerArn(value); return *this;} 80 81 private: 82 83 Aws::String m_lambdaConflictHandlerArn; 84 bool m_lambdaConflictHandlerArnHasBeenSet; 85 }; 86 87 } // namespace Model 88 } // namespace AppSync 89 } // namespace Aws 90