AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
28class Anchor {
29 public:
30 AWS_QUICKSIGHT_API Anchor() = default;
31 AWS_QUICKSIGHT_API Anchor(Aws::Utils::Json::JsonView jsonValue);
32 AWS_QUICKSIGHT_API Anchor& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline AnchorType GetAnchorType() const { return m_anchorType; }
40 inline bool AnchorTypeHasBeenSet() const { return m_anchorTypeHasBeenSet; }
41 inline void SetAnchorType(AnchorType value) {
42 m_anchorTypeHasBeenSet = true;
43 m_anchorType = value;
44 }
46 SetAnchorType(value);
47 return *this;
48 }
50
52
55 inline TimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
56 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
58 m_timeGranularityHasBeenSet = true;
59 m_timeGranularity = value;
60 }
62 SetTimeGranularity(value);
63 return *this;
64 }
66
68
71 inline int GetOffset() const { return m_offset; }
72 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
73 inline void SetOffset(int value) {
74 m_offsetHasBeenSet = true;
75 m_offset = value;
76 }
77 inline Anchor& WithOffset(int value) {
78 SetOffset(value);
79 return *this;
80 }
82 private:
83 AnchorType m_anchorType{AnchorType::NOT_SET};
84
86
87 int m_offset{0};
88 bool m_anchorTypeHasBeenSet = false;
89 bool m_timeGranularityHasBeenSet = false;
90 bool m_offsetHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace QuickSight
95} // namespace Aws
TimeGranularity GetTimeGranularity() const
Definition Anchor.h:55
bool AnchorTypeHasBeenSet() const
Definition Anchor.h:40
Anchor & WithAnchorType(AnchorType value)
Definition Anchor.h:45
void SetOffset(int value)
Definition Anchor.h:73
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimeGranularity(TimeGranularity value)
Definition Anchor.h:57
bool OffsetHasBeenSet() const
Definition Anchor.h:72
Anchor & WithTimeGranularity(TimeGranularity value)
Definition Anchor.h:61
AWS_QUICKSIGHT_API Anchor(Aws::Utils::Json::JsonView jsonValue)
bool TimeGranularityHasBeenSet() const
Definition Anchor.h:56
Anchor & WithOffset(int value)
Definition Anchor.h:77
AWS_QUICKSIGHT_API Anchor & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Anchor()=default
void SetAnchorType(AnchorType value)
Definition Anchor.h:41
AnchorType GetAnchorType() const
Definition Anchor.h:39
Aws::Utils::Json::JsonValue JsonValue