AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RandomSplitEntry.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PINPOINT_API RandomSplitEntry() = default;
36 AWS_PINPOINT_API RandomSplitEntry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetNextActivity() const { return m_nextActivity; }
47 inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; }
48 template<typename NextActivityT = Aws::String>
49 void SetNextActivity(NextActivityT&& value) { m_nextActivityHasBeenSet = true; m_nextActivity = std::forward<NextActivityT>(value); }
50 template<typename NextActivityT = Aws::String>
51 RandomSplitEntry& WithNextActivity(NextActivityT&& value) { SetNextActivity(std::forward<NextActivityT>(value)); return *this;}
53
55
62 inline int GetPercentage() const { return m_percentage; }
63 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
64 inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; }
65 inline RandomSplitEntry& WithPercentage(int value) { SetPercentage(value); return *this;}
67 private:
68
69 Aws::String m_nextActivity;
70 bool m_nextActivityHasBeenSet = false;
71
72 int m_percentage{0};
73 bool m_percentageHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Pinpoint
78} // 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