AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PaymentFailurePolicy.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_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 AppMonetization {
20namespace Model {
21
29 public:
30 AWS_APPMONETIZATION_API PaymentFailurePolicy() = default;
31 AWS_APPMONETIZATION_API PaymentFailurePolicy(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API PaymentFailurePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline int GetRetryAttempts() const { return m_retryAttempts; }
42 inline bool RetryAttemptsHasBeenSet() const { return m_retryAttemptsHasBeenSet; }
43 inline void SetRetryAttempts(int value) {
44 m_retryAttemptsHasBeenSet = true;
45 m_retryAttempts = value;
46 }
48 SetRetryAttempts(value);
49 return *this;
50 }
52
54
57 inline int GetRetryWindowDays() const { return m_retryWindowDays; }
58 inline bool RetryWindowDaysHasBeenSet() const { return m_retryWindowDaysHasBeenSet; }
59 inline void SetRetryWindowDays(int value) {
60 m_retryWindowDaysHasBeenSet = true;
61 m_retryWindowDays = value;
62 }
64 SetRetryWindowDays(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDowngradeToPlanId() const { return m_downgradeToPlanId; }
74 inline bool DowngradeToPlanIdHasBeenSet() const { return m_downgradeToPlanIdHasBeenSet; }
75 template <typename DowngradeToPlanIdT = Aws::String>
76 void SetDowngradeToPlanId(DowngradeToPlanIdT&& value) {
77 m_downgradeToPlanIdHasBeenSet = true;
78 m_downgradeToPlanId = std::forward<DowngradeToPlanIdT>(value);
79 }
80 template <typename DowngradeToPlanIdT = Aws::String>
81 PaymentFailurePolicy& WithDowngradeToPlanId(DowngradeToPlanIdT&& value) {
82 SetDowngradeToPlanId(std::forward<DowngradeToPlanIdT>(value));
83 return *this;
84 }
86 private:
87 int m_retryAttempts{0};
88
89 int m_retryWindowDays{0};
90
91 Aws::String m_downgradeToPlanId;
92 bool m_retryAttemptsHasBeenSet = false;
93 bool m_retryWindowDaysHasBeenSet = false;
94 bool m_downgradeToPlanIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace AppMonetization
99} // namespace Aws
PaymentFailurePolicy & WithRetryWindowDays(int value)
void SetDowngradeToPlanId(DowngradeToPlanIdT &&value)
PaymentFailurePolicy & WithDowngradeToPlanId(DowngradeToPlanIdT &&value)
AWS_APPMONETIZATION_API PaymentFailurePolicy()=default
AWS_APPMONETIZATION_API PaymentFailurePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMONETIZATION_API PaymentFailurePolicy(Aws::Utils::Json::JsonView jsonValue)
PaymentFailurePolicy & WithRetryAttempts(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue