AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RecencyDimension.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/Duration.h>
9#include <aws/pinpoint/model/RecencyType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PINPOINT_API RecencyDimension() = default;
37 AWS_PINPOINT_API RecencyDimension(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline Duration GetDuration() const { return m_duration; }
48 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
49 inline void SetDuration(Duration value) { m_durationHasBeenSet = true; m_duration = value; }
50 inline RecencyDimension& WithDuration(Duration value) { SetDuration(value); return *this;}
52
54
60 inline RecencyType GetRecencyType() const { return m_recencyType; }
61 inline bool RecencyTypeHasBeenSet() const { return m_recencyTypeHasBeenSet; }
62 inline void SetRecencyType(RecencyType value) { m_recencyTypeHasBeenSet = true; m_recencyType = value; }
63 inline RecencyDimension& WithRecencyType(RecencyType value) { SetRecencyType(value); return *this;}
65 private:
66
67 Duration m_duration{Duration::NOT_SET};
68 bool m_durationHasBeenSet = false;
69
70 RecencyType m_recencyType{RecencyType::NOT_SET};
71 bool m_recencyTypeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Pinpoint
76} // namespace Aws
RecencyDimension & WithDuration(Duration value)
AWS_PINPOINT_API RecencyDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API RecencyDimension()=default
AWS_PINPOINT_API RecencyDimension(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
RecencyDimension & WithRecencyType(RecencyType value)
Aws::Utils::Json::JsonValue JsonValue