AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Duration& GetDuration() const{ return m_duration; }
48 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
49 inline void SetDuration(const Duration& value) { m_durationHasBeenSet = true; m_duration = value; }
50 inline void SetDuration(Duration&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
51 inline RecencyDimension& WithDuration(const Duration& value) { SetDuration(value); return *this;}
52 inline RecencyDimension& WithDuration(Duration&& value) { SetDuration(std::move(value)); return *this;}
54
56
62 inline const RecencyType& GetRecencyType() const{ return m_recencyType; }
63 inline bool RecencyTypeHasBeenSet() const { return m_recencyTypeHasBeenSet; }
64 inline void SetRecencyType(const RecencyType& value) { m_recencyTypeHasBeenSet = true; m_recencyType = value; }
65 inline void SetRecencyType(RecencyType&& value) { m_recencyTypeHasBeenSet = true; m_recencyType = std::move(value); }
66 inline RecencyDimension& WithRecencyType(const RecencyType& value) { SetRecencyType(value); return *this;}
67 inline RecencyDimension& WithRecencyType(RecencyType&& value) { SetRecencyType(std::move(value)); return *this;}
69 private:
70
71 Duration m_duration;
72 bool m_durationHasBeenSet = false;
73
74 RecencyType m_recencyType;
75 bool m_recencyTypeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Pinpoint
80} // namespace Aws
void SetDuration(const Duration &value)
RecencyDimension & WithRecencyType(const RecencyType &value)
AWS_PINPOINT_API RecencyDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRecencyType(RecencyType &&value)
void SetRecencyType(const RecencyType &value)
AWS_PINPOINT_API RecencyDimension(Aws::Utils::Json::JsonView jsonValue)
RecencyDimension & WithDuration(Duration &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const RecencyType & GetRecencyType() const
RecencyDimension & WithRecencyType(RecencyType &&value)
RecencyDimension & WithDuration(const Duration &value)
Aws::Utils::Json::JsonValue JsonValue