AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename NextActivityT = Aws::String>
50 void SetNextActivity(NextActivityT&& value) { m_nextActivityHasBeenSet = true; m_nextActivity = std::forward<NextActivityT>(value); }
51 template<typename NextActivityT = Aws::String>
52 HoldoutActivity& WithNextActivity(NextActivityT&& value) { SetNextActivity(std::forward<NextActivityT>(value)); return *this;}
54
56
63 inline int GetPercentage() const { return m_percentage; }
64 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
65 inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; }
66 inline HoldoutActivity& WithPercentage(int value) { SetPercentage(value); return *this;}
68 private:
69
70 Aws::String m_nextActivity;
71 bool m_nextActivityHasBeenSet = false;
72
73 int m_percentage{0};
74 bool m_percentageHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Pinpoint
79} // 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