AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextActivity(const Aws::String& value) { m_nextActivityHasBeenSet = true; m_nextActivity = value; }
49 inline void SetNextActivity(Aws::String&& value) { m_nextActivityHasBeenSet = true; m_nextActivity = std::move(value); }
50 inline void SetNextActivity(const char* value) { m_nextActivityHasBeenSet = true; m_nextActivity.assign(value); }
51 inline RandomSplitEntry& WithNextActivity(const Aws::String& value) { SetNextActivity(value); return *this;}
52 inline RandomSplitEntry& WithNextActivity(Aws::String&& value) { SetNextActivity(std::move(value)); return *this;}
53 inline RandomSplitEntry& WithNextActivity(const char* value) { SetNextActivity(value); return *this;}
55
57
64 inline int GetPercentage() const{ return m_percentage; }
65 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
66 inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; }
67 inline RandomSplitEntry& WithPercentage(int value) { SetPercentage(value); return *this;}
69 private:
70
71 Aws::String m_nextActivity;
72 bool m_nextActivityHasBeenSet = false;
73
74 int m_percentage;
75 bool m_percentageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Pinpoint
80} // 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(Aws::Utils::Json::JsonView jsonValue)
RandomSplitEntry & WithPercentage(int value)
void SetNextActivity(const Aws::String &value)
AWS_PINPOINT_API RandomSplitEntry()
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNextActivity(Aws::String &&value)
RandomSplitEntry & WithNextActivity(const char *value)
RandomSplitEntry & WithNextActivity(const Aws::String &value)
int GetPercentage() const
void SetNextActivity(const char *value)
RandomSplitEntry & WithNextActivity(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue