AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
AbandonmentRatePacingConfig.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/connectcampaignsv2/model/ConnectionStartPoint.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectCampaignsV2 {
21namespace Model {
22
30 public:
31 AWS_CONNECTCAMPAIGNSV2_API AbandonmentRatePacingConfig() = default;
32 AWS_CONNECTCAMPAIGNSV2_API AbandonmentRatePacingConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline double GetTargetRate() const { return m_targetRate; }
39 inline bool TargetRateHasBeenSet() const { return m_targetRateHasBeenSet; }
40 inline void SetTargetRate(double value) {
41 m_targetRateHasBeenSet = true;
42 m_targetRate = value;
43 }
45 SetTargetRate(value);
46 return *this;
47 }
49
51
54 inline ConnectionStartPoint GetConnectionStartPoint() const { return m_connectionStartPoint; }
55 inline bool ConnectionStartPointHasBeenSet() const { return m_connectionStartPointHasBeenSet; }
57 m_connectionStartPointHasBeenSet = true;
58 m_connectionStartPoint = value;
59 }
62 return *this;
63 }
65
67
70 inline int GetConnectionThresholdSeconds() const { return m_connectionThresholdSeconds; }
71 inline bool ConnectionThresholdSecondsHasBeenSet() const { return m_connectionThresholdSecondsHasBeenSet; }
72 inline void SetConnectionThresholdSeconds(int value) {
73 m_connectionThresholdSecondsHasBeenSet = true;
74 m_connectionThresholdSeconds = value;
75 }
78 return *this;
79 }
81
83
86 inline const Aws::String& GetEvaluationWindow() const { return m_evaluationWindow; }
87 inline bool EvaluationWindowHasBeenSet() const { return m_evaluationWindowHasBeenSet; }
88 template <typename EvaluationWindowT = Aws::String>
89 void SetEvaluationWindow(EvaluationWindowT&& value) {
90 m_evaluationWindowHasBeenSet = true;
91 m_evaluationWindow = std::forward<EvaluationWindowT>(value);
92 }
93 template <typename EvaluationWindowT = Aws::String>
95 SetEvaluationWindow(std::forward<EvaluationWindowT>(value));
96 return *this;
97 }
99 private:
100 double m_targetRate{0.0};
101
103
104 int m_connectionThresholdSeconds{0};
105
106 Aws::String m_evaluationWindow;
107 bool m_targetRateHasBeenSet = false;
108 bool m_connectionStartPointHasBeenSet = false;
109 bool m_connectionThresholdSecondsHasBeenSet = false;
110 bool m_evaluationWindowHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace ConnectCampaignsV2
115} // namespace Aws
AWS_CONNECTCAMPAIGNSV2_API AbandonmentRatePacingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AbandonmentRatePacingConfig & WithEvaluationWindow(EvaluationWindowT &&value)
AWS_CONNECTCAMPAIGNSV2_API AbandonmentRatePacingConfig()=default
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AbandonmentRatePacingConfig & WithConnectionStartPoint(ConnectionStartPoint value)
AWS_CONNECTCAMPAIGNSV2_API AbandonmentRatePacingConfig(Aws::Utils::Json::JsonView jsonValue)
AbandonmentRatePacingConfig & WithConnectionThresholdSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue