AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
TopicTemplate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/Slot.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
31 public:
32 AWS_QUICKSIGHT_API TopicTemplate() = default;
33 AWS_QUICKSIGHT_API TopicTemplate(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API TopicTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTemplateType() const { return m_templateType; }
42 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
43 template <typename TemplateTypeT = Aws::String>
44 void SetTemplateType(TemplateTypeT&& value) {
45 m_templateTypeHasBeenSet = true;
46 m_templateType = std::forward<TemplateTypeT>(value);
47 }
48 template <typename TemplateTypeT = Aws::String>
49 TopicTemplate& WithTemplateType(TemplateTypeT&& value) {
50 SetTemplateType(std::forward<TemplateTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Slot>& GetSlots() const { return m_slots; }
60 inline bool SlotsHasBeenSet() const { return m_slotsHasBeenSet; }
61 template <typename SlotsT = Aws::Vector<Slot>>
62 void SetSlots(SlotsT&& value) {
63 m_slotsHasBeenSet = true;
64 m_slots = std::forward<SlotsT>(value);
65 }
66 template <typename SlotsT = Aws::Vector<Slot>>
67 TopicTemplate& WithSlots(SlotsT&& value) {
68 SetSlots(std::forward<SlotsT>(value));
69 return *this;
70 }
71 template <typename SlotsT = Slot>
72 TopicTemplate& AddSlots(SlotsT&& value) {
73 m_slotsHasBeenSet = true;
74 m_slots.emplace_back(std::forward<SlotsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_templateType;
80
81 Aws::Vector<Slot> m_slots;
82 bool m_templateTypeHasBeenSet = false;
83 bool m_slotsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace QuickSight
88} // namespace Aws
AWS_QUICKSIGHT_API TopicTemplate(Aws::Utils::Json::JsonView jsonValue)
TopicTemplate & AddSlots(SlotsT &&value)
const Aws::Vector< Slot > & GetSlots() const
AWS_QUICKSIGHT_API TopicTemplate()=default
TopicTemplate & WithTemplateType(TemplateTypeT &&value)
void SetTemplateType(TemplateTypeT &&value)
const Aws::String & GetTemplateType() const
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
TopicTemplate & WithSlots(SlotsT &&value)
AWS_QUICKSIGHT_API TopicTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue