AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Anchor.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/AnchorType.h>
9#include <aws/quicksight/model/TimeGranularity.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 QuickSight
23{
24namespace Model
25{
26
32 class Anchor
33 {
34 public:
35 AWS_QUICKSIGHT_API Anchor() = default;
36 AWS_QUICKSIGHT_API Anchor(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Anchor& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline AnchorType GetAnchorType() const { return m_anchorType; }
46 inline bool AnchorTypeHasBeenSet() const { return m_anchorTypeHasBeenSet; }
47 inline void SetAnchorType(AnchorType value) { m_anchorTypeHasBeenSet = true; m_anchorType = value; }
48 inline Anchor& WithAnchorType(AnchorType value) { SetAnchorType(value); return *this;}
50
52
55 inline TimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
56 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
57 inline void SetTimeGranularity(TimeGranularity value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = value; }
58 inline Anchor& WithTimeGranularity(TimeGranularity value) { SetTimeGranularity(value); return *this;}
60
62
65 inline int GetOffset() const { return m_offset; }
66 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
67 inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
68 inline Anchor& WithOffset(int value) { SetOffset(value); return *this;}
70 private:
71
72 AnchorType m_anchorType{AnchorType::NOT_SET};
73 bool m_anchorTypeHasBeenSet = false;
74
76 bool m_timeGranularityHasBeenSet = false;
77
78 int m_offset{0};
79 bool m_offsetHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace QuickSight
84} // namespace Aws
TimeGranularity GetTimeGranularity() const
Definition Anchor.h:55
bool AnchorTypeHasBeenSet() const
Definition Anchor.h:46
Anchor & WithAnchorType(AnchorType value)
Definition Anchor.h:48
void SetOffset(int value)
Definition Anchor.h:67
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimeGranularity(TimeGranularity value)
Definition Anchor.h:57
bool OffsetHasBeenSet() const
Definition Anchor.h:66
Anchor & WithTimeGranularity(TimeGranularity value)
Definition Anchor.h:58
AWS_QUICKSIGHT_API Anchor(Aws::Utils::Json::JsonView jsonValue)
bool TimeGranularityHasBeenSet() const
Definition Anchor.h:56
Anchor & WithOffset(int value)
Definition Anchor.h:68
AWS_QUICKSIGHT_API Anchor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Anchor()=default
void SetAnchorType(AnchorType value)
Definition Anchor.h:47
AnchorType GetAnchorType() const
Definition Anchor.h:45
Aws::Utils::Json::JsonValue JsonValue