AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TopicTemplate.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/Slot.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QUICKSIGHT_API TopicTemplate() = default;
38 AWS_QUICKSIGHT_API TopicTemplate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API TopicTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTemplateType() const { return m_templateType; }
48 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
49 template<typename TemplateTypeT = Aws::String>
50 void SetTemplateType(TemplateTypeT&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::forward<TemplateTypeT>(value); }
51 template<typename TemplateTypeT = Aws::String>
52 TopicTemplate& WithTemplateType(TemplateTypeT&& value) { SetTemplateType(std::forward<TemplateTypeT>(value)); return *this;}
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) { m_slotsHasBeenSet = true; m_slots = std::forward<SlotsT>(value); }
63 template<typename SlotsT = Aws::Vector<Slot>>
64 TopicTemplate& WithSlots(SlotsT&& value) { SetSlots(std::forward<SlotsT>(value)); return *this;}
65 template<typename SlotsT = Slot>
66 TopicTemplate& AddSlots(SlotsT&& value) { m_slotsHasBeenSet = true; m_slots.emplace_back(std::forward<SlotsT>(value)); return *this; }
68 private:
69
70 Aws::String m_templateType;
71 bool m_templateTypeHasBeenSet = false;
72
73 Aws::Vector<Slot> m_slots;
74 bool m_slotsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace QuickSight
79} // 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