AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
AutoMerging.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/ConflictResolution.h>
9#include <aws/customer-profiles/model/Consolidation.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
30 public:
31 AWS_CUSTOMERPROFILES_API AutoMerging() = default;
32 AWS_CUSTOMERPROFILES_API AutoMerging(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API AutoMerging& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetEnabled() const { return m_enabled; }
41 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
46 inline AutoMerging& WithEnabled(bool value) {
47 SetEnabled(value);
48 return *this;
49 }
51
53
58 inline const Consolidation& GetConsolidation() const { return m_consolidation; }
59 inline bool ConsolidationHasBeenSet() const { return m_consolidationHasBeenSet; }
60 template <typename ConsolidationT = Consolidation>
61 void SetConsolidation(ConsolidationT&& value) {
62 m_consolidationHasBeenSet = true;
63 m_consolidation = std::forward<ConsolidationT>(value);
64 }
65 template <typename ConsolidationT = Consolidation>
66 AutoMerging& WithConsolidation(ConsolidationT&& value) {
67 SetConsolidation(std::forward<ConsolidationT>(value));
68 return *this;
69 }
71
73
79 inline const ConflictResolution& GetConflictResolution() const { return m_conflictResolution; }
80 inline bool ConflictResolutionHasBeenSet() const { return m_conflictResolutionHasBeenSet; }
81 template <typename ConflictResolutionT = ConflictResolution>
82 void SetConflictResolution(ConflictResolutionT&& value) {
83 m_conflictResolutionHasBeenSet = true;
84 m_conflictResolution = std::forward<ConflictResolutionT>(value);
85 }
86 template <typename ConflictResolutionT = ConflictResolution>
87 AutoMerging& WithConflictResolution(ConflictResolutionT&& value) {
88 SetConflictResolution(std::forward<ConflictResolutionT>(value));
89 return *this;
90 }
92
94
99 inline double GetMinAllowedConfidenceScoreForMerging() const { return m_minAllowedConfidenceScoreForMerging; }
100 inline bool MinAllowedConfidenceScoreForMergingHasBeenSet() const { return m_minAllowedConfidenceScoreForMergingHasBeenSet; }
101 inline void SetMinAllowedConfidenceScoreForMerging(double value) {
102 m_minAllowedConfidenceScoreForMergingHasBeenSet = true;
103 m_minAllowedConfidenceScoreForMerging = value;
104 }
107 return *this;
108 }
110 private:
111 bool m_enabled{false};
112
113 Consolidation m_consolidation;
114
115 ConflictResolution m_conflictResolution;
116
117 double m_minAllowedConfidenceScoreForMerging{0.0};
118 bool m_enabledHasBeenSet = false;
119 bool m_consolidationHasBeenSet = false;
120 bool m_conflictResolutionHasBeenSet = false;
121 bool m_minAllowedConfidenceScoreForMergingHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CustomerProfiles
126} // namespace Aws
AutoMerging & WithEnabled(bool value)
Definition AutoMerging.h:46
void SetConflictResolution(ConflictResolutionT &&value)
Definition AutoMerging.h:82
AutoMerging & WithConflictResolution(ConflictResolutionT &&value)
Definition AutoMerging.h:87
const ConflictResolution & GetConflictResolution() const
Definition AutoMerging.h:79
const Consolidation & GetConsolidation() const
Definition AutoMerging.h:58
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API AutoMerging()=default
AutoMerging & WithMinAllowedConfidenceScoreForMerging(double value)
AWS_CUSTOMERPROFILES_API AutoMerging & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMinAllowedConfidenceScoreForMerging(double value)
void SetConsolidation(ConsolidationT &&value)
Definition AutoMerging.h:61
AutoMerging & WithConsolidation(ConsolidationT &&value)
Definition AutoMerging.h:66
AWS_CUSTOMERPROFILES_API AutoMerging(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue