AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
HoldoutActivity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
30 public:
31 AWS_PINPOINT_API HoldoutActivity() = default;
32 AWS_PINPOINT_API HoldoutActivity(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetNextActivity() const { return m_nextActivity; }
42 inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; }
43 template <typename NextActivityT = Aws::String>
44 void SetNextActivity(NextActivityT&& value) {
45 m_nextActivityHasBeenSet = true;
46 m_nextActivity = std::forward<NextActivityT>(value);
47 }
48 template <typename NextActivityT = Aws::String>
49 HoldoutActivity& WithNextActivity(NextActivityT&& value) {
50 SetNextActivity(std::forward<NextActivityT>(value));
51 return *this;
52 }
54
56
63 inline int GetPercentage() const { return m_percentage; }
64 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
65 inline void SetPercentage(int value) {
66 m_percentageHasBeenSet = true;
67 m_percentage = value;
68 }
69 inline HoldoutActivity& WithPercentage(int value) {
70 SetPercentage(value);
71 return *this;
72 }
74 private:
75 Aws::String m_nextActivity;
76 bool m_nextActivityHasBeenSet = false;
77
78 int m_percentage{0};
79 bool m_percentageHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Pinpoint
84} // namespace Aws
AWS_PINPOINT_API HoldoutActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API HoldoutActivity(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API HoldoutActivity()=default
HoldoutActivity & WithNextActivity(NextActivityT &&value)
HoldoutActivity & WithPercentage(int value)
void SetNextActivity(NextActivityT &&value)
const Aws::String & GetNextActivity() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue