AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
SegmentBehaviors.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/RecencyDimension.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
30 public:
31 AWS_PINPOINT_API SegmentBehaviors() = default;
32 AWS_PINPOINT_API SegmentBehaviors(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const RecencyDimension& GetRecency() const { return m_recency; }
42 inline bool RecencyHasBeenSet() const { return m_recencyHasBeenSet; }
43 template <typename RecencyT = RecencyDimension>
44 void SetRecency(RecencyT&& value) {
45 m_recencyHasBeenSet = true;
46 m_recency = std::forward<RecencyT>(value);
47 }
48 template <typename RecencyT = RecencyDimension>
49 SegmentBehaviors& WithRecency(RecencyT&& value) {
50 SetRecency(std::forward<RecencyT>(value));
51 return *this;
52 }
54 private:
55 RecencyDimension m_recency;
56 bool m_recencyHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace Pinpoint
61} // namespace Aws
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API SegmentBehaviors()=default
const RecencyDimension & GetRecency() const
AWS_PINPOINT_API SegmentBehaviors(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API SegmentBehaviors & operator=(Aws::Utils::Json::JsonView jsonValue)
SegmentBehaviors & WithRecency(RecencyT &&value)
Aws::Utils::Json::JsonValue JsonValue