/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Appflow { namespace Model { /** *

The settings that determine how Amazon AppFlow handles an error when placing * data in the destination. For example, this setting would determine if the flow * should fail after one insertion error, or continue and attempt to insert every * record regardless of the initial failure. ErrorHandlingConfig is a * part of the destination connector details.

See Also:

AWS * API Reference

*/ class ErrorHandlingConfig { public: AWS_APPFLOW_API ErrorHandlingConfig(); AWS_APPFLOW_API ErrorHandlingConfig(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API ErrorHandlingConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies if the flow should fail after the first instance of a failure when * attempting to place data in the destination.

*/ inline bool GetFailOnFirstDestinationError() const{ return m_failOnFirstDestinationError; } /** *

Specifies if the flow should fail after the first instance of a failure when * attempting to place data in the destination.

*/ inline bool FailOnFirstDestinationErrorHasBeenSet() const { return m_failOnFirstDestinationErrorHasBeenSet; } /** *

Specifies if the flow should fail after the first instance of a failure when * attempting to place data in the destination.

*/ inline void SetFailOnFirstDestinationError(bool value) { m_failOnFirstDestinationErrorHasBeenSet = true; m_failOnFirstDestinationError = value; } /** *

Specifies if the flow should fail after the first instance of a failure when * attempting to place data in the destination.

*/ inline ErrorHandlingConfig& WithFailOnFirstDestinationError(bool value) { SetFailOnFirstDestinationError(value); return *this;} /** *

Specifies the Amazon S3 bucket prefix.

*/ inline const Aws::String& GetBucketPrefix() const{ return m_bucketPrefix; } /** *

Specifies the Amazon S3 bucket prefix.

*/ inline bool BucketPrefixHasBeenSet() const { return m_bucketPrefixHasBeenSet; } /** *

Specifies the Amazon S3 bucket prefix.

*/ inline void SetBucketPrefix(const Aws::String& value) { m_bucketPrefixHasBeenSet = true; m_bucketPrefix = value; } /** *

Specifies the Amazon S3 bucket prefix.

*/ inline void SetBucketPrefix(Aws::String&& value) { m_bucketPrefixHasBeenSet = true; m_bucketPrefix = std::move(value); } /** *

Specifies the Amazon S3 bucket prefix.

*/ inline void SetBucketPrefix(const char* value) { m_bucketPrefixHasBeenSet = true; m_bucketPrefix.assign(value); } /** *

Specifies the Amazon S3 bucket prefix.

*/ inline ErrorHandlingConfig& WithBucketPrefix(const Aws::String& value) { SetBucketPrefix(value); return *this;} /** *

Specifies the Amazon S3 bucket prefix.

*/ inline ErrorHandlingConfig& WithBucketPrefix(Aws::String&& value) { SetBucketPrefix(std::move(value)); return *this;} /** *

Specifies the Amazon S3 bucket prefix.

*/ inline ErrorHandlingConfig& WithBucketPrefix(const char* value) { SetBucketPrefix(value); return *this;} /** *

Specifies the name of the Amazon S3 bucket.

*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *

Specifies the name of the Amazon S3 bucket.

*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *

Specifies the name of the Amazon S3 bucket.

*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *

Specifies the name of the Amazon S3 bucket.

*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *

Specifies the name of the Amazon S3 bucket.

*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *

Specifies the name of the Amazon S3 bucket.

*/ inline ErrorHandlingConfig& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *

Specifies the name of the Amazon S3 bucket.

*/ inline ErrorHandlingConfig& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *

Specifies the name of the Amazon S3 bucket.

*/ inline ErrorHandlingConfig& WithBucketName(const char* value) { SetBucketName(value); return *this;} private: bool m_failOnFirstDestinationError; bool m_failOnFirstDestinationErrorHasBeenSet = false; Aws::String m_bucketPrefix; bool m_bucketPrefixHasBeenSet = false; Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws