AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HoldoutActivity.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
34 {
35 public:
36 AWS_PINPOINT_API HoldoutActivity();
37 AWS_PINPOINT_API HoldoutActivity(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetNextActivity() const{ return m_nextActivity; }
48 inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; }
49 inline void SetNextActivity(const Aws::String& value) { m_nextActivityHasBeenSet = true; m_nextActivity = value; }
50 inline void SetNextActivity(Aws::String&& value) { m_nextActivityHasBeenSet = true; m_nextActivity = std::move(value); }
51 inline void SetNextActivity(const char* value) { m_nextActivityHasBeenSet = true; m_nextActivity.assign(value); }
52 inline HoldoutActivity& WithNextActivity(const Aws::String& value) { SetNextActivity(value); return *this;}
53 inline HoldoutActivity& WithNextActivity(Aws::String&& value) { SetNextActivity(std::move(value)); return *this;}
54 inline HoldoutActivity& WithNextActivity(const char* value) { SetNextActivity(value); return *this;}
56
58
65 inline int GetPercentage() const{ return m_percentage; }
66 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
67 inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; }
68 inline HoldoutActivity& WithPercentage(int value) { SetPercentage(value); return *this;}
70 private:
71
72 Aws::String m_nextActivity;
73 bool m_nextActivityHasBeenSet = false;
74
75 int m_percentage;
76 bool m_percentageHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Pinpoint
81} // namespace Aws
void SetNextActivity(const Aws::String &value)
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
void SetNextActivity(const char *value)
HoldoutActivity & WithPercentage(int value)
void SetNextActivity(Aws::String &&value)
HoldoutActivity & WithNextActivity(const Aws::String &value)
HoldoutActivity & WithNextActivity(const char *value)
HoldoutActivity & WithNextActivity(Aws::String &&value)
const Aws::String & GetNextActivity() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue