AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
30 public:
31 AWS_PINPOINT_API RecencyDimension() = default;
32 AWS_PINPOINT_API RecencyDimension(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline Duration GetDuration() const { return m_duration; }
42 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
43 inline void SetDuration(Duration value) {
44 m_durationHasBeenSet = true;
45 m_duration = value;
46 }
48 SetDuration(value);
49 return *this;
50 }
52
54
60 inline RecencyType GetRecencyType() const { return m_recencyType; }
61 inline bool RecencyTypeHasBeenSet() const { return m_recencyTypeHasBeenSet; }
62 inline void SetRecencyType(RecencyType value) {
63 m_recencyTypeHasBeenSet = true;
64 m_recencyType = value;
65 }
67 SetRecencyType(value);
68 return *this;
69 }
71 private:
72 Duration m_duration{Duration::NOT_SET};
73
74 RecencyType m_recencyType{RecencyType::NOT_SET};
75 bool m_durationHasBeenSet = false;
76 bool m_recencyTypeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Pinpoint
81} // 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