AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImageResponseCard.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-runtime/model/Button.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 LexRuntimeV2
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_LEXRUNTIMEV2_API ImageResponseCard() = default;
40 AWS_LEXRUNTIMEV2_API ImageResponseCard(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXRUNTIMEV2_API ImageResponseCard& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetTitle() const { return m_title; }
51 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
52 template<typename TitleT = Aws::String>
53 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
54 template<typename TitleT = Aws::String>
55 ImageResponseCard& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
57
59
63 inline const Aws::String& GetSubtitle() const { return m_subtitle; }
64 inline bool SubtitleHasBeenSet() const { return m_subtitleHasBeenSet; }
65 template<typename SubtitleT = Aws::String>
66 void SetSubtitle(SubtitleT&& value) { m_subtitleHasBeenSet = true; m_subtitle = std::forward<SubtitleT>(value); }
67 template<typename SubtitleT = Aws::String>
68 ImageResponseCard& WithSubtitle(SubtitleT&& value) { SetSubtitle(std::forward<SubtitleT>(value)); return *this;}
70
72
77 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
78 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
79 template<typename ImageUrlT = Aws::String>
80 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::forward<ImageUrlT>(value); }
81 template<typename ImageUrlT = Aws::String>
82 ImageResponseCard& WithImageUrl(ImageUrlT&& value) { SetImageUrl(std::forward<ImageUrlT>(value)); return *this;}
84
86
91 inline const Aws::Vector<Button>& GetButtons() const { return m_buttons; }
92 inline bool ButtonsHasBeenSet() const { return m_buttonsHasBeenSet; }
93 template<typename ButtonsT = Aws::Vector<Button>>
94 void SetButtons(ButtonsT&& value) { m_buttonsHasBeenSet = true; m_buttons = std::forward<ButtonsT>(value); }
95 template<typename ButtonsT = Aws::Vector<Button>>
96 ImageResponseCard& WithButtons(ButtonsT&& value) { SetButtons(std::forward<ButtonsT>(value)); return *this;}
97 template<typename ButtonsT = Button>
98 ImageResponseCard& AddButtons(ButtonsT&& value) { m_buttonsHasBeenSet = true; m_buttons.emplace_back(std::forward<ButtonsT>(value)); return *this; }
100 private:
101
102 Aws::String m_title;
103 bool m_titleHasBeenSet = false;
104
105 Aws::String m_subtitle;
106 bool m_subtitleHasBeenSet = false;
107
108 Aws::String m_imageUrl;
109 bool m_imageUrlHasBeenSet = false;
110
111 Aws::Vector<Button> m_buttons;
112 bool m_buttonsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace LexRuntimeV2
117} // namespace Aws
AWS_LEXRUNTIMEV2_API ImageResponseCard(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Button > & GetButtons() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
ImageResponseCard & AddButtons(ButtonsT &&value)
AWS_LEXRUNTIMEV2_API ImageResponseCard & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageResponseCard & WithSubtitle(SubtitleT &&value)
ImageResponseCard & WithImageUrl(ImageUrlT &&value)
ImageResponseCard & WithButtons(ButtonsT &&value)
ImageResponseCard & WithTitle(TitleT &&value)
AWS_LEXRUNTIMEV2_API ImageResponseCard()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue