AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PivotTableCellConditionalFormatting.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/TextConditionalFormat.h>
10#include <aws/quicksight/model/PivotTableConditionalFormattingScope.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QUICKSIGHT_API PivotTableCellConditionalFormatting() = default;
41 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetFieldId() const { return m_fieldId; }
49 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
50 template<typename FieldIdT = Aws::String>
51 void SetFieldId(FieldIdT&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::forward<FieldIdT>(value); }
52 template<typename FieldIdT = Aws::String>
53 PivotTableCellConditionalFormatting& WithFieldId(FieldIdT&& value) { SetFieldId(std::forward<FieldIdT>(value)); return *this;}
55
57
60 inline const TextConditionalFormat& GetTextFormat() const { return m_textFormat; }
61 inline bool TextFormatHasBeenSet() const { return m_textFormatHasBeenSet; }
62 template<typename TextFormatT = TextConditionalFormat>
63 void SetTextFormat(TextFormatT&& value) { m_textFormatHasBeenSet = true; m_textFormat = std::forward<TextFormatT>(value); }
64 template<typename TextFormatT = TextConditionalFormat>
65 PivotTableCellConditionalFormatting& WithTextFormat(TextFormatT&& value) { SetTextFormat(std::forward<TextFormatT>(value)); return *this;}
67
69
72 inline const PivotTableConditionalFormattingScope& GetScope() const { return m_scope; }
73 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
74 template<typename ScopeT = PivotTableConditionalFormattingScope>
75 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
76 template<typename ScopeT = PivotTableConditionalFormattingScope>
77 PivotTableCellConditionalFormatting& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
79
81
84 inline const Aws::Vector<PivotTableConditionalFormattingScope>& GetScopes() const { return m_scopes; }
85 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
86 template<typename ScopesT = Aws::Vector<PivotTableConditionalFormattingScope>>
87 void SetScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes = std::forward<ScopesT>(value); }
88 template<typename ScopesT = Aws::Vector<PivotTableConditionalFormattingScope>>
89 PivotTableCellConditionalFormatting& WithScopes(ScopesT&& value) { SetScopes(std::forward<ScopesT>(value)); return *this;}
90 template<typename ScopesT = PivotTableConditionalFormattingScope>
91 PivotTableCellConditionalFormatting& AddScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes.emplace_back(std::forward<ScopesT>(value)); return *this; }
93 private:
94
95 Aws::String m_fieldId;
96 bool m_fieldIdHasBeenSet = false;
97
98 TextConditionalFormat m_textFormat;
99 bool m_textFormatHasBeenSet = false;
100
102 bool m_scopeHasBeenSet = false;
103
105 bool m_scopesHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace QuickSight
110} // namespace Aws
AWS_QUICKSIGHT_API PivotTableCellConditionalFormatting(Aws::Utils::Json::JsonView jsonValue)
PivotTableCellConditionalFormatting & WithTextFormat(TextFormatT &&value)
PivotTableCellConditionalFormatting & AddScopes(ScopesT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
PivotTableCellConditionalFormatting & WithFieldId(FieldIdT &&value)
AWS_QUICKSIGHT_API PivotTableCellConditionalFormatting()=default
AWS_QUICKSIGHT_API PivotTableCellConditionalFormatting & operator=(Aws::Utils::Json::JsonView jsonValue)
PivotTableCellConditionalFormatting & WithScopes(ScopesT &&value)
PivotTableCellConditionalFormatting & WithScope(ScopeT &&value)
const Aws::Vector< PivotTableConditionalFormattingScope > & GetScopes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue