AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RandomSplitEntry.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
29 public:
30 AWS_PINPOINT_API RandomSplitEntry() = default;
31 AWS_PINPOINT_API RandomSplitEntry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetNextActivity() const { return m_nextActivity; }
41 inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; }
42 template <typename NextActivityT = Aws::String>
43 void SetNextActivity(NextActivityT&& value) {
44 m_nextActivityHasBeenSet = true;
45 m_nextActivity = std::forward<NextActivityT>(value);
46 }
47 template <typename NextActivityT = Aws::String>
48 RandomSplitEntry& WithNextActivity(NextActivityT&& value) {
49 SetNextActivity(std::forward<NextActivityT>(value));
50 return *this;
51 }
53
55
62 inline int GetPercentage() const { return m_percentage; }
63 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
64 inline void SetPercentage(int value) {
65 m_percentageHasBeenSet = true;
66 m_percentage = value;
67 }
68 inline RandomSplitEntry& WithPercentage(int value) {
69 SetPercentage(value);
70 return *this;
71 }
73 private:
74 Aws::String m_nextActivity;
75
76 int m_percentage{0};
77 bool m_nextActivityHasBeenSet = false;
78 bool m_percentageHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Pinpoint
83} // namespace Aws
AWS_PINPOINT_API RandomSplitEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPercentage(int value)
bool PercentageHasBeenSet() const
const Aws::String & GetNextActivity() const
bool NextActivityHasBeenSet() const
AWS_PINPOINT_API RandomSplitEntry()=default
AWS_PINPOINT_API RandomSplitEntry(Aws::Utils::Json::JsonView jsonValue)
RandomSplitEntry & WithPercentage(int value)
RandomSplitEntry & WithNextActivity(NextActivityT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNextActivity(NextActivityT &&value)
int GetPercentage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue