AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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 SegmentBehaviors() = default;
37 AWS_PINPOINT_API SegmentBehaviors(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const RecencyDimension& GetRecency() const { return m_recency; }
48 inline bool RecencyHasBeenSet() const { return m_recencyHasBeenSet; }
49 template<typename RecencyT = RecencyDimension>
50 void SetRecency(RecencyT&& value) { m_recencyHasBeenSet = true; m_recency = std::forward<RecencyT>(value); }
51 template<typename RecencyT = RecencyDimension>
52 SegmentBehaviors& WithRecency(RecencyT&& value) { SetRecency(std::forward<RecencyT>(value)); return *this;}
54 private:
55
56 RecencyDimension m_recency;
57 bool m_recencyHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace Pinpoint
62} // 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