AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ErrorHandlingConfig.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Appflow {
20namespace Model {
21
32 public:
33 AWS_APPFLOW_API ErrorHandlingConfig() = default;
36 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline bool GetFailOnFirstDestinationError() const { return m_failOnFirstDestinationError; }
44 inline bool FailOnFirstDestinationErrorHasBeenSet() const { return m_failOnFirstDestinationErrorHasBeenSet; }
45 inline void SetFailOnFirstDestinationError(bool value) {
46 m_failOnFirstDestinationErrorHasBeenSet = true;
47 m_failOnFirstDestinationError = value;
48 }
51 return *this;
52 }
54
56
59 inline const Aws::String& GetBucketPrefix() const { return m_bucketPrefix; }
60 inline bool BucketPrefixHasBeenSet() const { return m_bucketPrefixHasBeenSet; }
61 template <typename BucketPrefixT = Aws::String>
62 void SetBucketPrefix(BucketPrefixT&& value) {
63 m_bucketPrefixHasBeenSet = true;
64 m_bucketPrefix = std::forward<BucketPrefixT>(value);
65 }
66 template <typename BucketPrefixT = Aws::String>
67 ErrorHandlingConfig& WithBucketPrefix(BucketPrefixT&& value) {
68 SetBucketPrefix(std::forward<BucketPrefixT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetBucketName() const { return m_bucketName; }
78 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
79 template <typename BucketNameT = Aws::String>
80 void SetBucketName(BucketNameT&& value) {
81 m_bucketNameHasBeenSet = true;
82 m_bucketName = std::forward<BucketNameT>(value);
83 }
84 template <typename BucketNameT = Aws::String>
85 ErrorHandlingConfig& WithBucketName(BucketNameT&& value) {
86 SetBucketName(std::forward<BucketNameT>(value));
87 return *this;
88 }
90 private:
91 bool m_failOnFirstDestinationError{false};
92
93 Aws::String m_bucketPrefix;
94
95 Aws::String m_bucketName;
96 bool m_failOnFirstDestinationErrorHasBeenSet = false;
97 bool m_bucketPrefixHasBeenSet = false;
98 bool m_bucketNameHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Appflow
103} // namespace Aws
AWS_APPFLOW_API ErrorHandlingConfig(Aws::Utils::Json::JsonView jsonValue)
ErrorHandlingConfig & WithBucketName(BucketNameT &&value)
ErrorHandlingConfig & WithFailOnFirstDestinationError(bool value)
AWS_APPFLOW_API ErrorHandlingConfig()=default
const Aws::String & GetBucketPrefix() const
AWS_APPFLOW_API ErrorHandlingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBucketPrefix(BucketPrefixT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorHandlingConfig & WithBucketPrefix(BucketPrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue