AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AnchorType& GetAnchorType() const{ return m_anchorType; }
46 inline bool AnchorTypeHasBeenSet() const { return m_anchorTypeHasBeenSet; }
47 inline void SetAnchorType(const AnchorType& value) { m_anchorTypeHasBeenSet = true; m_anchorType = value; }
48 inline void SetAnchorType(AnchorType&& value) { m_anchorTypeHasBeenSet = true; m_anchorType = std::move(value); }
49 inline Anchor& WithAnchorType(const AnchorType& value) { SetAnchorType(value); return *this;}
50 inline Anchor& WithAnchorType(AnchorType&& value) { SetAnchorType(std::move(value)); return *this;}
52
54
57 inline const TimeGranularity& GetTimeGranularity() const{ return m_timeGranularity; }
58 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
59 inline void SetTimeGranularity(const TimeGranularity& value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = value; }
60 inline void SetTimeGranularity(TimeGranularity&& value) { m_timeGranularityHasBeenSet = true; m_timeGranularity = std::move(value); }
61 inline Anchor& WithTimeGranularity(const TimeGranularity& value) { SetTimeGranularity(value); return *this;}
62 inline Anchor& WithTimeGranularity(TimeGranularity&& value) { SetTimeGranularity(std::move(value)); return *this;}
64
66
69 inline int GetOffset() const{ return m_offset; }
70 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
71 inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
72 inline Anchor& WithOffset(int value) { SetOffset(value); return *this;}
74 private:
75
76 AnchorType m_anchorType;
77 bool m_anchorTypeHasBeenSet = false;
78
79 TimeGranularity m_timeGranularity;
80 bool m_timeGranularityHasBeenSet = false;
81
82 int m_offset;
83 bool m_offsetHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace QuickSight
88} // namespace Aws
bool AnchorTypeHasBeenSet() const
Definition Anchor.h:46
const TimeGranularity & GetTimeGranularity() const
Definition Anchor.h:57
void SetAnchorType(const AnchorType &value)
Definition Anchor.h:47
void SetTimeGranularity(TimeGranularity &&value)
Definition Anchor.h:60
void SetOffset(int value)
Definition Anchor.h:71
Anchor & WithAnchorType(const AnchorType &value)
Definition Anchor.h:49
Anchor & WithAnchorType(AnchorType &&value)
Definition Anchor.h:50
void SetTimeGranularity(const TimeGranularity &value)
Definition Anchor.h:59
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
bool OffsetHasBeenSet() const
Definition Anchor.h:70
Anchor & WithTimeGranularity(const TimeGranularity &value)
Definition Anchor.h:61
Anchor & WithTimeGranularity(TimeGranularity &&value)
Definition Anchor.h:62
AWS_QUICKSIGHT_API Anchor(Aws::Utils::Json::JsonView jsonValue)
bool TimeGranularityHasBeenSet() const
Definition Anchor.h:58
Anchor & WithOffset(int value)
Definition Anchor.h:72
AWS_QUICKSIGHT_API Anchor & operator=(Aws::Utils::Json::JsonView jsonValue)
const AnchorType & GetAnchorType() const
Definition Anchor.h:45
void SetAnchorType(AnchorType &&value)
Definition Anchor.h:48
AWS_QUICKSIGHT_API Anchor()
Aws::Utils::Json::JsonValue JsonValue