AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
LabelActionMapping.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/DlpAction.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
30 public:
31 AWS_QUICKSIGHT_API LabelActionMapping() = default;
32 AWS_QUICKSIGHT_API LabelActionMapping(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLabelId() const { return m_labelId; }
41 inline bool LabelIdHasBeenSet() const { return m_labelIdHasBeenSet; }
42 template <typename LabelIdT = Aws::String>
43 void SetLabelId(LabelIdT&& value) {
44 m_labelIdHasBeenSet = true;
45 m_labelId = std::forward<LabelIdT>(value);
46 }
47 template <typename LabelIdT = Aws::String>
48 LabelActionMapping& WithLabelId(LabelIdT&& value) {
49 SetLabelId(std::forward<LabelIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLabelName() const { return m_labelName; }
59 inline bool LabelNameHasBeenSet() const { return m_labelNameHasBeenSet; }
60 template <typename LabelNameT = Aws::String>
61 void SetLabelName(LabelNameT&& value) {
62 m_labelNameHasBeenSet = true;
63 m_labelName = std::forward<LabelNameT>(value);
64 }
65 template <typename LabelNameT = Aws::String>
66 LabelActionMapping& WithLabelName(LabelNameT&& value) {
67 SetLabelName(std::forward<LabelNameT>(value));
68 return *this;
69 }
71
73
78 inline DlpAction GetAction() const { return m_action; }
79 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
80 inline void SetAction(DlpAction value) {
81 m_actionHasBeenSet = true;
82 m_action = value;
83 }
85 SetAction(value);
86 return *this;
87 }
89 private:
90 Aws::String m_labelId;
91
92 Aws::String m_labelName;
93
95 bool m_labelIdHasBeenSet = false;
96 bool m_labelNameHasBeenSet = false;
97 bool m_actionHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace QuickSight
102} // namespace Aws
AWS_QUICKSIGHT_API LabelActionMapping()=default
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
LabelActionMapping & WithLabelName(LabelNameT &&value)
LabelActionMapping & WithAction(DlpAction value)
AWS_QUICKSIGHT_API LabelActionMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
LabelActionMapping & WithLabelId(LabelIdT &&value)
AWS_QUICKSIGHT_API LabelActionMapping(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue